/* ═══════════════════════════════════════════════════════════════
   ATSProof — Main Stylesheet
   tools.findprimejobs.com
═══════════════════════════════════════════════════════════════ */

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

:root {
    --navy:    #1F4E79;
    --blue:    #2E75B6;
    --blue-lt: #EBF3FB;
    --green:   #16A34A;
    --green-lt:#F0FDF4;
    --amber:   #D97706;
    --amber-lt:#FFFBEB;
    --red:     #DC2626;
    --red-lt:  #FEF2F2;
    --gray-50: #F9FAFB;
    --gray-100:#F3F4F6;
    --gray-200:#E5E7EB;
    --gray-400:#9CA3AF;
    --gray-600:#4B5563;
    --gray-900:#111827;
    --white:   #FFFFFF;
    --shadow:  0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --radius:  8px;
    --radius-lg:12px;
    --font:    'Inter', system-ui, -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

/* ── Container ───────────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow);
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 60px; max-width: 1140px; margin: 0 auto; padding: 0 1.25rem;
}
.nav-logo { display: flex; align-items: baseline; gap: .25rem; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.logo-ats   { color: var(--navy); }
.logo-proof { color: var(--blue); }
.logo-by    { font-size: .7rem; font-weight: 400; color: var(--gray-400); margin-left: .25rem; }
.nav-links  { display: flex; align-items: center; gap: 1rem; }
.nav-link   { color: var(--gray-600); font-size: .9rem; font-weight: 500; text-decoration: none; }
.nav-link:hover { color: var(--navy); text-decoration: none; }
.nav-link--admin { color: var(--amber); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .55rem 1.2rem; border-radius: var(--radius); font-size: .9rem;
    font-weight: 600; cursor: pointer; border: 2px solid transparent;
    text-decoration: none; transition: all .15s ease; line-height: 1.4;
    white-space: nowrap;
}
.btn--primary  { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--blue); border-color: var(--blue); text-decoration: none; color: var(--white); }
.btn--outline  { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--blue-lt); text-decoration: none; }
.btn--danger   { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--danger:hover { opacity: .85; text-decoration: none; color: var(--white); }
.btn--lg  { padding: .75rem 1.75rem; font-size: 1rem; }
.btn--sm  { padding: .35rem .8rem;   font-size: .82rem; }
.btn--full { width: 100%; }

/* ── Flash ───────────────────────────────────────────────────── */
.flash { padding: .75rem 0; font-size: .9rem; position: relative; }
.flash--success { background: var(--green-lt); color: var(--green); border-bottom: 1px solid #86efac; }
.flash--error   { background: var(--red-lt);   color: var(--red);   border-bottom: 1px solid #fca5a5; }
.flash .container { display: flex; justify-content: space-between; align-items: center; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .6; }

/* ── Alert (inline) ──────────────────────────────────────────── */
.alert { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .9rem; }
.alert--success { background: var(--green-lt); color: var(--green); border: 1px solid #86efac; }
.alert--error   { background: var(--red-lt);   color: var(--red);   border: 1px solid #fca5a5; }

/* ── Main & Footer ───────────────────────────────────────────── */
.main { flex: 1; }
.footer { background: var(--navy); color: #cbd5e1; padding: 2rem 0; font-size: .85rem; margin-top: auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { color: var(--white); }
.footer-brand a { color: #93c5fd; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: var(--white); }
.footer-copy { color: #64748b; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--navy) 0%, #1a3a5c 100%); color: var(--white); padding: 5rem 0 4rem; text-align: center; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); border-radius: 20px; padding: .3rem .9rem; font-size: .82rem; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.hero-highlight { color: #93c5fd; }
.hero-sub { font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; opacity: .9; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-cta .btn--outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.hero-cta .btn--outline:hover { background: rgba(255,255,255,.1); }
.hero-note { font-size: .82rem; opacity: .65; }

/* ── Sections ────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section--alt { background: var(--white); }
.section--cta { background: var(--blue-lt); text-align: center; }
.section--cta h2 { font-size: 1.75rem; margin-bottom: .75rem; color: var(--navy); }
.section--cta p  { color: var(--gray-600); margin-bottom: 1.5rem; }
.section-title { text-align: center; font-size: 1.75rem; font-weight: 700; color: var(--navy); margin-bottom: 2.5rem; }
.section-subtitle { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 1rem; }

/* ── Steps ───────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; color: var(--navy); }
.step p { font-size: .9rem; color: var(--gray-600); }

/* ── Feature cards ───────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.feature-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.feature-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.feature-card p  { font-size: .88rem; color: var(--gray-600); line-height: 1.6; }

/* ── Page layout ─────────────────────────────────────────────── */
.page-wrap { padding: 2rem 0 3rem; }
.page-wrap--narrow { max-width: 720px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.page-title { font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.page-sub   { font-size: .9rem; color: var(--gray-600); margin-top: .2rem; }

/* ── Card ────────────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); }

/* ── Stats grid (dashboard) ──────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; text-align: center; box-shadow: var(--shadow); }
.stat-card--blue  { border-top: 3px solid var(--blue); }
.stat-card--green { border-top: 3px solid var(--green); }
.stat-card--gray  { border-top: 3px solid var(--gray-400); }
.stat-num   { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-label { font-size: .82rem; color: var(--gray-600); margin-top: .35rem; }

/* ── Quick actions ───────────────────────────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.quick-card { display: flex; align-items: center; gap: 1rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: box-shadow .15s; }
.quick-card:hover { box-shadow: var(--shadow-md); text-decoration: none; border-color: var(--blue); }
.quick-icon { font-size: 1.5rem; min-width: 40px; text-align: center; }
.quick-card strong { display: block; font-size: .9rem; color: var(--navy); }
.quick-card p { font-size: .8rem; color: var(--gray-600); margin: 0; }

/* ── Tracker stats bar ───────────────────────────────────────── */
.tracker-stats { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.tstat { display: flex; align-items: center; gap: .4rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; padding: .3rem .85rem; font-size: .85rem; }
.tstat-num { font-weight: 700; color: var(--navy); }
.tstat-label { color: var(--gray-600); }
.tstat--interview { border-color: var(--blue); }
.tstat--offer     { border-color: var(--green); }
.tstat--rejected  { border-color: var(--gray-400); }

/* ── Kanban ──────────────────────────────────────────────────── */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; overflow-x: auto; }
.kanban-col { min-width: 220px; }
.kanban-header { display: flex; justify-content: space-between; align-items: center; padding: .6rem .85rem; border-radius: var(--radius) var(--radius) 0 0; font-weight: 600; font-size: .88rem; }
.kanban-header--applied   { background: var(--blue-lt);  color: var(--blue); }
.kanban-header--screening { background: var(--amber-lt); color: var(--amber); }
.kanban-header--interview { background: #EDE9FE; color: #6D28D9; }
.kanban-header--offer     { background: var(--green-lt); color: var(--green); }
.kanban-count { background: rgba(0,0,0,.1); border-radius: 10px; padding: .1rem .5rem; font-size: .78rem; }
.kanban-cards { background: var(--gray-100); border-radius: 0 0 var(--radius) var(--radius); padding: .6rem; min-height: 200px; display: flex; flex-direction: column; gap: .6rem; }
.kanban-empty { text-align: center; color: var(--gray-400); font-size: .82rem; padding: 1.5rem .5rem; }
.kcard { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .85rem; box-shadow: var(--shadow); cursor: default; }
.kcard-company { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: .2rem; }
.kcard-role    { font-size: .82rem; color: var(--gray-600); margin-bottom: .5rem; }
.kcard-meta    { display: flex; justify-content: space-between; font-size: .75rem; color: var(--gray-400); margin-bottom: .5rem; }
.kcard-followup { font-size: .75rem; color: var(--amber); background: var(--amber-lt); padding: .2rem .5rem; border-radius: 4px; margin-bottom: .5rem; }
.kcard-actions { display: flex; gap: .4rem; margin-top: .4rem; }
.kcard-btn { background: none; border: 1px solid var(--gray-200); border-radius: 4px; padding: .2rem .55rem; font-size: .75rem; cursor: pointer; color: var(--gray-600); text-decoration: none; }
.kcard-btn:hover { border-color: var(--blue); color: var(--blue); }
.kcard-btn--danger:hover { border-color: var(--red); color: var(--red); }

/* ── App list (for closed items / followups) ─────────────────── */
.app-list { display: flex; flex-direction: column; gap: .6rem; }
.app-row { display: flex; align-items: center; justify-content: space-between; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .85rem 1rem; gap: .75rem; flex-wrap: wrap; }
.app-row-info strong { display: block; font-size: .9rem; color: var(--navy); }
.app-row-info span   { font-size: .82rem; color: var(--gray-600); }
.app-row-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 12px; font-size: .75rem; font-weight: 600; }
.badge--applied   { background: var(--blue-lt);  color: var(--blue); }
.badge--screening { background: var(--amber-lt); color: var(--amber); }
.badge--interview { background: #EDE9FE; color: #6D28D9; }
.badge--offer     { background: var(--green-lt); color: var(--green); }
.badge--rejected  { background: var(--gray-100); color: var(--gray-600); }
.badge--withdrawn { background: var(--gray-100); color: var(--gray-600); }

/* ── Closed section ──────────────────────────────────────────── */
.closed-section { margin-top: 2rem; }
.followup-alert { background: var(--amber-lt); border: 1px solid #fde68a; border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; margin-bottom: 1.75rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-label { font-size: .875rem; font-weight: 600; color: var(--gray-900); }
.req { color: var(--red); }
.form-input {
    border: 1.5px solid var(--gray-200); border-radius: var(--radius);
    padding: .6rem .85rem; font-size: .9rem; font-family: var(--font);
    transition: border-color .15s; background: var(--white); width: 100%;
}
.form-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,117,182,.1); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .78rem; color: var(--gray-400); }
.form-check { display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.form-legal { font-size: .78rem; color: var(--gray-400); text-align: center; }
.form-actions { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; padding-top: .5rem; }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 120px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 2.25rem; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-logo { text-align: center; margin-bottom: 1.5rem; font-size: 1.4rem; font-weight: 700; }
.auth-title { text-align: center; font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.auth-sub   { text-align: center; font-size: .88rem; color: var(--gray-600); margin-bottom: 1.5rem; }
.auth-switch { text-align: center; font-size: .85rem; color: var(--gray-600); margin-top: 1.25rem; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--gray-400); font-size: .82rem; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-200); padding: 1rem; gap: .75rem; box-shadow: var(--shadow-md); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .kanban { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 3rem 0 2.5rem; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .kanban { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
