/* Premium UI Overrides & Glassmorphism 3.0 */

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #131a2a;
    --glass-bg: rgba(19, 26, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.05);
    
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.4);
    
    --accent-indigo: #6366f1;
    --accent-indigo-glow: rgba(99, 102, 241, 0.4);

    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.4);
}

.light {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.4);
    
    --accent-emerald: #059669;
    --accent-emerald-glow: rgba(5, 150, 105, 0.2);
    
    --accent-indigo: #4f46e5;
    --accent-indigo-glow: rgba(79, 70, 229, 0.2);

    --accent-purple: #7c3aed;
    --accent-purple-glow: rgba(124, 58, 237, 0.2);
}

body {
    background-color: var(--bg-primary);
    color: #e2e8f0;
}

.light body {
    color: #1e293b;
}

/* Glassmorphism Classes */
.glass-panel-ultra {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-ultra:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px 0 rgba(0, 0, 0, 0.5);
}

.glass-panel-ultra::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
    z-index: 1;
}

/* Parallax Ambient Background */
.ambient-bg {
    position: fixed;
    inset: -50px;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 10% 40%, var(--accent-indigo-glow), transparent 35%),
        radial-gradient(circle at 90% 60%, var(--accent-emerald-glow), transparent 35%),
        radial-gradient(circle at 50% 90%, var(--accent-purple-glow), transparent 40%);
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    opacity: 0.6;
}

.light .ambient-bg {
    opacity: 0.8;
}

/* Neon Text Glow */
.text-glow-emerald {
    text-shadow: 0 0 16px var(--accent-emerald-glow);
}
.text-glow-indigo {
    text-shadow: 0 0 16px var(--accent-indigo-glow);
}

/* Learning Path Node Connectors */
@keyframes fluidPath {
    to { stroke-dashoffset: -40; }
}
.pathway-line-animated {
    stroke: url(#gradient-path);
    stroke-width: 4;
    stroke-dasharray: 10 15;
    animation: fluidPath 1.5s linear infinite;
    filter: drop-shadow(0 0 8px var(--accent-emerald-glow));
}

/* Skeleton Loaders */
@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.light .skeleton {
    background-color: rgba(0, 0, 0, 0.05);
}

.skeleton::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

.light .skeleton::after {
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.6) 20%,
        rgba(255, 255, 255, 0.8) 60%,
        rgba(255, 255, 255, 0)
    );
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
.light ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}
.light ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Fluid Typography Helpers */
.text-fluid-h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-fluid-p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

/* Glowing Button Utility */
.btn-glow-emerald {
    position: relative;
    z-index: 1;
}
.btn-glow-emerald::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px var(--accent-emerald-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.btn-glow-emerald:hover::after {
    opacity: 1;
}

.btn-glow-indigo {
    position: relative;
    z-index: 1;
}
.btn-glow-indigo::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px var(--accent-indigo-glow);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}
.btn-glow-indigo:hover::after {
    opacity: 1;
}
