/* E-SWAB Premium Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette - Light Mode Default */
    --primary-color: #0F172A;
    --secondary-color: #2563EB;
    --accent-color: #14B8A6;
    --success-color: #22C55E;
    --bg-color: #F8FAFC;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(15, 23, 42, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.45);
    --text-color: #0F172A;
    --text-muted: #475569;
    --nav-bg: rgba(248, 250, 252, 0.8);
    --gold-glow: rgba(217, 119, 6, 0.2);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    --gradient-gold: linear-gradient(135deg, #FBBF24, #D97706);
    --gradient-primary: linear-gradient(135deg, #2563EB, #1D4ED8);
    --gradient-accent: linear-gradient(135deg, #14B8A6, #0D9488);
}

/* Dark Mode Variables */
html.dark {
    --primary-color: #F8FAFC;
    --secondary-color: #3B82F6;
    --accent-color: #2DD4BF;
    --success-color: #4ADE80;
    --bg-color: #020617;
    --card-bg: rgba(15, 23, 42, 0.55);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(15, 23, 42, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-color: #F8FAFC;
    --text-muted: #94A3B8;
    --nav-bg: rgba(2, 6, 23, 0.8);
    --gold-glow: rgba(251, 191, 36, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
    --gradient-gold: linear-gradient(135deg, #FCD34D, #B45309);
    --gradient-primary: linear-gradient(135deg, #3B82F6, #1D4ED8);
    --gradient-accent: linear-gradient(135deg, #2DD4BF, #0D9488);
}

/* Global Reset & Typography */
body {
    font-family: 'Inter', 'Manrope', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Glassmorphism Styles */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Active Navigation Line */
.nav-link-active {
    position: relative;
    color: var(--secondary-color) !important;
}
.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Custom Gradients & Animations */
.glow-effect {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(20, 184, 166, 0.05) 70%, transparent 100%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

/* Premium Radial Background for Hero */
.bg-grid-glow {
    position: absolute;
    inset: 0;
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

html.dark .bg-grid-glow {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Interactive Timeline Styles */
.timeline-line {
    width: 4px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Gold Theme Accents */
.gold-card {
    border-color: rgba(217, 119, 6, 0.2);
}
.gold-card:hover {
    border-color: rgba(217, 119, 6, 0.6);
    box-shadow: 0 15px 30px var(--gold-glow);
}

/* Custom Headless-like details styling */
details summary::-webkit-details-marker {
    display: none;
}
details[open] summary svg {
    transform: rotate(180deg);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    z-index: 9999;
    width: 0%;
}

/* Button Premium Styles */
.btn-premium {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s ease;
    border-radius: 8px;
    font-weight: 600;
}
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}
.btn-premium:hover::before {
    width: 100%;
}

/* WCAG Focus Indicators */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Glass Header Styling */
.glass-header {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

/* Mobile Drawer transition */
.mobile-drawer {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Dynamic Live Ticker Glow */
.pulse-glow {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Custom Gold Chart Elements */
.gold-chart-bar {
    transition: height 0.5s ease-out;
}
