/* ============================================================
   Gold Hiring - Global Styles
   Premium gold/dark theme for AI-powered hiring platform
   ============================================================ */
:root {
    --gold: #D4A843;
    --gold-light: #E8C96A;
    --gold-dark: #B8902A;
    --bg-dark: #0F1117;
    --bg-card: #1A1D27;
    --bg-card-hover: #222633;
    --bg-input: #14161E;
    --text-primary: #F0F0F5;
    --text-secondary: #9599A5;
    --text-muted: #6B6F7E;
    --border: #2A2D3A;
    --success: #34D399;
    --error: #F87171;
    --warning: #FBBF24;
    --info: #60A5FA;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.2s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.hidden { display: none !important; }

/* Navigation */
.navbar {
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold);
}
.logo svg { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    box-shadow: 0 2px 12px rgba(212, 168, 67, 0.3);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
    color: #000;
}
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { background: #ef4444; }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}
.card:hover { border-color: rgba(212, 168, 67, 0.3); background: var(--bg-card-hover); }
.card-header { margin-bottom: 16px; }
.card-title { font-size: 1.1rem; margin-bottom: 4px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}
textarea.form-control { min-height: 80px; resize: vertical; }
select.form-control { cursor: pointer; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-gold { background: rgba(212, 168, 67, 0.15); color: var(--gold); }
.badge-success { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.badge-error { background: rgba(248, 113, 113, 0.15); color: var(--error); }
.badge-info { background: rgba(96, 165, 250, 0.15); color: var(--info); }
.badge-warning { background: rgba(251, 191, 36, 0.15); color: var(--warning); }

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 60px;
    background: radial-gradient(ellipse at top, rgba(212, 168, 67, 0.08) 0%, transparent 60%);
}
.hero h1 {
    font-size: 3.2rem;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}
.hero p { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }

/* Section */
.section { padding: 60px 0; }
.section-title {
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.section-subtitle { color: var(--text-secondary); margin-bottom: 32px; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; }
td { font-size: 0.9rem; }
tr:hover td { background: rgba(212, 168, 67, 0.03); }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    backdrop-filter: blur(4px);
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 540px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.modal h2 { margin-bottom: 20px; }

/* Toast */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
    box-shadow: var(--shadow);
}
.toast-success { background: var(--success); color: #000; }
.toast-error { background: var(--error); color: #fff; }
.toast-info { background: var(--info); color: #000; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    background: none;
    border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Job Card specifics */
.job-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0; }
.job-meta span { font-size: 0.85rem; color: var(--text-secondary); display: flex; align-items: center; gap: 4px; }
.salary { color: var(--success) !important; font-weight: 600; }

/* Auth forms */
.auth-container { max-width: 440px; margin: 60px auto; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 60px; }

/* Responsive */
@media (max-width: 768px) {
    h1, .hero h1 { font-size: 2rem; }
    .grid-2 { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar .container { flex-wrap: wrap; gap: 12px; }
    .nav-links { gap: 16px; flex-wrap: wrap; }
    .hero { padding: 48px 0 32px; }
}
