/* ===========================================================================
   OpportunityHub — Core Design System
   Blue & white palette, rounded cards, light/dark themes.
   Bootstrap 5.3 loads first; this file layers the brand on top.
   =========================================================================== */

:root {
    /* Brand palette — monochrome (black & white minimalist) */
    --oh-primary: #111111;        /* near black */
    --oh-primary-dark: #000000;
    --oh-primary-light: #404040;
    --oh-accent: #555555;
    --oh-success: #16a34a;
    --oh-warning: #d97706;
    --oh-danger:  #dc2626;

    /* Surfaces (light theme) */
    --oh-bg: #fafafa;
    --oh-surface: #ffffff;
    --oh-surface-2: #f5f5f5;
    --oh-border: #e5e5e5;
    --oh-text: #111111;
    --oh-text-muted: #737373;
    --oh-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --oh-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.10);

    --oh-radius: 16px;
    --oh-radius-sm: 10px;
    --oh-radius-lg: 24px;

    --oh-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme overrides — inverted monochrome */
[data-theme="dark"] {
    --oh-bg: #0a0a0a;
    --oh-surface: #111111;
    --oh-surface-2: #1a1a1a;
    --oh-border: #262626;
    --oh-text: #f5f5f5;
    --oh-text-muted: #a3a3a3;
    --oh-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --oh-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    --oh-primary: #f5f5f5;
    --oh-primary-dark: #ffffff;
    --oh-primary-light: #d4d4d4;
    --oh-accent: #a3a3a3;

    /* Align Bootstrap's dark palette (data-bs-theme="dark") with ours. */
    --bs-body-bg: var(--oh-bg);
    --bs-body-color: var(--oh-text);
    --bs-border-color: var(--oh-border);
    --bs-secondary-color: var(--oh-text-muted);
    --bs-secondary-bg: var(--oh-surface-2);
    --bs-tertiary-bg: var(--oh-surface-2);
    --bs-tertiary-color: var(--oh-text-muted);
    --bs-emphasis-color: var(--oh-text);
}

/* In dark mode the primary is light, so anything drawn on it needs dark text. */
[data-theme="dark"] .btn-brand,
[data-theme="dark"] .oh-sidebar-nav a.active { color: #0a0a0a; }
[data-theme="dark"] .btn-brand:hover { color: #0a0a0a; }
[data-theme="dark"] .gradient-brand.text-white,
[data-theme="dark"] .gradient-brand .text-white { color: #0a0a0a !important; }
[data-theme="dark"] .gradient-brand { color: #0a0a0a; }

* { scroll-behavior: smooth; }

body {
    background-color: var(--oh-bg);
    color: var(--oh-text);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: background-color var(--oh-transition), color var(--oh-transition);
}

/* Typography ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; color: var(--oh-text); }
.text-muted { color: var(--oh-text-muted) !important; }
a { color: var(--oh-primary); text-decoration: none; }
a:hover { color: var(--oh-primary-dark); }

/* Brand helpers ---------------------------------------------------------- */
.text-brand { color: var(--oh-primary) !important; }
.bg-brand { background-color: var(--oh-primary) !important; }
.gradient-brand {
    background: var(--oh-primary);
}
.gradient-text {
    /* Monochrome theme: no gradient — inherit the heading colour. */
    color: inherit;
}

/* Buttons ---------------------------------------------------------------- */
.btn { border-radius: var(--oh-radius-sm); font-weight: 600; transition: all var(--oh-transition); }
.btn-brand {
    background: var(--oh-primary); border: none; color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.btn-brand:hover { background: var(--oh-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-outline-brand { border: 2px solid var(--oh-primary); color: var(--oh-primary); background: transparent; }
.btn-outline-brand:hover { background: var(--oh-primary); color: #fff; }
.btn-lg { padding: 0.85rem 1.75rem; }

/* Cards ------------------------------------------------------------------ */
.card, .oh-card {
    background: var(--oh-surface);
    border: 1px solid var(--oh-border);
    border-radius: var(--oh-radius);
    box-shadow: var(--oh-shadow);
    transition: transform var(--oh-transition), box-shadow var(--oh-transition);
}
.oh-card-hover:hover { transform: translateY(-6px); box-shadow: var(--oh-shadow-lg); }

/* Navbar ----------------------------------------------------------------- */
.oh-navbar {
    background: var(--oh-surface);
    border-bottom: 1px solid var(--oh-border);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    position: sticky; top: 0; z-index: 1030;
    backdrop-filter: saturate(180%) blur(8px);
}
.oh-brand-logo { font-weight: 800; font-size: 1.35rem; }
.oh-brand-logo i { color: var(--oh-primary); }

/* Compact public navbar: tighter height, smaller type. */
.oh-navbar { padding-top: 0.75rem; padding-bottom: 0.75rem; }  /* ~py-2.5 */
.oh-navbar .oh-brand-logo { font-size: 1.05rem; }
.oh-navbar .oh-logo-img { width: 26px; height: 26px; border-radius: 7px; }
.oh-navbar .lp-nav-link { font-size: 0.82rem; }
.oh-navbar .theme-toggle { width: 32px; height: 32px; font-size: 0.8rem; }
.oh-navbar .lp-btn { padding: 0.4rem 1rem; font-size: 0.82rem; }
.oh-logo-img {
    width: 34px; height: 34px; vertical-align: -0.55em;
    border-radius: 9px;
}
/* Monochrome mark: invert on dark surfaces so it stays visible. */
[data-theme="dark"] .oh-logo-img { filter: invert(1); }
.oh-logo-img.oh-logo-invert { filter: invert(1); }

/* Forms ------------------------------------------------------------------ */
.form-control, .form-select {
    background: var(--oh-surface);
    border: 1px solid var(--oh-border);
    color: var(--oh-text);
    border-radius: var(--oh-radius-sm);
    padding: 0.7rem 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--oh-primary-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.10);
    background: var(--oh-surface);
    color: var(--oh-text);
}
.form-control::placeholder { color: var(--oh-text-muted); }

/* Badges & chips --------------------------------------------------------- */
.oh-chip {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.75rem; border-radius: 999px;
    background: var(--oh-surface-2); border: 1px solid var(--oh-border);
    color: var(--oh-text-muted); font-size: 0.8rem; font-weight: 600;
}

/* Hero ------------------------------------------------------------------- */
.oh-hero {
    background: radial-gradient(1200px 500px at 80% -10%, rgba(0,0,0,0.04), transparent),
                radial-gradient(900px 500px at 10% 10%, rgba(0,0,0,0.03), transparent);
}

/* Footer ----------------------------------------------------------------- */
.oh-footer {
    background: var(--oh-surface);
    border-top: 1px solid var(--oh-border);
    color: var(--oh-text-muted);
}

/* Themed confirmation modal (replaces native confirm()) -------------------- */
#ohConfirmModal .modal-content {
    background: var(--oh-surface);
    border: 1px solid var(--oh-border);
    border-radius: var(--oh-radius);
    box-shadow: var(--oh-shadow-lg);
    color: var(--oh-text);
}
.oh-confirm-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--oh-surface-2); border: 1px solid var(--oh-border);
    color: var(--oh-text); font-size: 1.3rem;
}

/* Social sign-in button + divider ------------------------------------------ */
.btn-google {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    width: 100%; padding: 0.72rem 1.5rem;
    background: var(--oh-surface); border: 1px solid var(--oh-border);
    color: var(--oh-text); font-weight: 600; font-size: 0.95rem;
    border-radius: var(--oh-radius-sm); cursor: pointer;
    transition: all var(--oh-transition);
}
.btn-google:hover { background: var(--oh-surface-2); border-color: var(--oh-text-muted); color: var(--oh-text); }

.auth-divider {
    display: flex; align-items: center; gap: 0.75rem;
    color: var(--oh-text-muted); font-size: 0.8rem; margin: 1.25rem 0;
    text-transform: uppercase; letter-spacing: 0.08em;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--oh-border);
}

/* Password visibility toggle ---------------------------------------------- */
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 2.9rem; }
.pw-toggle {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 2.9rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0;
    color: var(--oh-text-muted); cursor: pointer; z-index: 5;
    transition: color var(--oh-transition);
}
.pw-toggle:hover { color: var(--oh-text); }

/* Auth brand panel — grayscale photo behind a dark overlay ---------------- */
.auth-panel {
    position: relative;
    background: #0a0a0a;
    color: #fff;
    overflow: hidden;
}
.auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--auth-bg) center / cover no-repeat;
    filter: grayscale(100%);
    opacity: 0.35;
}
.auth-panel::after {
    /* subtle bottom fade so the copyright line stays readable */
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.55) 100%);
}
.auth-panel > * { position: relative; z-index: 1; }
.auth-panel h1, .auth-panel h2, .auth-panel h3,
.auth-panel .h3, .auth-panel a { color: #fff; }

/* Dark-mode toggle button ------------------------------------------------ */
.theme-toggle {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--oh-border); background: var(--oh-surface-2);
    color: var(--oh-text); cursor: pointer; transition: all var(--oh-transition);
}
.theme-toggle:hover { border-color: var(--oh-primary); color: var(--oh-primary); }

/* Utility ---------------------------------------------------------------- */
.min-vh-70 { min-height: 70vh; }
.section-pad { padding: 5rem 0; }
.min-w-0 { min-width: 0; }
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===========================================================================
   Dashboard shell (admin / employer / job seeker)
   =========================================================================== */
.oh-shell { display: flex; min-height: 100vh; }

.oh-sidebar {
    width: 260px; flex-shrink: 0;
    background: var(--oh-surface);
    border-right: 1px solid var(--oh-border);
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040;
    display: flex; flex-direction: column;
    transition: transform var(--oh-transition);
}
.oh-sidebar-brand {
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--oh-border);
    font-weight: 800; font-size: 1.15rem;
}
.oh-sidebar-nav { padding: 1rem 0.75rem; overflow-y: auto; flex-grow: 1; }
.oh-sidebar-nav .nav-section {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--oh-text-muted); padding: 1rem 0.75rem 0.35rem; font-weight: 700;
}
.oh-sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0.85rem; border-radius: var(--oh-radius-sm);
    color: var(--oh-text-muted); font-weight: 600; font-size: 0.925rem;
    margin-bottom: 0.15rem; transition: all var(--oh-transition);
}
.oh-sidebar-nav a i { width: 20px; text-align: center; }
.oh-sidebar-nav a:hover { background: var(--oh-surface-2); color: var(--oh-primary); }
.oh-sidebar-nav a.active { background: var(--oh-primary); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,0.18); }

.oh-main { flex-grow: 1; margin-left: 260px; min-width: 0; display: flex; flex-direction: column; }
.oh-topbar {
    background: var(--oh-surface); border-bottom: 1px solid var(--oh-border);
    padding: 0.85rem 1.5rem; position: sticky; top: 0; z-index: 1030;
    display: flex; align-items: center; gap: 1rem;
}
.oh-content { padding: 1.75rem; flex-grow: 1; }

/* Stat tiles */
.oh-stat { border-radius: var(--oh-radius); padding: 1.5rem; background: var(--oh-surface); border: 1px solid var(--oh-border); }
.oh-stat-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }

/* Sidebar backdrop (mobile) */
.oh-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1035; }

@media (max-width: 991.98px) {
    .oh-sidebar { transform: translateX(-100%); }
    .oh-sidebar.show { transform: translateX(0); }
    .oh-main { margin-left: 0; }
    .oh-backdrop.show { display: block; }
}

/* Action button groups (table rows) — spaced apart, uniform size, no fusing. */
.btn-group { gap: 0.4rem; }
.btn-group > .btn,
.btn-group form .btn {
    margin-left: 0 !important;
    border-radius: var(--oh-radius-sm) !important;
}
.btn-group-sm > .btn,
.btn-group-sm form .btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.78rem;
    border-radius: var(--oh-radius-sm) !important;
}

/* Tables */
.table > :not(caption) > * > * { background: transparent; color: var(--oh-text); }
.oh-table-card { background: var(--oh-surface); border: 1px solid var(--oh-border); border-radius: var(--oh-radius); overflow: hidden; }
.oh-table-card .table { margin-bottom: 0; }
.oh-table-card thead th { background: var(--oh-surface-2); border-bottom: 1px solid var(--oh-border); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--oh-text-muted); }

/* Notification dropdown */
.oh-notif-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; background: var(--oh-danger); border-radius: 50%; }

/* Progress bars (skill gap, resume score) */
.oh-progress { height: 8px; border-radius: 999px; background: var(--oh-surface-2); overflow: hidden; }
.oh-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--oh-primary), var(--oh-accent)); }

/* ===========================================================================
   Landing page (lp-) — modern minimal SaaS aesthetic
   Flat bordered cards, mono micro-labels, numbered sections, chip clouds.
   =========================================================================== */
.lp { --lp-radius: 18px; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace; }

/* Micro-label eyebrow: "01 — PLATFORM FEATURES" */
.lp-eyebrow {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--oh-primary);
    display: inline-flex; align-items: center; gap: 0.5rem;
}
.lp-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--oh-primary); opacity: .6; }

/* Boxed eyebrow variant (hero) — bordered label, no dash. */
.lp-eyebrow-boxed {
    border: 1px solid var(--oh-border);
    background: var(--oh-surface);
    padding: 0.5rem 1rem;
    color: var(--oh-text-muted);
}
.lp-eyebrow-boxed::before { display: none; }

/* Big tight headlines */
.lp-headline {
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.lp-sub { color: var(--oh-text-muted); font-size: 1.08rem; max-width: 620px; }

/* Flat bordered cards — border first, shadow only on hover */
.lp-card {
    background: var(--oh-surface);
    border: 1px solid var(--oh-border);
    border-radius: var(--lp-radius);
    transition: transform var(--oh-transition), box-shadow var(--oh-transition), border-color var(--oh-transition);
}
.lp-card-hover:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--oh-primary) 35%, var(--oh-border));
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
[data-theme="dark"] .lp-card-hover:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.4); }

/* Mono chips (skills, meta) */
.lp-chip {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem; font-weight: 500;
    padding: 0.28rem 0.65rem; border-radius: 8px;
    background: var(--oh-surface-2); border: 1px solid var(--oh-border);
    color: var(--oh-text-muted); display: inline-flex; align-items: center; gap: 0.35rem;
    transition: all var(--oh-transition);
}
a.lp-chip:hover, .lp-chip-accent { color: var(--oh-primary); border-color: color-mix(in srgb, var(--oh-primary) 40%, var(--oh-border)); background: color-mix(in srgb, var(--oh-primary) 6%, var(--oh-surface)); }

/* Pill CTAs */
.lp-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.72rem 1.5rem; border-radius: 0;   /* box buttons */
    font-weight: 600; font-size: 0.95rem; border: 1px solid var(--oh-primary);
    transition: all var(--oh-transition); text-decoration: none;
}
.lp-btn-primary { background: var(--oh-surface); color: var(--oh-text); border: 1px solid var(--oh-primary); }
.lp-btn-primary:hover { background: var(--oh-primary); color: var(--oh-bg); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.2); }
.lp-btn-ghost { background: transparent; color: var(--oh-text); border-color: var(--oh-border); }
.lp-btn-ghost:hover { border-color: var(--oh-primary); color: var(--oh-primary); }
.lp-btn .arr { transition: transform var(--oh-transition); }
.lp-btn:hover .arr { transform: translateX(3px); }

/* Hero stat row: top-bordered columns with mono labels */
.lp-stats { }
.lp-stat { padding: 1.4rem 0; border-top: 2px solid transparent; }
/* Vertical dividers between stats (desktop), like the reference layout. */
@media (min-width: 768px) {
    .lp-stats .lp-stat:not(:first-child) { border-left: 1px solid var(--oh-border); }
}
.lp-stat .n { font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }
.lp-stat .l {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--oh-text-muted);
}

/* Trusted-companies strip */
.lp-logos { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; justify-content: center; }
.lp-logos span {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--oh-text-muted); opacity: 0.7; transition: all var(--oh-transition);
}
.lp-logos span:hover { opacity: 1; color: var(--oh-primary); }

/* Numbered how-it-works steps */
.lp-step-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 2.4rem; font-weight: 700; line-height: 1;
    color: transparent; -webkit-text-stroke: 1.2px var(--oh-primary);
    opacity: 0.8;
}

/* Mock UI rows inside feature cards */
.lp-mockrow {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    padding: 0.55rem 0.8rem; border: 1px solid var(--oh-border);
    border-radius: 10px; background: var(--oh-surface-2);
    font-size: 0.8rem; margin-bottom: 0.45rem;
}
.lp-fit {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.55rem; border-radius: 999px;
}
/* Monochrome fit chips — quiet gray boxes instead of colour coding. */
.lp-fit-hi,
.lp-fit-mid,
.lp-fit-lo {
    background: var(--oh-surface-2);
    color: var(--oh-text);
    border: 1px solid var(--oh-border);
    border-radius: 0;
}

/* Testimonial cards */
.lp-quote { font-size: 1rem; line-height: 1.65; }
.lp-quote::before { content: '“'; display: block; font-size: 2.6rem; line-height: 1; color: var(--oh-primary); font-weight: 800; margin-bottom: .25rem; }

/* FAQ accordion restyle */
.lp-faq .accordion-item {
    background: var(--oh-surface); border: 1px solid var(--oh-border) !important;
    border-radius: 14px !important; overflow: hidden; margin-bottom: 0.75rem;
}
.lp-faq .accordion-button {
    background: var(--oh-surface); color: var(--oh-text); font-weight: 600;
    box-shadow: none; padding: 1.1rem 1.25rem;
}
.lp-faq .accordion-button:not(.collapsed) { color: var(--oh-primary); }
.lp-faq .accordion-body { color: var(--oh-text-muted); padding-top: 0; }
.lp-faq .accordion-button::after { filter: grayscale(1); }

/* Sticky nav underline links */
.lp-nav-link {
    font-size: 0.92rem; font-weight: 550; color: var(--oh-text-muted);
    text-decoration: none; padding: 0.4rem 0.15rem; position: relative;
}
.lp-nav-link:hover { color: var(--oh-text); }
.lp-nav-link::after {
    content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
    height: 2px; background: var(--oh-primary); transition: right var(--oh-transition);
}
.lp-nav-link:hover::after { right: 0; }

/* Section divider rhythm */
.lp-section { padding: 5.5rem 0; }
.lp-section-tight { padding: 3.25rem 0; }
