/**
 * LCMS Core — Theme CV & Portfolio Stylesheet (Light & Dark Universe)
 * Inspired by LCMS Core Design System (README-DESIGN.md)
 */

:root {
    --brand-base: #f8fafc;
    --brand-surface: #ffffff;
    --brand-surface-card: rgba(255, 255, 255, 0.9);
    --brand-border: #e2e8f0;
    --brand-border-subtle: rgba(226, 232, 240, 0.8);
    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-primary-light: #3b82f6;
    --brand-glow: rgba(37, 99, 235, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    color-scheme: light;
}

html.dark, :root[data-theme="dark"] {
    --brand-base: #050914;
    --brand-surface: #0f172a;
    --brand-surface-card: rgba(15, 23, 42, 0.7);
    --brand-border: #1e293b;
    --brand-border-subtle: rgba(30, 41, 59, 0.8);
    --brand-primary: #2563eb;
    --brand-primary-hover: #1d4ed8;
    --brand-primary-light: #3b82f6;
    --brand-glow: rgba(37, 99, 235, 0.25);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--brand-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
html.dark ::-webkit-scrollbar-track {
    background: #050914;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
    background: #1e293b;
}
::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Selection Highlight */
::selection {
    background: #2563eb;
    color: #ffffff;
}

/* Monospace text */
.font-mono {
    font-family: var(--font-mono);
}

/* Glassmorphism Cards */
.glass-card {
    background-color: var(--brand-surface-card);
    border: 1px solid var(--brand-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1rem;
    transition: all 0.25s ease-in-out;
}

.glass-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.08);
}

html.dark .glass-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.15);
}

/* Active Nav Link Glowing Accent */
.nav-link-active {
    color: #2563eb !important;
    position: relative;
}
html.dark .nav-link-active {
    color: #3b82f6 !important;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 9999px;
}

/* Timeline Components */
.timeline-dot {
    position: absolute;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background-color: #2563eb;
    border: 4px solid #ffffff;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.35);
    transition: transform 0.2s ease-in-out;
}

html.dark .timeline-dot {
    border-color: #050914;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

.timeline-dot:hover {
    transform: scale(1.3);
}

/* Progress bar fill gradient */
.progress-gradient {
    background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
}

/* Portfolio Filters */
.portfolio-filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.825rem;
    font-weight: 600;
    border-radius: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
}

html.dark .portfolio-filter-btn {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    color: #94a3b8;
}

.portfolio-filter-btn:hover {
    color: #0f172a;
    border-color: #3b82f6;
}

html.dark .portfolio-filter-btn:hover {
    color: #ffffff;
    border-color: #3b82f6;
}

.portfolio-filter-btn.active {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

/* Toastr Notification overrides for Light & Dark Theme */
#toast-container > div {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
    border-radius: 0.75rem !important;
    opacity: 0.98 !important;
}

html.dark #toast-container > div {
    background-color: #0f172a !important;
    border: 1px solid #1e293b !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
    color: #f8fafc !important;
}

#toast-container > .toast-success {
    border-left: 4px solid #10b981 !important;
}

#toast-container > .toast-error {
    border-left: 4px solid #e11d48 !important;
}

.portfolio-item {
    margin-bottom: 8px;
}

/* Theme Toggle Button active styles */
.theme-toggle-btn.active {
    background-color: #ffffff;
    color: #0f172a !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

html.dark .theme-toggle-btn.active {
    background-color: #1e293b;
    color: #ffffff !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}
