/* --- UNIFIED FOOTER STYLES --- */
/* Polished footer with proper alignment and sizing */

/* Animations */
@keyframes neonPulse {
    0% {
        filter: brightness(100%);
        text-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
    }

    100% {
        filter: brightness(120%);
        text-shadow: 0 0 25px rgba(255, 69, 0, 0.8);
    }
}

/* Common footer base styles */
footer,
.site-footer {
    background: #000000;
    border-top: 1px solid rgba(255, 85, 0, 0.3);
    padding: 50px 40px 30px;
    margin-top: auto;
}

/* Footer Main Container */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 40px;
    align-items: start;
}

/* Footer Brand Section - Left side with logo + scroll */
.footer-brand-section {
    display: flex;
    align-items: center;
    gap: 35px;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-brand h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ff8c00 0%, #ff4500 50%, #ff8c00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: neonPulse 3s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.7));
    margin-bottom: 10px;
    white-space: nowrap;
}

.footer-brand p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 220px;
}

/* Footer Links Column */
.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-col h4 {
    color: #ff8c00;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 85, 0, 0.3);
}

.footer-col a {
    color: #999;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s, transform 0.3s, padding-left 0.3s;
    display: block;
    border-left: 3px solid transparent;
}

.footer-col a:hover {
    color: #fff;
    padding-left: 12px;
    border-left-color: #ff5500;
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
    color: #555;
    font-size: 0.85rem;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 30px auto 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0 0 15px;
    line-height: 1.8;
}

.footer-bottom a {
    color: #ef4444;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: #ff8c42;
}

/* Secret Key Link */
.secret-key {
    color: #222 !important;
    font-size: 0.75rem;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s;
}

.secret-key:hover {
    color: #ef4444 !important;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
}

.social-btn {
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.social-btn:hover {
    transform: translateY(-2px);
    color: #fff;
    border-color: #ef4444;
}

/* BRAND COLORS */
.social-btn.discord {
    color: #5865F2;
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.1);
}

.social-btn.discord:hover {
    background: rgba(88, 101, 242, 0.15);
    border-color: #5865F2;
    color: #fff;
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.6), inset 0 0 15px rgba(88, 101, 242, 0.2);
    text-shadow: 0 0 10px #5865F2;
    transform: translateY(-5px);
}

.social-btn.youtube {
    color: #FF0000;
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.1);
}

.social-btn.youtube:hover {
    background: rgba(255, 0, 0, 0.15);
    border-color: #FF0000;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6), inset 0 0 15px rgba(255, 0, 0, 0.2);
    text-shadow: 0 0 10px #FF0000;
    transform: translateY(-5px);
}

.social-btn.roblox {
    color: #ddd;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.social-btn.roblox:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 10px #fff;
    transform: translateY(-5px);
}


/* Discord Button in Footer */
.footer-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5865F2, #7289da);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.footer-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(88, 101, 242, 0.4);
    color: #fff !important;
}

/* Responsive Footer */
@media (max-width: 768px) {

    .footer-content,
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    footer,
    .site-footer {
        padding: 30px 15px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer Fire Line (Top) */
.site-footer {
    position: relative;
    border-top: none !important;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--magma-orange) 25%,
            #ff0000 50%,
            var(--magma-orange) 75%,
            transparent 100%);
    background-size: 200% auto;
    box-shadow: 0 -4px 20px rgba(255, 69, 0, 0.8);
    animation: magma-flow 3s linear infinite;
    opacity: 1 !important;
}

/* ===== MAGIC SCROLL - Parchment Scroll Visual ===== */
@keyframes scroll-float {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes scroll-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes ember-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(255, 100, 0, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 25px rgba(255, 150, 50, 0.7)) drop-shadow(0 0 40px rgba(255, 85, 0, 0.3));
    }
}

.magic-scroll-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 120px;
    /* Realistic parchment scroll */
    background:
        radial-gradient(ellipse at top, #c4a77d 0%, #a89060 20%, transparent 70%),
        radial-gradient(ellipse at bottom, #c4a77d 0%, #a89060 20%, transparent 70%),
        linear-gradient(180deg,
            #6b5a3e 0%,
            #a89060 8%,
            #d4c4a0 15%,
            #e8dcc4 30%,
            #f0e6d2 50%,
            #e8dcc4 70%,
            #d4c4a0 85%,
            #a89060 92%,
            #6b5a3e 100%);
    background-size: 100% 100%;
    border: none;
    border-radius: 8px;
    padding: 20px 15px;
    cursor: pointer;
    position: relative;
    text-decoration: none !important;
    animation: scroll-float 5s ease-in-out infinite, ember-glow 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    /* Scroll shadow for depth */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.3),
        inset 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Top and bottom scroll rolls */
.magic-scroll-link::before,
.magic-scroll-link::after {
    content: '';
    position: absolute;
    left: -5px;
    right: -5px;
    height: 18px;
    background: linear-gradient(90deg, #5c4a2a, #8b7355, #a08060, #8b7355, #5c4a2a);
    border-radius: 9px;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

.magic-scroll-link::before {
    top: -6px;
}

.magic-scroll-link::after {
    bottom: -6px;
}

.magic-scroll-link:hover {
    transform: scale(1.08) rotate(0deg);
    box-shadow:
        0 12px 35px rgba(255, 100, 0, 0.4),
        0 0 60px rgba(255, 85, 0, 0.2),
        inset 0 2px 10px rgba(255, 255, 255, 0.4);
}

/* Text on scroll */
.magic-scroll-link .scroll-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.magic-scroll-link .scroll-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #3d2914;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.magic-scroll-link .scroll-subtitle {
    font-size: 0.55rem;
    font-weight: 600;
    color: #5c4a2a;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.4;
    max-width: 150px;
}

/* Footer Legal Column adjustment for scroll */
.footer-col.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
}

.footer-col.footer-legal h4 {
    display: none;
}