/* ============================================================
   FOOTER â€” Epic Warcraft Style with Unique Elements
   ============================================================ */

:root {
    --gold: #f2cf5b;
    --gold-dark: #c9a227;
    --gold-deep: #8a6a14;
    --gold-light: #fde68a;
    --gold-glow: rgba(242,207,82,0.15);
}

/* --- Footer Container --- */
.wow-footer {
    background: linear-gradient(180deg, rgb(33 37 50) 0%, rgba(8, 12, 20, 0.99) 50%, rgba(2, 4, 7, 1) 100%);
    border-top: 1px solid rgb(167 169 176);
    box-shadow: 0 -16px 48px rgba(0,0,0,0.6);
    position: relative;
    margin-top: 4rem;
    padding: 0;
    overflow: hidden;
}

/* Animated runes background */
.wow-footer::before {
    /* content: 'áš  áš¢ áš¦ áš¨ áš± áš² áš· áš¹ ášº áš¾ á› á›ƒ á›‡ á›ˆ á›‰ á›Š á› á›’ á›– á›— á›š á› á›Ÿ á›ž'; */
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 8rem;
    font-weight: 300;
    color: rgb(50 55 69 / 9%);
    letter-spacing: 20px;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
    animation: runesDrift 30s linear infinite;
    transform-origin: bottom right;
}

@keyframes runesDrift {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
    50% { transform: translate(-30px, -20px) rotate(2deg); opacity: 0.6; }
    100% { transform: translate(0, 0) rotate(0deg); opacity: 0.3; }
}

/* Gold glowing line at top with pulse */
.wow-footer::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(242,207,82,0.2) 15%,
        var(--gold) 50%,
        rgba(242,207,82,0.2) 85%,
        transparent
    );
    box-shadow: 0 0 40px rgba(242,207,82,0.1);
    animation: goldLinePulse 4s ease-in-out infinite;
}

@keyframes goldLinePulse {
    0%, 100% { width: 60%; opacity: 0.6; }
    50% { width: 80%; opacity: 1; }
}

/* --- Footer Inner --- */
.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 44px 32px 28px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 32px 20px 24px;
    }
}

/* --- Footer Grid --- */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1.4fr 1fr;
        text-align: left;
        gap: 48px;
    }
}

/* --- Logo Section --- */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

@media (min-width: 768px) {
    .footer-brand {
        align-items: flex-start;
    }
}

.footer-logo {
    transition: all 0.5s cubic-bezier(0.22, 0.68, 0, 1);
    display: inline-block;
    position: relative;
}

.footer-logo::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 1px solid rgba(242,207,82,0.05);
    border-radius: 4px;
    opacity: 0;
    transition: all 0.5s ease;
}

.footer-logo:hover {
    transform: scale(1.05) translateY(-2px);
    filter: drop-shadow(0 0 30px rgba(242,207,82,0.12));
}

.footer-logo:hover::before {
    opacity: 1;
    inset: -12px;
}

.footer-logo img {
    height: 56px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .footer-logo img {
        height: 68px;
    }
}

/* Unique decorative rune border */
.footer-brand-decoration {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 4px;
}

.footer-brand-decoration .rune {
    color: rgba(242,207,82,0.12);
    font-size: 0.7rem;
    letter-spacing: 4px;
    font-weight: 300;
}

.footer-brand-decoration .line {
    width: 30px;
    height: 1px;
    background: linear-gradient(90deg, rgba(242,207,82,0.2), transparent);
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.3);
    max-width: 320px;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.footer-tagline .highlight {
    color: var(--gold);
    font-weight: 400;
    text-shadow: 0 0 30px rgba(242,207,82,0.05);
}

/* --- Server Status Mini Widget --- */
.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 6px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(74,222,128,0.08);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.footer-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(74,222,128,0.2);
}

.footer-status .status-text {
    color: #4ade80;
}

.footer-status:hover {
    border-color: rgba(74,222,128,0.15);
    background: rgba(74,222,128,0.03);
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}

/* --- Links Section --- */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .footer-links {
        align-items: center;
    }
}

.footer-links-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 18px;
}

@media (min-width: 768px) {
    .footer-links-group {
        gap: 8px 22px;
    }
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 0;
}

/* Animated underline with gold */
.footer-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transition: all 0.4s cubic-bezier(0.22, 0.68, 0, 1);
}

.footer-link:hover {
    color: #a7a9b0;
    text-shadow: 0 0 30px rgba(242,207,82,0.08);
}

.footer-link:hover::before {
    width: 100%;
}

/* Link with rune icon */
.footer-link .link-rune {
    display: inline-block;
    font-size: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    margin-right: 2px;
}

.footer-link:hover .link-rune {
    opacity: 0.4;
    transform: rotate(10deg);
}

.footer-divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(242,207,82,0.1), transparent);
    margin: 2px 0;
}

@media (max-width: 767px) {
    .footer-divider-line {
        width: 60px;
    }
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgb(167 169 176);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-copyright .brand {
    color: rgb(66 69 74);
}

.footer-copyright .separator {
    opacity: 0.2;
}

/* --- Social Section --- */
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .footer-social {
        align-items: flex-end;
    }
}

/* Unique social label with runes */
.footer-social-label {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgb(255 255 255 / 30%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social-label .rune-left,
.footer-social-label .rune-right {
    font-size: 0.5rem;
    opacity: 0.3;
    font-weight: 300;
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

@media (min-width: 768px) {
    .social-icons {
        justify-content: flex-end;
        gap: 10px;
    }
}

/* Premium social buttons with 3D effect */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.15);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.22, 0.68, 0, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

/* 3D hover effect */
.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(242,207,82,0.06), transparent 70%);
    opacity: 0;
    transition: all 0.4s ease;
}

.social-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 2px;
}

.social-btn:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: rgb(158 160 166);
    background: rgba(242,207,82,0.03);
    box-shadow: 
        0 12px 32px rgba(0,0,0,0.4),
        0 0 40px rgba(242,207,82,0.02);
    border-radius: 4px;
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn:hover::after {
    opacity: 0.6;
    left: 10%;
    right: 10%;
}

.social-btn .icon {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.social-btn:hover .icon {
    transform: scale(1.1);
}

/* Brand colors on hover */
.social-btn:hover .fa-facebook-f { color: #1877f2; text-shadow: 0 0 20px rgba(24,119,242,0.3); }
.social-btn:hover .fa-x-twitter { color: #1da1f2; text-shadow: 0 0 20px rgba(29,161,242,0.3); }
.social-btn:hover .fa-tiktok { color: #ff0050; text-shadow: 0 0 20px rgba(255,0,80,0.3); }
.social-btn:hover .fa-youtube { color: #ff0000; text-shadow: 0 0 20px rgba(255,0,0,0.3); }
.social-btn:hover .fa-discord { color: #5865f2; text-shadow: 0 0 20px rgba(88,101,242,0.3); }
.social-btn:hover .fa-twitch { color: #9146ff; text-shadow: 0 0 20px rgba(145,70,255,0.3); }
.social-btn:hover .fa-instagram { color: #e4405f; text-shadow: 0 0 20px rgba(228,64,95,0.3); }
.social-btn:hover .fa-github { color: #f0f6fc; text-shadow: 0 0 20px rgba(240,246,252,0.3); }
.social-btn:hover .fa-kickstarter { color: #2bde73; text-shadow: 0 0 20px rgba(43,222,115,0.3); }
.social-btn:hover .fa-linkedin-in { color: #0a66c2; text-shadow: 0 0 20px rgba(10,102,194,0.3); }

/* --- Counter --- */
.footer-counter {
    margin-top: 6px;
    opacity: 0.45;
    transition: all 0.4s ease;
}

.footer-counter:hover {
    opacity: 0.4;
}

.footer-counter img {
    border-radius: 2px;
    filter: grayscale(1);
    transition: filter 0.4s ease;
}

.footer-counter:hover img {
    filter: grayscale(0);
}

/* --- Back to Top Button â€” Unique Shield Design --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #323746;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    border-radius: 50%;
    box-shadow: 
        0 8px 28px rgba(0,0,0,0.6),
        0 0 40px rgba(242,207,82,0.05),
        inset 0 1px 0 rgba(255,255,255,0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.22, 0.68, 0, 1);
    z-index: 999;
    text-shadow: 0 1px 0 rgba(255,255,255,0.12);
}

/* Shield glow ring */
#backToTop::before {
    content: '';
    position: absolute;
    inset: -4px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 1px solid rgba(242,207,82,0.1);
    opacity: 0;
    transition: all 0.4s ease;
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.08); opacity: 0; }
}

#backToTop:hover::before {
    opacity: 0.5;
}

#backToTop:hover {
    transform: translateY(-6px) scale(1.06) rotate(-5deg);
    box-shadow: 
        0 14px 40px rgba(0,0,0,0.7),
        0 0 60px rgba(242,207,82,0.12),
        inset 0 1px 0 rgba(255,255,255,0.25);
    filter: brightness(1.08);
}

#backToTop:active {
    transform: scale(0.92);
}

#backToTop .arrow-icon {
    position: relative;
    z-index: 1;
    margin-top: -4px;
}

/* Show states */
#backToTop.show,
#backToTop.active,
#backToTop.visible {
    opacity: 1;
    pointer-events: auto;
}




/* --- Responsive --- */
@media (max-width: 640px) {
    .footer-brand-decoration .rune {
        font-size: 0.5rem;
        letter-spacing: 2px;
    }
    .footer-brand-decoration .line {
        width: 20px;
    }
    .footer-social-label .rune-left,
    .footer-social-label .rune-right {
        display: none;
    }
    .footer-link {
        font-size: 0.65rem;
    }
}