/**
 * EPIC DRAGON HEADER THEME 🐉🔥
 * Pure Power & Energy Effects
 * @package team-exciting
 * @version 1.0.0
 */

/* ===================================
   CSS VARIABLES - EPIC COLOR SCHEME
   =================================== */
:root {
    --epic-cyan: #00d9ff;
    --epic-purple: #8a2be2;
    --epic-pink: #ff1493;
    --epic-gradient: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple), var(--epic-pink));
}

/* ===================================
   LOGO - MASSIVE DRAGON HEAD 🐉
   =================================== */

/* Make logo HUGE */
.navbar .logo img {
    max-height: 120px !important;
    width: auto !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;

    /* Triple Glow Effect */
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.6))
            drop-shadow(0 0 60px rgba(138, 43, 226, 0.4))
            drop-shadow(0 0 90px rgba(255, 20, 147, 0.3)) !important;

    /* Floating Animation */
    animation: logoFloat 4s ease-in-out infinite !important;

    /* GPU Acceleration */
    will-change: transform, filter;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Logo Container */
.navbar .logo {
    position: relative;
    z-index: 100;
}

.navbar .logo a {
    display: inline-block;
    position: relative;
    padding: 10px;
}

/* Rotating Energy Ring on Hover */
.navbar .logo a::after {
    content: '';
    position: absolute;
    inset: -30px;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 217, 255, 0.3) 90deg,
        rgba(138, 43, 226, 0.3) 180deg,
        rgba(255, 20, 147, 0.3) 270deg,
        transparent 360deg
    );
    border-radius: 50%;
    opacity: 0;
    animation: logoRotate 8s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.navbar .logo a:hover::after {
    opacity: 1;
}

/* Energy Particles around Logo */
.navbar .logo a::before {
    content: '';
    position: absolute;
    inset: -50px;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 217, 255, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 60% 80%, rgba(255, 20, 147, 0.4) 2px, transparent 2px),
        radial-gradient(circle at 30% 70%, rgba(0, 217, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle at 90% 60%, rgba(138, 43, 226, 0.3) 1px, transparent 1px);
    background-size: 100% 100%;
    opacity: 0;
    animation: particleFloat 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.navbar .logo a:hover::before {
    opacity: 1;
}

/* Hover Effect - Logo Transformation */
.navbar .logo:hover img {
    transform: translateY(-8px) scale(1.08) rotateY(5deg) translateZ(20px) !important;
    filter: drop-shadow(0 0 50px rgba(0, 217, 255, 0.9))
            drop-shadow(0 0 80px rgba(138, 43, 226, 0.6))
            drop-shadow(0 0 120px rgba(255, 20, 147, 0.5)) !important;
}

/* ===================================
   KEYFRAME ANIMATIONS
   =================================== */

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.03);
    }
}

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(5px, -5px) scale(1.2);
        opacity: 1;
    }
}

@keyframes energyPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes cosmicDust {
    0% {
        background-position: 0% 0%, 50% 50%, 100% 0%;
    }
    50% {
        background-position: 100% 100%, 0% 100%, 0% 50%;
    }
    100% {
        background-position: 0% 0%, 50% 50%, 100% 0%;
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(20px);
    }
}

@keyframes dragonBreath {
    0% {
        opacity: 0;
        transform: translateX(-100%) scale(0);
    }
    50% {
        opacity: 0.6;
        transform: translateX(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(100%) scale(0.5);
    }
}

/* ===================================
   HEADER BACKGROUND EFFECTS 🌌
   =================================== */

/* Cosmic Dust Background */
.navbar,
header.navbar,
.header-area {
    position: relative;
    overflow: hidden;
}

.navbar::before,
header.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 217, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(138, 43, 226, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255, 20, 147, 0.1) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px, 100px 100px;
    animation: cosmicDust 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Animated Grid Background */
.navbar::after,
header.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 2s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

/* Energy Lines */
.navbar .container {
    position: relative;
    z-index: 10;
}

/* ===================================
   DRAGON BREATH EFFECT 🔥
   =================================== */

/* Dragon Breath on Logo Hover */
.navbar .logo:hover a::after {
    animation: logoRotate 2s linear infinite, energyPulse 1.5s ease-in-out infinite;
}

/* Fire Breath Particles */
@keyframes fireBreath {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.5);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateX(100px) scale(1.5);
    }
}

/* ===================================
   NAVIGATION MENU EFFECTS ⚡
   =================================== */

/* Menu Items Glow */
.navbar .navbar-nav .nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--epic-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.6),
                 0 0 20px rgba(0, 217, 255, 0.4);
}

/* Underline Effect */
.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--epic-cyan), var(--epic-purple));
    transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ===================================
   BUTTONS & CART EPIC STYLE 🛒
   =================================== */

/* All Buttons */
.navbar .btn,
.navbar .button,
.navbar a.btn,
.navbar button {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    background-image: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple));
    color: #000 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Ripple Effect on Hover */
.navbar .btn::before,
.navbar .button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.navbar .btn:hover::before,
.navbar .button:hover::before {
    width: 300px;
    height: 300px;
}

.navbar .btn:hover,
.navbar .button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 8px 30px rgba(0, 217, 255, 0.6),
        0 0 40px rgba(0, 217, 255, 0.4);
    border-color: var(--epic-cyan);
}

/* Cart Badge Pulse */
.navbar .cart-count,
.navbar .badge {
    animation: energyPulse 2s ease-in-out infinite;
    background: linear-gradient(135deg, var(--epic-pink), var(--epic-purple)) !important;
    box-shadow: 0 0 15px rgba(255, 20, 147, 0.6);
}

/* ===================================
   MOBILE MENU TOGGLE 📱
   =================================== */

/* Menu Toggle Button */
.navbar-toggler {
    border: 2px solid var(--epic-cyan) !important;
    background: rgba(0, 217, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: rgba(0, 217, 255, 0.2) !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    transform: rotate(90deg);
}

.navbar-toggler-icon {
    filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.8));
}

/* ===================================
   SCROLLED STATE - EXTRA GLOW 🌟
   =================================== */

/* Scrolled Header with Enhanced Effects */
.navbar.scrolled,
header.navbar.scrolled {
    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(0, 217, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.navbar.scrolled::before,
header.navbar.scrolled::before {
    opacity: 0.8;
}

/* Logo slightly smaller when scrolled but still epic */
.navbar.scrolled .logo img {
    max-height: 90px !important;
}

/* ===================================
   DROPDOWN MENUS 📋
   =================================== */

/* Dropdown with Epic Style */
.navbar .dropdown-menu {
    background: linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(37, 37, 37, 0.98)) !important;
    border: 2px solid rgba(0, 217, 255, 0.3) !important;
    border-radius: 15px !important;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 217, 255, 0.2) !important;
    backdrop-filter: blur(10px);
}

.navbar .dropdown-item {
    color: #fff !important;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.navbar .dropdown-item:hover {
    background: rgba(0, 217, 255, 0.1) !important;
    border-left-color: var(--epic-cyan);
    padding-left: 20px;
    color: var(--epic-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* ===================================
   SEARCH BAR (if present) 🔍
   =================================== */

.navbar .search-form input,
.navbar input[type="search"] {
    background: rgba(0, 0, 0, 0.5) !important;
    border: 2px solid rgba(0, 217, 255, 0.3) !important;
    color: #fff !important;
    transition: all 0.3s ease;
}

.navbar .search-form input:focus,
.navbar input[type="search"]:focus {
    border-color: var(--epic-cyan) !important;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    background: rgba(0, 0, 0, 0.7) !important;
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS ⚡
   =================================== */

/* GPU Acceleration for Animations */
.navbar .logo,
.navbar .logo img,
.navbar .btn,
.navbar .navbar-nav .nav-link {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .navbar .logo img {
        animation: none !important;
    }

    .navbar::before,
    .navbar::after {
        animation: none !important;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   RESPONSIVE DESIGN 📱
   =================================== */

@media (max-width: 991px) {
    /* Smaller logo on mobile but still larger than before */
    .navbar .logo img {
        max-height: 80px !important;
    }

    .navbar.scrolled .logo img {
        max-height: 65px !important;
    }

    /* Mobile Menu Epic Style */
    .navbar-collapse {
        background: linear-gradient(145deg, rgba(26, 26, 26, 0.98), rgba(37, 37, 37, 0.98)) !important;
        border: 2px solid rgba(0, 217, 255, 0.3);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    }
}

@media (max-width: 576px) {
    /* Still decent size on tiny screens */
    .navbar .logo img {
        max-height: 65px !important;
    }

    .navbar.scrolled .logo img {
        max-height: 55px !important;
    }
}

/* ===================================
   ADDITIONAL EPIC ENHANCEMENTS 🎨
   =================================== */

/* Triple Border Animation for Logo Container */
.navbar .logo a {
    border-radius: 50%;
    padding: 15px;
}

.navbar .logo a:hover {
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        box-shadow:
            0 0 0 0 rgba(0, 217, 255, 0.4),
            0 0 0 10px rgba(138, 43, 226, 0.3),
            0 0 0 20px rgba(255, 20, 147, 0.2);
    }
    50% {
        box-shadow:
            0 0 0 10px rgba(0, 217, 255, 0.2),
            0 0 0 20px rgba(138, 43, 226, 0.15),
            0 0 0 30px rgba(255, 20, 147, 0.1);
    }
}

/* Energy Aura behind Logo */
.navbar .logo {
    filter: drop-shadow(0 0 50px rgba(0, 217, 255, 0.3));
}

/* Social Icons (if present) */
.navbar .social-icons a {
    transition: all 0.3s ease;
}

.navbar .social-icons a:hover {
    color: var(--epic-cyan) !important;
    transform: translateY(-3px) scale(1.2);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.8);
}

/* Profile/Avatar Glow */
.navbar .user-avatar,
.navbar .profile-image {
    border: 2px solid var(--epic-cyan);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
    transition: all 0.3s ease;
}

.navbar .user-avatar:hover,
.navbar .profile-image:hover {
    border-color: var(--epic-purple);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.7);
    transform: scale(1.1);
}

/* ===================================
   EPIC LOADING STATE 🌀
   =================================== */

/* Optional: Loading Spinner with Epic Colors */
.navbar .spinner,
.navbar .loading {
    border: 3px solid rgba(0, 217, 255, 0.3);
    border-top: 3px solid var(--epic-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   🐉 EPIC DRAGON HEADER - COMPLETE! 🔥
   =================================== */
