/* Techlife 2026-2027 Master Stylesheet & Dark Mode Support */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-header: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --primary-blue: #0d6efd;
    --primary-dark: #0a58ca;
    --accent-orange: #ff5722;
    --accent-orange-hover: #ff7043;
    --card-shadow: 0 4px 14px rgba(0,0,0,0.06);
    --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.12);
    --nav-bg: #0b5ed7;
    --modal-bg: #ffffff;
    --search-item-hover: #f1f5f9;
}

[data-theme="dark"] {
    --bg-primary: #0b1120;
    --bg-secondary: #0f172a;
    --bg-card: #1e293b;
    --bg-card-header: #172033;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --primary-blue: #38bdf8;
    --primary-dark: #0284c7;
    --accent-orange: #ff7043;
    --accent-orange-hover: #ff8a65;
    --card-shadow: 0 4px 16px rgba(0,0,0,0.35);
    --card-shadow-hover: 0 12px 30px rgba(0,0,0,0.55);
    --nav-bg: #0f172a;
    --modal-bg: #1e293b;
    --search-item-hover: #334155;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* Card theming */
.card, .stack-card, .career-card, .playbook-box, .sih-feature-card, .matrix-table-wrap, .toc-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.bg-white {
    background-color: var(--bg-card) !important;
}

.bg-light {
    background-color: var(--bg-secondary) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
}

.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section h4,
.hero-section h5,
.hero-title,
.hero-subtitle,
.career-callout h1,
.career-callout h2,
.career-callout h3,
.career-callout h4,
.career-callout h5,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer h5,
.text-white {
    color: #ffffff !important;
}

p, li, .lead, .small {
    color: var(--text-secondary);
}

.hero-section p,
.hero-section .lead,
.hero-section .small,
.career-callout p,
.career-callout .lead,
.career-callout .small {
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

.text-secondary, .text-muted {
    color: var(--text-muted) !important;
}

.stats-strip {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    border-right: 1px solid var(--border-color);
}
.stat-item:last-child {
    border-right: none;
}

.tech-pill, .skill-tag {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

.suitability-box, .mindset-card {
    background-color: var(--bg-secondary) !important;
    border-left-color: var(--primary-blue) !important;
    color: var(--text-primary) !important;
}

.table {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
.table td, .table th {
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .table tr:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

/* Spotlight Search Trigger */
.search-trigger-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
}
.search-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}
.search-kbd-badge {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-family: monospace;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Spotlight Modal */
.spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1090;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}
.spotlight-overlay.show {
    display: flex;
}
.spotlight-dialog {
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: spotlightPop 0.2s ease;
}
@keyframes spotlightPop {
    from { opacity: 0; transform: translateY(-15px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.spotlight-input-wrapper {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.spotlight-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.15rem;
    color: var(--text-primary);
    width: 100%;
}
.spotlight-results {
    max-height: 420px;
    overflow-y: auto;
    padding: 10px;
}
.spotlight-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    gap: 14px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.spotlight-item:hover, .spotlight-item.active {
    background: var(--search-item-hover);
    color: var(--primary-blue);
}
.spotlight-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.spotlight-item-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: auto;
    text-transform: uppercase;
}

/* Floating Topmate Drawer */
.floating-topmate-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--accent-orange);
    color: white !important;
    padding: 12px 22px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.45);
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.floating-topmate-btn:hover {
    background: var(--accent-orange-hover);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(255, 87, 34, 0.6);
}
.floating-pulse {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Interactive Wizard Styles */
.wizard-step-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}
.wizard-option-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    height: 100%;
}
.wizard-option-card:hover {
    border-color: var(--primary-blue);
    background-color: rgba(13, 110, 253, 0.04);
}
.wizard-option-card.selected {
    border-color: var(--primary-blue);
    background-color: rgba(13, 110, 253, 0.08);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.3);
}

/* SIH Quick Explorer Filter Cards */
.sih-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.sih-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-blue);
}
