/* Shared Theme Styles - Light/Dark Toggle System */

/* Default Light Theme Variables */
:root {
    /* Light Outdoor Theme - Sky, Water, Sand */
    --color-dark: #f8fafc;
    --color-darker: #ffffff;
    --color-primary: #0ea5e9; /* Sky Blue */
    --color-secondary: #14b8a6; /* Teal Water */
    --color-purple: #8b5cf6; /* Softer Purple */
    --color-pink: #ec4899;
    --color-orange: #f59e0b; /* Warm Sun */
    --color-text: #1e293b; /* Dark text for readability */
    --color-text-dim: #64748b; /* Muted gray-blue */
    --glow-primary: 0 4px 20px rgba(14, 165, 233, 0.25);
    --glow-secondary: 0 4px 20px rgba(20, 184, 166, 0.25);
    --glow-purple: 0 4px 20px rgba(139, 92, 246, 0.25);
}

/* Dark Theme Overrides */
body.dark-theme {
    --color-dark: #0a0a0f;
    --color-darker: #050508;
    --color-primary: #00ffaa;
    --color-secondary: #4fc2e0;
    --color-purple: #a855f7;
    --color-pink: #ec4899;
    --color-orange: #fb923c;
    --color-text: #e4e4e7;
    --color-text-dim: #a1a1aa;
    --glow-primary: 0 0 20px rgba(0, 255, 170, 0.5);
    --glow-secondary: 0 0 20px rgba(79, 194, 224, 0.5);
    --glow-purple: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Custom Scrollbar - Light Theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #e2e8f0;
}

::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 233, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 165, 233, 0.6);
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 233, 0.4) #e2e8f0;
}

/* Custom Scrollbar - Dark Theme */
body.dark-theme ::-webkit-scrollbar-track {
    background: var(--color-darker);
}

body.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 170, 0.3);
}

body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 170, 0.6);
}

body.dark-theme * {
    scrollbar-color: rgba(0, 255, 170, 0.3) var(--color-darker);
}

/* Animated Background Grid - Light Theme */
.bg-grid {
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.05) 1px, transparent 1px);
}

/* Animated Background Grid - Dark Theme */
body.dark-theme .bg-grid {
    background-image:
        linear-gradient(rgba(0, 255, 170, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 170, 0.03) 1px, transparent 1px);
}

/* Navigation - Light Theme */
nav {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(14, 165, 233, 0.15);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Navigation - Dark Theme */
body.dark-theme nav {
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid rgba(0, 255, 170, 0.1);
    box-shadow: none;
}

/* Theme Toggle Button */
.theme-toggle {
    padding: 0.75rem;
    background: transparent;
    border: 2px solid rgba(14, 165, 233, 0.3);
    border-radius: 50%;
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
}

.theme-toggle:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--color-primary);
    transform: rotate(20deg) scale(1.1);
}

body.dark-theme .theme-toggle {
    border-color: rgba(0, 255, 170, 0.3);
}

body.dark-theme .theme-toggle:hover {
    background: rgba(0, 255, 170, 0.1);
}

.theme-icon {
    display: block;
    transition: transform 0.3s;
}

/* Responsive theme toggle */
@media (max-width: 520px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        padding: 0.5rem;
        font-size: 1rem;
    }
}

/* Hero Glows - Light Theme */
.hero-glow {
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 70%);
}

.hero-glow:nth-child(2) {
    background: radial-gradient(circle, rgba(20, 184, 166, 0.12), transparent 70%);
}

/* Hero Glows - Dark Theme */
body.dark-theme .hero-glow {
    background: radial-gradient(circle, rgba(0, 255, 170, 0.15), transparent 70%);
}

body.dark-theme .hero-glow:nth-child(2) {
    background: radial-gradient(circle, rgba(79, 194, 224, 0.15), transparent 70%);
}

/* Cards - Light Theme */
.trinity-card,
.feature-card,
.pricing-card,
.story-card {
    background: white;
    border-color: rgba(14, 165, 233, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Cards - Dark Theme */
body.dark-theme .trinity-card,
body.dark-theme .feature-card,
body.dark-theme .pricing-card,
body.dark-theme .story-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(0, 255, 170, 0.1);
    box-shadow: none;
}

body.dark-theme .trinity-card:hover,
body.dark-theme .feature-card:hover,
body.dark-theme .pricing-card:hover,
body.dark-theme .story-card:hover {
    box-shadow: 0 20px 60px rgba(0, 255, 170, 0.2);
}

/* Buttons - Light Theme */
.btn-primary {
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: white;
    border: 2px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.05);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.2);
}

/* Buttons - Dark Theme */
body.dark-theme .btn-primary {
    color: var(--color-dark);
}

body.dark-theme .btn-primary:hover {
    box-shadow: 0 0 40px rgba(0, 255, 170, 0.8);
}

body.dark-theme .btn-secondary {
    background: transparent;
    border: 2px solid rgba(0, 255, 170, 0.3);
    box-shadow: none;
}

body.dark-theme .btn-secondary:hover {
    background: rgba(0, 255, 170, 0.1);
    box-shadow: none;
}

/* Footer - Light Theme */
footer {
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.02), white);
}

/* Footer - Dark Theme */
body.dark-theme footer {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 255, 170, 0.1);
}

/* Stats Section - Light Theme */
.stats-section {
    background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.03), transparent);
}

/* Hero Badge - Light Theme */
.hero-badge {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Hero Badge - Dark Theme */
body.dark-theme .hero-badge {
    background: rgba(0, 255, 170, 0.1);
    border: 1px solid rgba(0, 255, 170, 0.3);
}

/* CTA Glow - Light Theme */
.cta-glow {
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.08), transparent 70%);
}

/* CTA Glow - Dark Theme */
body.dark-theme .cta-glow {
    background: radial-gradient(circle at center, rgba(0, 255, 170, 0.1), transparent 70%);
}

/* Feature Card Effects - Light Theme */
.feature-card::before {
    background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.08), transparent);
}

/* Feature Card Effects - Dark Theme */
body.dark-theme .feature-card::before {
    background: linear-gradient(90deg, transparent, rgba(0, 255, 170, 0.05), transparent);
}
