/* assets/css/main.css */

body {
    font-family: var(--font-body-family, 'Inter', sans-serif);
    background-color: var(--color-bg-primary, #030307);
    color: var(--color-text-body, #f8fafc);
    overflow-x: hidden;
}

/* SVG Noise Overlay Effect */
.geo-noise {
    position: relative;
}
.geo-noise::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: transparent;
    filter: url(#geo-noise-filter);
    opacity: 0.35;
}

/* Global Dynamic Glowing Backdrop Mesh styles */
.mesh-glowing-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}
.mesh-glow-circle-1 {
    position: absolute;
    top: -12%;
    left: 15%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.08) 0%, transparent 68%);
    filter: blur(64px);
    animation: float-slow-1 25s infinite ease-in-out alternate;
}
.mesh-glow-circle-2 {
    position: absolute;
    top: 35%;
    right: -8%;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.06) 0%, transparent 70%);
    filter: blur(64px);
    animation: float-slow-2 20s infinite ease-in-out alternate;
}
.mesh-glow-circle-3 {
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--color-primary-rgb), 0.04) 0%, transparent 70%);
    filter: blur(80px);
}

@keyframes float-slow-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.05); }
}
@keyframes float-slow-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Premium micro-animations & glowing hotspots */
.glowing-card-hover {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glowing-card-hover:hover {
    transform: translateY(-4px) scale(1.015);
    border-color: rgba(var(--color-primary-rgb), 0.24) !important;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px -2px rgba(var(--color-primary-rgb), 0.12);
}

.pulsing-hotspot {
    position: relative;
}
.pulsing-hotspot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid var(--color-primary, #10b981);
    opacity: 0;
    animation: hotspot-pulse 2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes hotspot-pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    100% { transform: scale(1.3); opacity: 0; }
}

.spring-bounce {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.spring-bounce:hover {
    transform: scale(1.06);
}

/* Custom glowing scrollbars styled in glassmorphic lavender and primary hues */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(3, 3, 7, 0.5);
    backdrop-filter: blur(12px);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08); 
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--color-primary, #10b981), var(--color-secondary, #8b5cf6));
    box-shadow: 0 0 8px var(--color-primary, #10b981);
}

/* Glassmorphism elements */
.glass-panel {
    background: var(--color-bg-surface, rgba(8, 8, 16, 0.65));
    backdrop-filter: blur(var(--glass-blur-px, 20px));
    -webkit-backdrop-filter: blur(var(--glass-blur-px, 20px));
    border: 1px solid var(--color-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--border-radius, 12px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Sidebar Custom Aesthetics */
#sidebar-dock {
    transition: width 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s, border-color 0.3s !important;
}
#main-content-layout {
    transition: padding-left 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.sidebar-pulse {
    animation: sidebar-pulse-anim 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes sidebar-pulse-anim {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}
.sidebar-glow {
    box-shadow: 0 0 20px rgba(var(--color-primary-rgb, 16, 185, 129), 0.15);
}
.sidebar-active-gradient {
    background: linear-gradient(90deg, rgba(var(--color-primary-rgb, 16, 185, 129), 0.08) 0%, rgba(var(--color-secondary-rgb, 139, 92, 246), 0.03) 100%) !important;
    border-left: 3px solid var(--color-primary, #10b981);
    color: var(--color-text-heading, #ffffff) !important;
    font-weight: 700;
}

/* Popular Tier Pulsing Scale Spotlight */
.popular-spotlight {
    box-shadow: 0 0 24px rgba(var(--color-primary-rgb, 16, 185, 129), 0.12);
    border-color: rgba(var(--color-primary-rgb, 16, 185, 129), 0.3) !important;
    animation: pulse-spotlight 3s infinite ease-in-out;
}
@keyframes pulse-spotlight {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.008); box-shadow: 0 0 32px rgba(var(--color-primary-rgb, 16, 185, 129), 0.18); }
}

/* Article Prose styling overrides (Prose terminal stylesheets) */
.prose {
    color: var(--color-text-muted, #cbd5e1);
}
.prose h1 { 
    font-family: var(--font-heading-family, 'Outfit', sans-serif);
    font-size: 2.25em; 
    margin-top: 0; 
    margin-bottom: 0.8em; 
    line-height: 1.2; 
    font-weight: 800; 
    color: var(--color-text-heading, #ffffff); 
    letter-spacing: -0.025em;
}
.prose h2 { 
    font-family: var(--font-heading-family, 'Outfit', sans-serif);
    font-size: 1.6em; 
    margin-top: 2em; 
    margin-bottom: 0.8em; 
    line-height: 1.3; 
    font-weight: 700; 
    color: var(--color-text-heading, #ffffff); 
    letter-spacing: -0.015em;
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.08));
    padding-bottom: 0.3em;
}
.prose h3 { 
    font-family: var(--font-heading-family, 'Outfit', sans-serif);
    font-size: 1.3em; 
    margin-top: 1.8em; 
    margin-bottom: 0.6em; 
    line-height: 1.4; 
    font-weight: 600; 
    color: var(--color-text-heading, #e2e8f0); 
}
.prose h4 { 
    font-family: var(--font-heading-family, 'Outfit', sans-serif);
    font-size: 0.9em; 
    margin-top: 1.6em; 
    margin-bottom: 0.5em; 
    line-height: 1.4; 
    font-weight: 700; 
    color: var(--color-text-muted, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.prose p { 
    margin-top: 1.2em; 
    margin-bottom: 1.2em; 
    line-height: 1.8; 
    color: var(--color-text-muted, #94a3b8); 
    font-size: 1em;
}
.prose ul { 
    margin-top: 1.5em; 
    margin-bottom: 1.5em; 
    list-style-type: disc; 
    padding-left: 1.5em; 
}
.prose ol { 
    margin-top: 1.5em; 
    margin-bottom: 1.5em; 
    list-style-type: decimal; 
    padding-left: 1.5em; 
}
.prose li { 
    margin-top: 0.6em; 
    margin-bottom: 0.6em; 
    padding-left: 0.5em; 
    line-height: 1.7;
    color: var(--color-text-muted, #94a3b8);
}
.prose strong { 
    font-weight: 600; 
    color: var(--color-text-heading, #ffffff); 
}
.prose blockquote { 
    font-weight: 500; 
    font-style: italic; 
    color: var(--color-secondary, #8b5cf6); 
    background: rgba(var(--color-secondary-rgb, 139, 92, 246), 0.05);
    border-left: 4px solid var(--color-secondary, #8b5cf6); 
    margin-top: 2em; 
    margin-bottom: 2em; 
    padding: 1.5em;
    border-radius: 0 var(--border-radius, 12px) var(--border-radius, 12px) 0; 
}
.prose a { 
    color: var(--color-primary, #10b981); 
    text-decoration: underline; 
    font-weight: 500; 
    text-underline-offset: 3px;
}
.prose a:hover {
    color: var(--color-primary-dark, #059669);
}
.prose table {
    width: 100%;
    margin-top: 2em;
    margin-bottom: 2em;
    border-collapse: collapse;
    font-size: 0.9em;
}
.prose th {
    background-color: rgba(255,255,255,0.02);
    color: var(--color-text-heading, #ffffff);
    font-weight: 600;
    text-align: left;
    padding: 0.75em;
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.08));
}
.prose td {
    padding: 0.75em;
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.05));
    color: var(--color-text-muted, #94a3b8);
}
