/**
 * ProxyAdvice.site - Mascot-Themed Modern Light Mode Design System
 * Inspired by the Snow Leopard Cyber Mascot: Electric Cyan, Royal Blue, Pure White & Slate
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
    --primary: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-glow: rgba(14, 165, 233, 0.25);
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --border-subtle: #e2e8f0;
    --border-hover: #38bdf8;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --accent-emerald: #059669;
    --accent-amber: #d97706;
    --accent-blue: #2563eb;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

code, pre, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar - Light Theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Modern Light Navigation */
.cyber-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    transition: all 0.3s ease;
}

.cyber-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.08);
    border-bottom-color: rgba(14, 165, 233, 0.3);
}

/* Official Network Bar Glow (Light Mode) */
.network-box-glow {
    background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 50%, #f0f9ff 100%);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
}

.network-box-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.5), transparent);
    pointer-events: none;
}

/* Pure White Elevated Cards with Mascot-Cyan Hover */
.cyber-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px 0 rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cyber-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cyber-card:hover {
    transform: translateY(-4px);
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 16px 36px -6px rgba(14, 165, 233, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.cyber-card:hover::before {
    opacity: 1;
}

/* Featured Card with Royal Cyan Accent */
.cyber-card-featured {
    border: 2px solid #0ea5e9;
    box-shadow: 0 10px 30px -4px rgba(14, 165, 233, 0.22);
    background: #ffffff;
}

/* Buttons - Mascot Colorway */
.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
    color: #ffffff;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px -2px rgba(14, 165, 233, 0.35);
    transition: all 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px 0 rgba(14, 165, 233, 0.45);
    color: #ffffff;
}

.btn-outline {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.btn-outline:hover {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0284c7;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Badges */
.badge-tech {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

/* Gradient Text */
.text-gradient-cyan {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 40%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Light Cyber Grid Background */
.bg-cyber-grid {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(rgba(14, 165, 233, 0.12) 1.5px, transparent 1.5px),
        linear-gradient(to bottom, #ffffff, #f8fafc);
    background-size: 32px 32px, 100% 100%;
}

/* Code Snippet Styles - High Contrast Light Slate Container */
.code-container {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 14px;
    position: relative;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.12);
}

.code-header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
}

.code-container pre {
    padding: 18px;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #38bdf8;
    margin: 0;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background: #0ea5e9;
    color: #ffffff;
}

/* Article Prose Typography - Light High-Legibility */
.prose-cyber {
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.85;
}

.prose-cyber h2 {
    color: #0f172a;
    font-weight: 800;
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.prose-cyber h3 {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.35rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose-cyber p {
    margin-bottom: 1.5rem;
}

.prose-cyber a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.prose-cyber a:hover {
    color: #0369a1;
}

.prose-cyber ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose-cyber li {
    margin-bottom: 0.5rem;
}

/* Accordion Smooth Transitions */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-content {
    max-height: 1000px;
    transition: max-height 0.4s ease-in-out;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Calculator Slider Custom Styles */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
    border: 2px solid #ffffff;
    transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Comparison Sticky Drawer */
#compare-drawer {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#compare-drawer.hidden-drawer {
    transform: translateY(120%);
}

#compare-drawer.visible-drawer {
    transform: translateY(0%);
}

/* Search Modal Overlay */
.modal-overlay {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
}

/* ====================================================
   HERO MASCOT ANIMATIONS (NO CARDS, PURE FLOATING STYLE)
==================================================== */

@keyframes heroLevitate {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 15px 30px rgba(14, 165, 233, 0.25));
    }
    50% {
        transform: translateY(-16px) rotate(0.6deg);
        filter: drop-shadow(0 28px 45px rgba(56, 189, 248, 0.4));
    }
}

@keyframes heroShadowPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(0.85);
        opacity: 0.25;
    }
}

.animate-hero-float {
    animation: heroLevitate 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    will-change: transform, filter;
}

.animate-hero-shadow {
    animation: heroShadowPulse 4.8s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    will-change: transform, opacity;
}

/* Scene Switcher Active State */
.hero-scene-tab.active {
    background: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.hero-scene-img {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-scene-img.hidden-scene {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transform: scale(0.96) translateY(10px);
}

.hero-scene-img.active-scene {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: scale(1) translateY(0);
}
