/* ============================================
   AeroLady — Main Stylesheet
   Color Palette: Dark Navy #1B2A4A, Gold #C9A84C, White, Grays
   Font: Inter
   ============================================ */

/* === Reset & Variables === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #1B2A4A;
    --navy-light: #2A3F6A;
    --navy-dark: #0F1B33;
    --gold: #C9A84C;
    --gold-light: #E0C87A;
    --gold-dark: #A88A32;
    --white: #FFFFFF;
    --gray-50: #F8F9FB;
    --gray-100: #F0F2F5;
    --gray-200: #E1E5EB;
    --gray-300: #C8CED8;
    --gray-400: #9AA3B2;
    --gray-500: #6B7585;
    --gray-600: #4A5568;
    --gray-700: #2D3748;
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(27, 42, 74, 0.08);
    --shadow-lg: 0 12px 48px rgba(27, 42, 74, 0.12);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.3);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === Buttons === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
    transition: all var(--transition); text-decoration: none; font-family: var(--font);
}
.btn--primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white); border-color: var(--gold);
}
.btn--primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    box-shadow: var(--shadow-gold); transform: translateY(-2px); color: var(--white);
}
.btn--secondary {
    background: var(--navy); color: var(--white); border-color: var(--navy);
}
.btn--secondary:hover {
    background: var(--navy-light); transform: translateY(-2px); color: var(--white);
}
.btn--outline {
    background: transparent; color: var(--navy); border-color: var(--gray-300);
}
.btn--outline:hover {
    border-color: var(--gold); color: var(--gold);
}
.btn--danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* === Header === */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
}
.header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.header__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.logo-accent { color: var(--gold); }
.header__nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
    font-weight: 500; color: var(--gray-600); transition: color var(--transition);
    position: relative; padding: 4px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
    background: var(--gold); transition: width var(--transition);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }
.nav-link--muted { color: var(--gray-400); }
.header__burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.header__burger span {
    display: block; width: 24px; height: 2px; background: var(--navy);
    margin: 5px 0; transition: var(--transition);
}
.lang-switch .nav-link {
    font-weight: 700; font-size: 0.8rem; padding: 4px 10px;
    border: 1px solid var(--gray-300); border-radius: var(--radius-sm);
    color: var(--gray-500); letter-spacing: 1px;
}
.lang-switch .nav-link:hover { border-color: var(--gold); color: var(--gold); }
.lang-switch .nav-link::after { display: none; }

/* === Hero Section === */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: var(--white); padding: 80px 0 100px; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 600px; height: 600px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%;
    width: 400px; height: 400px; border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 70%);
}
.hero__inner { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { color: var(--white); font-size: 3rem; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.8); margin-bottom: 32px; line-height: 1.7; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* === Search Bar === */
.search-bar {
    background: var(--white); border-radius: var(--radius-lg); padding: 8px;
    box-shadow: var(--shadow-lg); display: flex; gap: 8px; margin-top: 40px;
}
.search-bar input {
    flex: 1; border: none; padding: 14px 20px; font-size: 1rem; font-family: var(--font);
    border-radius: var(--radius); outline: none; background: var(--gray-50);
}
.search-bar .btn { white-space: nowrap; }

/* === Stats === */
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    padding: 60px 0;
}
.stat-card {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    text-align: center; box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card__number {
    font-size: 2.5rem; font-weight: 800; color: var(--gold);
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.stat-card__label { font-size: 0.95rem; color: var(--gray-500); margin-top: 4px; }

/* === Section === */
.section { padding: 60px 0; }
.section__title {
    text-align: center; margin-bottom: 40px;
}
.section__title h2 { margin-bottom: 8px; }
.section__title p { color: var(--gray-500); font-size: 1.05rem; }

/* === Vacancy Cards === */
.vacancy-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}
.vacancy-card {
    background: var(--white); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow); transition: all var(--transition);
    border: 1px solid transparent; position: relative; overflow: hidden;
}
.vacancy-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    opacity: 0; transition: opacity var(--transition);
}
.vacancy-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-lg);
    border-color: var(--gold-light);
}
.vacancy-card:hover::before { opacity: 1; }
.vacancy-card__header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.vacancy-card__title {
    font-size: 1.15rem; font-weight: 700; color: var(--navy);
    transition: color var(--transition);
}
.vacancy-card__title:hover { color: var(--gold); }
.vacancy-card__badge {
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
    white-space: nowrap;
}
.vacancy-card__badge--commercial { background: #EBF5FF; color: #1D4ED8; }
.vacancy-card__badge--business { background: #FEF3C7; color: #92400E; }
.vacancy-card__company { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 12px; }
.vacancy-card__meta {
    display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.875rem; color: var(--gray-500);
}
.vacancy-card__meta span { display: flex; align-items: center; gap: 4px; }
.vacancy-card__salary {
    font-size: 1.1rem; font-weight: 700; color: var(--gold-dark); margin-top: 12px;
}

/* === CTA Section === */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cta-card {
    border-radius: var(--radius-lg); padding: 48px; position: relative; overflow: hidden;
    transition: transform var(--transition);
}
.cta-card:hover { transform: translateY(-4px); }
.cta-card--applicant {
    background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white);
}
.cta-card--employer {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: var(--white);
}
.cta-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; }
.cta-card p { opacity: 0.9; margin-bottom: 24px; line-height: 1.6; }

/* === Filters === */
.filters {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); margin-bottom: 24px;
}
.filters__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.filters__group { flex: 1; min-width: 150px; }
.filters__group label {
    display: block; font-size: 0.85rem; font-weight: 600; color: var(--gray-600);
    margin-bottom: 4px;
}

/* === Form Elements === */
input, select, textarea {
    font-family: var(--font); font-size: 0.95rem; color: var(--gray-700);
}
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 10px 16px; border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm); background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: var(--font);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-weight: 600; margin-bottom: 6px; color: var(--gray-700);
    font-size: 0.9rem;
}
.form-check {
    display: flex; align-items: start; gap: 10px; margin-bottom: 12px;
}
.form-check input[type="checkbox"] {
    width: 20px; height: 20px; accent-color: var(--gold); margin-top: 2px; flex-shrink: 0;
}
.form-check label { font-weight: 400; font-size: 0.9rem; cursor: pointer; }

/* === Card === */
.card {
    background: var(--white); border-radius: var(--radius); padding: 32px;
    box-shadow: var(--shadow);
}
.card--compact { padding: 24px; }
.card__title { font-size: 1.25rem; margin-bottom: 16px; }

/* === Dashboard === */
.dashboard { padding: 40px 0; }
.dashboard__header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px;
}
.dashboard__grid { display: grid; grid-template-columns: 240px 1fr; gap: 32px; }
.dashboard__sidebar {
    background: var(--white); border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); height: fit-content; position: sticky; top: 88px;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    border-radius: var(--radius-sm); color: var(--gray-600); font-weight: 500;
    transition: all var(--transition); font-size: 0.9rem;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--gray-50); color: var(--navy);
}
.sidebar-nav a.active { color: var(--gold); font-weight: 600; }
.dashboard__content { min-width: 0; }

/* === Table === */
.table-responsive { overflow-x: auto; }
table {
    width: 100%; border-collapse: collapse; background: var(--white);
    border-radius: var(--radius); overflow: hidden;
}
th {
    background: var(--gray-50); padding: 12px 16px; text-align: left;
    font-weight: 600; font-size: 0.85rem; color: var(--gray-600);
    text-transform: uppercase; letter-spacing: 0.5px;
}
td { padding: 14px 16px; border-top: 1px solid var(--gray-100); }
tr:hover td { background: var(--gray-50); }

/* === Badges === */
.badge {
    display: inline-flex; padding: 4px 12px; border-radius: 20px;
    font-size: 0.78rem; font-weight: 600;
}
.badge--pending { background: #FEF3C7; color: #92400E; }
.badge--viewed { background: #DBEAFE; color: #1D4ED8; }
.badge--accepted { background: #D1FAE5; color: #065F46; }
.badge--rejected { background: #FEE2E2; color: #991B1B; }
.badge--verified { background: #D1FAE5; color: #065F46; }

/* === Pagination === */
.pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 40px;
}
.pagination a, .pagination span {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-weight: 500; font-size: 0.9rem;
    border: 1px solid var(--gray-200); color: var(--gray-600);
    transition: all var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination .current {
    background: var(--gold); color: var(--white); border-color: var(--gold);
}

/* === Alerts === */
.messages-container { padding: 16px 0; }
.alert {
    padding: 14px 20px; border-radius: var(--radius-sm); margin: 8px 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 500; animation: slideDown 0.3s ease;
}
.alert--success { background: #D1FAE5; color: #065F46; }
.alert--error { background: #FEE2E2; color: #991B1B; }
.alert--info { background: #DBEAFE; color: #1D4ED8; }
.alert--warning { background: #FEF3C7; color: #92400E; }
.alert__close {
    background: none; border: none; font-size: 1.3rem; cursor: pointer;
    color: inherit; opacity: 0.7;
}
.alert__close:hover { opacity: 1; }

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

/* === Auth Page === */
.auth-page {
    min-height: 80vh; display: flex; align-items: center; justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}
.auth-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 48px;
    width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.auth-card__title { text-align: center; margin-bottom: 8px; }
.auth-card__subtitle { text-align: center; color: var(--gray-500); margin-bottom: 32px; }
.otp-input {
    text-align: center; font-size: 1.8rem; font-weight: 700; letter-spacing: 12px;
    padding: 14px !important;
}

/* === Detail Page === */
.detail-page { padding: 40px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 32px; }
.detail-content h1 { font-size: 1.8rem; margin-bottom: 8px; }
.detail-sidebar .card { position: sticky; top: 88px; }
.detail-meta {
    display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0;
    font-size: 0.9rem; color: var(--gray-500);
}
.detail-meta span { display: flex; align-items: center; gap: 4px; }
.detail-section { margin: 24px 0; }
.detail-section h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--navy); }

/* === Cookie Banner === */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: var(--navy); color: var(--white); padding: 20px 0;
    animation: slideUp 0.4s ease;
}
.cookie-banner__inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.cookie-banner__inner p { font-size: 0.9rem; opacity: 0.9; }
.cookie-banner__inner p a { color: var(--gold); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* === Applicant Cards === */
.applicant-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.applicant-card {
    background: var(--white); border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow); transition: all var(--transition);
    display: flex; gap: 16px; align-items: start;
}
.applicant-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.applicant-card__avatar {
    width: 64px; height: 64px; border-radius: 50%; background: var(--gray-200);
    flex-shrink: 0; object-fit: cover;
}
.applicant-card__info h4 { margin-bottom: 4px; }
.applicant-card__meta { font-size: 0.85rem; color: var(--gray-500); }

/* === Footer === */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer__inner {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer__logo { margin-bottom: 12px; }
.footer__logo .logo-text { color: var(--white); }
.footer__desc { font-size: 0.9rem; line-height: 1.6; }
.footer__col h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer__col a {
    display: block; color: rgba(255,255,255,0.6); margin-bottom: 8px;
    font-size: 0.9rem; transition: color var(--transition);
}
.footer__col a:hover { color: var(--gold); }
.footer__col p { font-size: 0.85rem; margin-bottom: 4px; }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding: 20px 0;
    font-size: 0.85rem; text-align: center;
}

/* === Empty State === */
.empty-state {
    text-align: center; padding: 60px 20px; color: var(--gray-400);
}
.empty-state p { font-size: 1.1rem; margin-bottom: 16px; }

/* === Legal Pages === */
.legal-page { padding: 40px 0; max-width: 800px; margin: 0 auto; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 24px; }
.legal-page h2 { font-size: 1.3rem; margin: 24px 0 12px; }
.legal-page p, .legal-page li { margin-bottom: 8px; line-height: 1.7; color: var(--gray-600); }
.legal-page ul, .legal-page ol { padding-left: 24px; }

/* === Responsive === */
@media (max-width: 1024px) {
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .dashboard__grid { grid-template-columns: 1fr; }
    .dashboard__sidebar { position: static; }
    .cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    .hero { padding: 50px 0 70px; }
    .hero h1 { font-size: 2rem; }
    .stats { grid-template-columns: 1fr; gap: 16px; }
    .vacancy-grid { grid-template-columns: 1fr; }
    .header__nav { display: none; }
    .header__nav.active {
        display: flex; flex-direction: column; position: absolute;
        top: 72px; left: 0; right: 0; background: var(--white);
        padding: 20px; gap: 16px; box-shadow: var(--shadow);
        animation: slideDown 0.3s ease;
    }
    .header__burger { display: block; }
    .filters__row { flex-direction: column; }
    .footer__inner { grid-template-columns: 1fr; gap: 24px; }
    .search-bar { flex-direction: column; }
    .cookie-banner__inner { flex-direction: column; text-align: center; }
    .auth-card { padding: 32px 24px; }
    .applicant-grid { grid-template-columns: 1fr; }
}
