/**
 * EPIC DRAGON BODY & FOOTER THEME 🐉🔥
 * Pure Power & Energy Effects for Body Background & Footer
 * @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));
    --epic-gradient-triple: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple), var(--epic-pink));
    --epic-bg-dark: rgba(26, 26, 26, 0.95);
    --epic-bg-darker: rgba(37, 37, 37, 0.95);
}

/* ===================================
   BODY BACKGROUND 🌌
   =================================== */

body {
    background: #0a0a0a !important;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 20, 147, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    position: relative;
    min-height: 100vh;
}

/* Animated Cosmic Background Layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 217, 255, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 85% 30%, rgba(138, 43, 226, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 50% 70%, rgba(255, 20, 147, 0.04) 1.5px, transparent 1.5px),
        radial-gradient(circle at 30% 60%, rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 70% 40%, rgba(138, 43, 226, 0.03) 1px, transparent 1px);
    background-size: 150px 150px, 200px 200px, 180px 180px, 100px 100px, 120px 120px;
    animation: cosmicDustBody 60s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

/* Energy Lines floating across the screen */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 217, 255, 0.03) 25%,
        rgba(138, 43, 226, 0.03) 50%,
        rgba(255, 20, 147, 0.03) 75%,
        transparent 100%);
    animation: energyWaveBody 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes cosmicDustBody {
    0% {
        background-position: 0% 0%, 50% 50%, 100% 0%, 0% 100%, 100% 100%;
    }
    25% {
        background-position: 50% 25%, 75% 75%, 25% 50%, 30% 70%, 70% 30%;
    }
    50% {
        background-position: 100% 50%, 0% 100%, 50% 100%, 60% 40%, 40% 60%;
    }
    75% {
        background-position: 50% 75%, 25% 25%, 75% 50%, 90% 10%, 10% 90%;
    }
    100% {
        background-position: 0% 0%, 50% 50%, 100% 0%, 0% 100%, 100% 100%;
    }
}

@keyframes energyWaveBody {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    100% {
        transform: translateX(50%) rotate(5deg);
    }
}

/* Main Content Area */
#main-content,
.site-content,
#content,
.main-wrapper {
    position: relative;
    z-index: 1;
}

/* ===================================
   FOOTER SECTION 🎮
   =================================== */

footer,
.footer,
.site-footer,
#footer {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%) !important;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--epic-cyan), var(--epic-purple), var(--epic-pink), transparent) 1;
    padding: 60px 0 30px 0 !important;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
    box-shadow: 0 -10px 50px rgba(0, 217, 255, 0.15);
}

/* Footer Cosmic Background */
footer::before,
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 217, 255, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 90% 80%, rgba(138, 43, 226, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 50% 50%, rgba(255, 20, 147, 0.08) 1.5px, transparent 1.5px);
    background-size: 100px 100px, 150px 150px, 120px 120px;
    animation: cosmicDust 30s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Footer Top Energy Line */
footer::after,
.site-footer::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--epic-cyan) 20%,
        var(--epic-purple) 50%,
        var(--epic-pink) 80%,
        transparent 100%);
    animation: energyPulse 3s ease-in-out infinite;
}

footer > *,
.site-footer > * {
    position: relative;
    z-index: 1;
}

/* ===================================
   FOOTER CONTAINER 📦
   =================================== */

.footer-container,
.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ===================================
   FOOTER WIDGETS 📋
   =================================== */

.footer-widgets,
.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget,
.widget.footer-widget {
    background: rgba(0, 217, 255, 0.05) !important;
    border: 2px solid rgba(0, 217, 255, 0.2) !important;
    border-radius: 15px !important;
    padding: 30px 25px !important;
    transition: all 0.4s ease;
}

.footer-widget:hover {
    border-color: rgba(0, 217, 255, 0.5) !important;
    box-shadow: 0 8px 30px rgba(0, 217, 255, 0.2);
    transform: translateY(-5px);
}

.footer-widget .widget-title,
.footer-widget h3,
.footer-widget h4 {
    color: var(--epic-cyan) !important;
    font-weight: 800 !important;
    font-size: 20px !important;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    margin-bottom: 20px !important;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 217, 255, 0.3);
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.footer-widget ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--epic-cyan);
    font-weight: normal;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-widget ul li a:hover {
    color: var(--epic-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
    transform: translateX(5px);
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ===================================
   FOOTER LEGAL LINKS 📜
   =================================== */

.footer-legal,
.footer-bottom {
    border-top: 2px solid rgba(0, 217, 255, 0.2);
    padding-top: 30px;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links,
.footer-menu {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-legal-links li,
.footer-menu li {
    margin: 0;
}

.footer-legal-links a,
.footer-menu a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

.footer-legal-links a::before,
.footer-menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--epic-cyan);
    transition: transform 0.3s ease;
}

.footer-legal-links a:hover,
.footer-menu a:hover {
    color: var(--epic-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.footer-legal-links a:hover::before,
.footer-menu a:hover::before {
    transform: translateX(-50%) scaleX(1);
}

/* ===================================
   FOOTER COPYRIGHT 📝
   =================================== */

.footer-copyright,
.copyright-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

.footer-copyright strong,
.copyright-text strong {
    color: var(--epic-cyan);
    font-weight: 700;
}

.footer-copyright a,
.copyright-text a {
    color: var(--epic-purple) !important;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-copyright a:hover,
.copyright-text a:hover {
    color: var(--epic-pink) !important;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.5);
}

/* ===================================
   FOOTER SOCIAL ICONS 🌐
   =================================== */

.footer-social,
.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.footer-social a,
.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(0, 217, 255, 0.1);
    border: 2px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    color: var(--epic-cyan) !important;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover,
.social-icons a:hover {
    background: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple));
    border-color: var(--epic-cyan);
    color: #000 !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.5);
}

.footer-social a i,
.social-icons a i {
    transition: all 0.3s ease;
}

.footer-social a:hover i,
.social-icons a:hover i {
    transform: rotate(10deg) scale(1.1);
}

/* ===================================
   FOOTER LOGO 🎮
   =================================== */

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
    transition: all 0.4s ease;
}

.footer-logo img:hover {
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.8));
    transform: scale(1.05);
}

/* ===================================
   FOOTER CONTACT INFO 📧
   =================================== */

.footer-contact,
.contact-info {
    margin: 20px 0;
}

.footer-contact p,
.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-contact i,
.contact-info i {
    color: var(--epic-cyan);
    font-size: 18px;
    min-width: 25px;
}

.footer-contact a,
.contact-info a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-contact a:hover,
.contact-info a:hover {
    color: var(--epic-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* ===================================
   BACK TO TOP BUTTON ⬆️
   =================================== */

.back-to-top,
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--epic-cyan), var(--epic-purple)) !important;
    border: 2px solid var(--epic-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000 !important;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show,
#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover,
#back-to-top:hover {
    background: linear-gradient(135deg, var(--epic-purple), var(--epic-pink)) !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 217, 255, 0.6);
}

.back-to-top i,
#back-to-top i {
    animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===================================
   KEYFRAME ANIMATIONS
   =================================== */

@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 energyPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* ===================================
   RESPONSIVE DESIGN 📱
   =================================== */

@media (max-width: 991px) {
    footer,
    .site-footer {
        padding: 50px 0 20px 0 !important;
    }

    .footer-widgets,
    .footer-top {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }

    .footer-legal,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal-links,
    .footer-menu {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    footer,
    .site-footer {
        padding: 40px 0 20px 0 !important;
        margin-top: 50px;
    }

    .footer-widgets,
    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-container,
    .footer-wrapper {
        padding: 0 20px;
    }

    .footer-legal-links,
    .footer-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .back-to-top,
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .footer-social,
    .social-icons {
        gap: 10px;
    }

    .footer-social a,
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ===================================
   ACCESSIBILITY & PERFORMANCE ⚡
   =================================== */

@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    footer::before,
    footer::after,
    .back-to-top i {
        animation: none !important;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible for Accessibility */
.footer-legal-links a:focus-visible,
.footer-menu a:focus-visible,
.footer-social a:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid var(--epic-cyan);
    outline-offset: 3px;
}

/* ===================================
   🐉 EPIC BODY & FOOTER - COMPLETE! 🔥
   =================================== */
