/* ==========================================================================
   London Public Sector Jobs - Modern London Design System
   ========================================================================== */

:root {
    --color-london-navy: #0B192C;
    --color-navy-dark: #060E18;
    --color-navy-surface: #12233C;
    --color-navy-border: #1E3E62;
    --color-london-blue: #0072CE;
    --color-london-red: #D90429;
    --color-royal-gold: #F5A623;
    --color-elizabeth-purple: #9364CC;
    --color-london-green: #00875A;
    --color-text-main: #1D2939;
    --color-text-muted: #667085;
    --color-bg-light: #F8FAFC;
    --color-card-bg: #FFFFFF;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 1px 3px rgba(11, 25, 44, 0.06);
    --shadow-md: 0 4px 12px rgba(11, 25, 44, 0.08);
    --shadow-lg: 0 12px 28px rgba(11, 25, 44, 0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* Header & Navigation */
.london-navbar {
    background: var(--color-london-navy);
    border-bottom: 2px solid var(--color-navy-border);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
    letter-spacing: -0.015em;
    transition: opacity 0.2s ease;
}

.brand-badge:hover {
    color: #FFFFFF;
    opacity: 0.92;
}

.brand-logo {
    height: 36px;
    width: auto;
    max-height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.28));
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    vertical-align: middle;
}

.brand-badge:hover .brand-logo {
    transform: scale(1.08) rotate(-1deg);
}

.footer-logo {
    height: 34px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.login-modal-logo {
    height: 52px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(11, 25, 44, 0.12));
}

@media (max-width: 576px) {
    .brand-title {
        font-size: 1rem;
    }
    .brand-logo {
        height: 30px;
    }
}

.brand-roundel {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-london-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(217, 4, 41, 0.4);
}

.nav-link-custom {
    color: #CBD5E1 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link-custom:hover {
    color: #FFFFFF !important;
    background: rgba(255, 255, 255, 0.08);
}

.slot-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    background: var(--color-navy-surface);
    border: 1px solid var(--color-navy-border);
    border-radius: var(--radius-full);
    color: #94A3B8;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.slot-indicator:hover {
    color: #FFFFFF;
    border-color: #38BDF8;
}

.slot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 8px #10B981;
}

/* Hero Section */
.london-hero {
    background: linear-gradient(135deg, var(--color-london-navy) 0%, #0F2A4A 100%);
    color: #FFFFFF;
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.london-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D90429 0%, #0072CE 35%, #F5A623 70%, #9364CC 100%);
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94A3B8;
    max-width: 680px;
    margin-bottom: 2rem;
}

/* Modern Search Box */
.search-card-main {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    color: var(--color-text-main);
}

.search-input-group {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 1.15rem;
}

.form-control-hero {
    height: 54px;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    padding-left: 2.85rem;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.form-control-hero:focus {
    border-color: var(--color-london-blue);
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.15);
}

.form-select-hero {
    height: 54px;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-search-hero {
    height: 54px;
    background: var(--color-london-blue);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    border: none;
    padding: 0 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 114, 206, 0.35);
}

.btn-search-hero:hover {
    background: #005FA8;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 114, 206, 0.45);
}

/* Quick Pills */
.quick-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.quick-pill:hover {
    background: #FFFFFF;
    color: var(--color-london-navy);
}

/* Stat Counters */
.stat-box {
    text-align: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-number {
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.82rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Job Cards */
.job-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.job-card:hover {
    border-color: #94A3B8;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.job-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-london-navy);
    margin-bottom: 0.4rem;
    text-decoration: none;
}

.job-title:hover {
    color: var(--color-london-blue);
}

.org-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0369A1;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
}

.org-badge.nhs-badge {
    color: #005EB8;
    background: #E8F4FD;
    border-color: #99CFF7;
}

.org-badge.gla-badge {
    color: #7C2D12;
    background: #FFEDD5;
    border-color: #FED7AA;
}

.job-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.85rem;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #F1F5F9;
    padding: 0.25rem 0.55rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.salary-tag {
    font-weight: 700;
    color: #0F766E;
    background: #CCFBF1;
}

.closing-tag {
    font-weight: 600;
    color: #9A3412;
    background: #FFEDD5;
}

.job-summary-text {
    font-size: 0.92rem;
    color: #475569;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar Filters */
.filter-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.filter-header {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-london-navy);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Admin Dashboard Card */
.slot-dashboard-card {
    border-radius: var(--radius-lg);
    border: 2px solid #E2E8F0;
    background: #FFFFFF;
    padding: 1.75rem;
    transition: all 0.2s;
    height: 100%;
}

.slot-dashboard-card.is-active-slot {
    border-color: #10B981;
    background: #F0FDF4;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
}

/* Footer */
.london-footer {
    background: var(--color-london-navy);
    color: #94A3B8;
    padding: 3.5rem 0 2rem;
    margin-top: 4rem;
    border-top: 2px solid var(--color-navy-border);
}

.footer-heading {
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #FFFFFF;
}

.footer-divider {
    border-color: var(--color-navy-border);
    margin: 2rem 0;
}

/* ==========================================================================
   Curious & Unique London Jobs Design System
   ========================================================================== */

.curious-section {
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F6 100%);
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
}

.curious-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #7C3AED 0%, #9333EA 100%);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.curious-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.curious-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C3AED, #F59E0B, #EC4899);
    opacity: 0.85;
}

.curious-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: #CBD5E1;
}

.curious-hook-bubble {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px dashed rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin: 0.85rem 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #334155;
    font-style: italic;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.curious-hook-bubble i {
    color: #F59E0B;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

/* Sidebar Curious Spotlight Widget */
.curious-spotlight-card {
    background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 100%);
    color: #F8FAFC;
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    border: 1px solid rgba(147, 51, 234, 0.3);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.curious-spotlight-card .spotlight-title {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    display: block;
    margin-bottom: 0.35rem;
}

.curious-spotlight-card .spotlight-title:hover {
    color: #FBBF24;
}

.curious-spotlight-card .spotlight-hook {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #CBD5E1;
    font-style: italic;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    margin: 0.75rem 0;
    border-left: 3px solid #F59E0B;
}

/* ==========================================================================
   Live Auto-Suggest Dropdown (Search Autocomplete)
   ========================================================================== */
.search-input-group {
    position: relative;
}

.lpsj-suggest-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.95);
    z-index: 1050;
    overflow: hidden;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    animation: lpsjSuggestFadeIn 0.14s ease-out;
}

@keyframes lpsjSuggestFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.lpsj-suggest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    cursor: pointer;
    transition: background-color 0.12s ease;
    border-bottom: 1px solid #F1F5F9;
    text-decoration: none;
    color: #1E293B;
}

.lpsj-suggest-item:last-child {
    border-bottom: none;
}

.lpsj-suggest-item:hover,
.lpsj-suggest-item.active {
    background-color: #F8FAFC;
    color: #0F172A;
}

.lpsj-suggest-item.active {
    background-color: #EFF6FF;
    border-left: 3px solid #2563EB;
}

.lpsj-suggest-text {
    font-size: 0.92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lpsj-suggest-highlight {
    font-weight: 700;
    color: #1D4ED8;
    background: rgba(219, 234, 254, 0.4);
    padding: 0 2px;
    border-radius: 2px;
}

.lpsj-suggest-badges {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    margin-left: 0.75rem;
}

.lpsj-badge-keyword {
    background: #E0E7FF;
    color: #3730A3;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lpsj-badge-role {
    background: #DCFCE7;
    color: #166534;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lpsj-badge-count {
    color: #64748B;
    font-size: 0.78rem;
    font-weight: 500;
}