/* WorkBridge — styles.css */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0C0E14;
    --surface: #13151E;
    --card: #1A1D2A;
    --border: #2A2D3E;
    --accent: #4EFCC8;
    --accent2: #7B6EF6;
    --text: #F0F2FF;
    --muted: #8A8FA8;
    --danger: #FF6B6B;
    --warning: #FFB347;
    --success: #4EFCC8;
    --grad: linear-gradient(135deg, #4EFCC8, #7B6EF6);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.6;
}

h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.8; }

/* ── NAVBAR ── */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.nav-links { display: flex; align-items: center; gap: 0.75rem; }
.nav-user { font-size: 0.85rem; color: var(--muted); margin-right: 0.5rem; }

/* ── BUTTONS ── */
.btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    line-height: 1.4;
    text-decoration: none;
}
.btn-primary { background: var(--accent); color: #0C0E14; font-weight: 600; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); color: #0C0E14; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: rgba(78,252,200,0.1); }
.btn-purple { background: var(--accent2); color: #fff; font-weight: 600; }
.btn-purple:hover { opacity: 0.9; transform: translateY(-1px); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; font-weight: 600; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 2.2rem; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; display: block; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.page-wrap { padding: 2.5rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }

/* ── HERO ── */
.hero {
    padding: 5rem 1.5rem 4rem;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero h1 span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2.5rem; }

.search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 640px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.5rem 0.5rem 0.5rem 1.25rem;
    align-items: center;
}
.search-bar input, .search-bar select {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
}
.search-bar input { flex: 1; }
.search-bar input::placeholder { color: var(--muted); }
.search-bar select option { background: var(--card); }

/* ── STATS BAR ── */
.stats-bar {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

/* ── FILTER TABS ── */
.filter-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.75rem;
    overflow-x: auto;
}
.filter-tab {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    text-decoration: none;
    display: block;
}
.filter-tab:hover { color: var(--text); }
.filter-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── CARDS ── */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.job-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 0.75rem;
}
.job-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }

.company-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.job-info { flex: 1; min-width: 0; }
.job-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.job-meta { font-size: 0.8rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.job-salary { font-size: 0.95rem; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* ── TAGS ── */
.tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
    font-size: 0.72rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 500;
}
.tag-green { background: rgba(78,252,200,0.12); color: var(--accent); }
.tag-purple { background: rgba(123,110,246,0.12); color: var(--accent2); }
.tag-gray { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.tag-orange { background: rgba(255,179,71,0.12); color: var(--warning); }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.45rem;
}
.form-control {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
}
.form-control:focus { border-color: var(--accent); }
.form-control::placeholder { color: var(--muted); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control option { background: var(--card); color: var(--text); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── AUTH PAGES ── */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.auth-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}
.auth-box h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.auth-box .subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

.role-tabs {
    display: flex;
    gap: 0;
    background: var(--surface);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 1.75rem;
}
.role-tab {
    flex: 1;
    padding: 0.5rem;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.2s;
    border: none;
    background: transparent;
}
.role-tab.active { background: var(--card); color: var(--text); }

.auth-footer { margin-top: 1.5rem; text-align: center; font-size: 0.875rem; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 1rem; margin: 1.5rem 0; color: var(--muted); font-size: 0.8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── ALERTS ── */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.alert-danger { background: rgba(255,107,107,0.12); border: 1px solid rgba(255,107,107,0.3); color: #FF6B6B; }
.alert-success { background: rgba(78,252,200,0.1); border: 1px solid rgba(78,252,200,0.25); color: var(--accent); }
.alert-warning { background: rgba(255,179,71,0.1); border: 1px solid rgba(255,179,71,0.25); color: var(--warning); }
.alert-info { background: rgba(123,110,246,0.1); border: 1px solid rgba(123,110,246,0.25); color: var(--accent2); }

/* ── DASHBOARD ── */
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.dash-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
}
.dash-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.dash-stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

/* ── RESUME CARD ── */
.resume-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 0.75rem;
}
.resume-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.avatar {
    width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem;
    flex-shrink: 0;
}
.blur-zone { filter: blur(7px); user-select: none; pointer-events: none; }
.lock-box {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    margin-top: 1rem;
}
.lock-box p { color: var(--muted); font-size: 0.85rem; margin: 0.5rem 0 1rem; }

/* ── PAYMENT ── */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.plan-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    position: relative;
}
.plan-card:hover, .plan-card.selected { border-color: var(--accent); background: rgba(78,252,200,0.05); }
.plan-card.popular { border-color: var(--accent2); }
.plan-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; margin-bottom: 0.25rem; }
.plan-price { font-size: 1.6rem; font-weight: 700; color: var(--accent); margin: 0.5rem 0; }
.plan-price span { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.plan-features { font-size: 0.8rem; color: var(--muted); line-height: 1.9; }
.popular-badge {
    display: inline-block; background: var(--accent2); color: #fff;
    font-size: 0.7rem; padding: 2px 10px; border-radius: 100px;
    font-weight: 600; margin-bottom: 0.5rem;
}

/* ── JOB DETAIL ── */
.job-detail-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.25rem;
}
.detail-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.detail-section h3 { font-size: 1rem; margin-bottom: 1rem; }
.detail-section ul { list-style: none; padding: 0; }
.detail-section ul li { padding: 0.35rem 0 0.35rem 1.4rem; font-size: 0.9rem; color: var(--muted); position: relative; }
.detail-section ul li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* ── SIDEBAR ── */
.sidebar-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    position: sticky;
    top: 80px;
}
.sidebar-card h4 { font-size: 0.95rem; margin-bottom: 1rem; }

/* ── PROFILE ── */
.profile-header {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.profile-avatar {
    width: 72px; height: 72px; border-radius: 16px;
    background: var(--grad);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem;
    color: #0C0E14; flex-shrink: 0;
}

/* ── PAGINATION ── */
.pagination { display: flex; gap: 0.4rem; justify-content: center; margin-top: 2rem; }
.page-link {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; border: 1px solid var(--border);
    font-size: 0.875rem; color: var(--muted);
    text-decoration: none; transition: all 0.2s;
}
.page-link:hover, .page-link.active { border-color: var(--accent); color: var(--accent); }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }

/* ── MISC ── */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.section-title { font-size: 1.2rem; font-weight: 700; }
.credit-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(78,252,200,0.12); color: var(--accent);
    border-radius: 100px; padding: 0.3rem 0.85rem;
    font-size: 0.8rem; font-weight: 600;
}
.success-box {
    text-align: center; padding: 3rem 2rem;
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
}
.success-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(78,252,200,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; margin: 0 auto 1.5rem;
}

@media(max-width: 768px) {
    .two-col { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: 1fr; }
    .navbar { padding: 0 1rem; }
    .job-card { flex-wrap: wrap; }
    .profile-header { flex-direction: column; text-align: center; }
}