/**
 * Neon Dreams Theme - Vibrant cyberpunk with electric colors
 *
 * MODERNIZED: Nov 11, 2025
 * Base styles moved to /path_system/themes/base-theme.css
 * This file contains ONLY neon-dreams-specific customizations
 *
 * Before: ~400 lines (with duplicates)
 * After: ~150 lines (theme-specific only)
 * Reduction: 62% cleaner
 */

/* ============================================
   CSS VARIABLES (Theme Colors)
   ============================================ */

:root {
    /* Backgrounds */
    --bg-primary: #0a0a1e;
    --bg-secondary: #1a1a3e;
    --bg-tertiary: #2a2a4e;
    --bg-card: #1a1a3e;
    --bg-medium: rgba(0, 255, 255, 0.05);
    --background-medium: rgba(0, 255, 255, 0.05);

    /* Accent Colors */
    --accent-primary: #00F5FF;
    --accent-secondary: #FF00FF;
    --accent-tertiary: #00DDFF;
    --accent-primary-rgb: 0, 245, 255;

    /* Primary/Secondary (legacy support) */
    --primary-color: #00F5FF;
    --secondary-color: #FF00FF;

    /* Text Colors */
    --text-primary: #00F5FF;
    --text-secondary: #80F8FF;
    --text-tertiary: #A0FAFF;
    --text-color: #00F5FF;
    --text-button: #000000;

    /* UI Colors */
    --border-color: #00F5FF;
    --shadow-primary: 0 0 30px rgba(0, 245, 255, 0.3);

    /* Neon Glows */
    --glow-primary: 0 0 10px #00F5FF, 0 0 20px #00F5FF, 0 0 40px #00F5FF;
    --glow-secondary: 0 0 10px #FF00FF, 0 0 20px #FF00FF;

    /* Status Colors */
    --success-color: #00FF88;
    --error-color: #FF0055;
    --warning-color: #FFAA00;
    --info-color: #00F5FF;
}

/* ============================================
   NEON GRID BACKGROUND & ANIMATION
   ============================================ */

body.path-neon-dreams {
    background: #0a0a1e;
    background-image:
        linear-gradient(rgba(0, 245, 255, 0.15) 2px, transparent 2px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.15) 2px, transparent 2px),
        radial-gradient(circle at 20% 50%, rgba(0, 245, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 0, 255, 0.1) 0%, transparent 50%);
    background-size: 100px 100px, 100px 100px, 100% 100%, 100% 100%;
    animation: electricGrid 10s linear infinite;
    position: relative;
}

/* Cyber particles floating - Fixed for landing page */
body.path-neon-dreams::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(0, 245, 255, 0.8), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 0, 255, 0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 245, 255, 0.6), transparent),
        radial-gradient(3px 3px at 80% 10%, rgba(255, 0, 255, 0.7), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(0, 221, 255, 0.9), transparent);
    background-size: 200px 200px;
    background-repeat: repeat;
    animation: cyberParticles 20s linear infinite;
    pointer-events: none;
    z-index: -1;  /* Changed from var(--z-base) to prevent layout issues */
    opacity: 0.7;
}

/* Ensure content is above background effects */
body.path-neon-dreams > * {
    position: relative;
    z-index: var(--z-above);
}

@keyframes electricGrid {
    0% { background-position: 0 0, 0 0, 0 0, 0 0; }
    100% { background-position: 100px 100px, -100px -100px, 50px 50px, -50px -50px; }
}

@keyframes cyberParticles {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-50vh) translateX(20px); }
    100% { transform: translateY(-100vh) translateX(-20px); }
}

/* ============================================
   NEON BUTTON STYLING (Overrides base)
   ============================================ */

.btn, button, .cta-btn {
    background: transparent !important;
    color: var(--accent-primary) !important;
    border: 3px solid var(--accent-primary);
    box-shadow: var(--glow-primary), inset 0 0 20px rgba(0, 245, 255, 0.2);
    text-shadow: 0 0 10px var(--accent-primary);
}

.btn:hover, button:hover, .cta-btn:hover {
    background: var(--accent-primary) !important;
    color: #000000 !important;
    box-shadow: 0 0 40px var(--accent-primary), 0 0 60px var(--accent-secondary);
}

/* ============================================
   NEON CARD STYLING
   ============================================ */

.post-card, .card, .profile-card,
.achievement-card, .win-card {
    background: linear-gradient(135deg, rgba(26, 26, 62, 0.7) 0%, rgba(42, 42, 78, 0.6) 100%);
    border: 2px solid var(--accent-primary);
    box-shadow:
        0 0 30px rgba(0, 245, 255, 0.3),
        inset 0 0 40px rgba(0, 245, 255, 0.05);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.post-card::before, .card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.post-card:hover::before, .card:hover::before {
    opacity: 1;
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

.post-card:hover, .card:hover, .profile-card:hover {
    box-shadow:
        0 0 50px rgba(0, 245, 255, 0.6),
        0 0 80px rgba(255, 0, 255, 0.4),
        inset 0 0 60px rgba(0, 245, 255, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

/* ============================================
   NEON TEXT EFFECTS
   ============================================ */

h1, h2, h3 {
    color: var(--text-primary);
    text-shadow: var(--glow-primary);
}

a {
    color: var(--accent-primary);
    text-shadow: 0 0 5px var(--accent-primary);
}

a:hover {
    color: var(--accent-secondary);
    text-shadow: var(--glow-secondary);
}

/* ============================================
   NEON FORM INPUTS
   ============================================ */

input, textarea, select {
    background: rgba(26, 26, 62, 0.8);
    border: 2px solid var(--accent-tertiary);
    color: var(--text-primary);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px var(--accent-primary);
}

/* ============================================
   NEON SCROLLBAR
   ============================================ */

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-primary);
}

::-webkit-scrollbar-thumb:hover {
    box-shadow:
        0 0 30px var(--accent-primary),
        0 0 40px var(--accent-secondary);
}

/* ============================================
   ADDITIONAL NEON EFFECTS
   ============================================ */

/* Glitch effect on headings */
@keyframes glitch {
    0%, 100% {
        text-shadow: var(--glow-primary);
        transform: translate(0);
    }
    25% {
        text-shadow: -2px 0 var(--accent-secondary);
        transform: translate(2px, 0);
    }
    50% {
        text-shadow: 2px 0 var(--accent-primary);
        transform: translate(-2px, 0);
    }
    75% {
        text-shadow: -2px 0 var(--accent-secondary);
        transform: translate(2px, 0);
    }
}

h1:hover {
    animation: glitch 0.3s ease-in-out 2;
}

/* Cyber badges */
.badge, .tag, .label {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: var(--glow-primary), inset 0 0 20px rgba(0, 245, 255, 0.1);
    text-shadow: 0 0 10px var(--accent-primary);
    transition: all 0.3s ease;
}

.badge:hover, .tag:hover, .label:hover {
    background: var(--accent-primary);
    color: #000000;
    box-shadow:
        0 0 40px var(--accent-primary),
        0 0 60px var(--accent-secondary);
    transform: scale(1.05);
}

/* Scanline effect */
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

body.path-neon-dreams::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 245, 255, 0.8),
        transparent
    );
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.8);
    animation: scanline 4s linear infinite;
    pointer-events: none;
    z-index: 10;  /* Reduced from var(--z-tooltip) to prevent overlapping important content */
    opacity: 0.3;
}

/* Neon dividers */
hr, .divider {
    border: none;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        var(--accent-primary),
        var(--accent-secondary),
        transparent
    );
    margin: 2.5rem 0;
    box-shadow: 0 0 20px var(--accent-primary);
    position: relative;
}

/* Selection highlight */
::selection {
    background: var(--accent-primary);
    color: #000000;
    text-shadow: none;
}

/* Image hover effects */
img {
    transition: all 0.4s ease;
    filter: brightness(0.9) contrast(1.1);
}

img:hover {
    filter: brightness(1.1) contrast(1.2) drop-shadow(0 0 30px var(--accent-primary));
    transform: scale(1.02);
}

/* ============================================
   END OF NEON DREAMS THEME
   All base styles inherited from base-theme.css
   ============================================ */
