/* =============================================================================
   CUSTOM SCROLLBAR STYLES
   ============================================================================= */

/* WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background:
        linear-gradient(180deg, rgba(3, 12, 24, 0.94), rgba(8, 24, 42, 0.9));
    border: 1px solid rgba(125, 180, 255, 0.1);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background:
        linear-gradient(180deg, rgba(125, 180, 255, 0.95), rgba(37, 99, 235, 0.92));
    border: 3px solid rgba(3, 12, 24, 0.94);
    border-radius: 999px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 0 14px rgba(74, 158, 255, 0.28);
}

::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(191, 219, 254, 1), rgba(74, 158, 255, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 0 18px rgba(96, 165, 250, 0.42);
}

::-webkit-scrollbar-corner {
    background: rgba(3, 12, 24, 0.94);
}

/* Firefox browser */
* {
    scrollbar-width: thin;
    scrollbar-color: #60a5fa #06101f;
}

/* Optional: Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}


/* =============================================================================
   GLOBAL BACKGROUND STYLES
   ============================================================================= */

/* Main body background with overlay */
body {
    position: relative;
    background: url('/assets/img/background.jpg') no-repeat center center fixed;
    background-size: cover;
    background-color: #0f111a;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: -1;
}

.report-page::before,
.report-page::after,
.armory-page::before,
.armory-page::after,
.players-page::before,
.players-page::after,
.vote-page::before,
.vote-page::after,
.voteshop-page::before,
.voteshop-page::after,
.legal-page::before,
.legal-page::after,
.cookie-page::before,
.cookie-page::after,
.profile-page::before,
.profile-page::after,
.daily-login-page::before,
.daily-login-page::after,
.downloads-page::before,
.downloads-page::after,
.leaderboards-page::before,
.leaderboards-page::after,
.my-reports-page::before,
.my-reports-page::after,
.my-report-view-page::before,
.my-report-view-page::after,
.report-view-page::before,
.report-view-page::after,
.security-center-page::before,
.security-center-page::after,
.security-page::before,
.security-page::after {
    content: none !important;
    display: none !important;
}


/* =============================================================================
   GLOBAL FOOTER
   ============================================================================= */

/* Sticky Footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1 0 auto;
}

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

/* FROST FOOTER */
.frost-footer {
    position: relative;
    margin-top: 52px;
    padding: 26px 0 22px;
    background:
        radial-gradient(ellipse at 18% 0%, rgba(74, 163, 255, 0.12) 0%, transparent 42%),
        radial-gradient(ellipse at 82% 0%, rgba(16, 185, 129, 0.08) 0%, transparent 38%),
        linear-gradient(180deg, rgba(10, 15, 25, 0.48), rgba(7, 12, 22, 0.84));
    backdrop-filter: blur(16px) saturate(130%);
    border-top: 1px solid rgba(125, 175, 255, 0.14);
    box-shadow: 0 -14px 36px rgba(0,0,0,0.36);
    color: #cfe7ff;
    overflow: hidden;
}

.frost-footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 175, 255, 0.42), transparent);
}

.footer-inner {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-main {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 54px;
    text-decoration: none;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(74, 163, 255, 0.2)) drop-shadow(0 6px 10px rgba(0, 0, 0, 0.36));
}

/* Links as Buttons */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.footer-btn {
    color: #d7e6ff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s ease;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    line-height: 1;
}

.footer-btn:hover {
    background: rgba(74,163,255,0.2);
    border-color: rgba(74,163,255,0.4);
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-btn.discord {
    background: rgba(88, 101, 242, 0.9);
    border-color: rgba(139, 151, 255, 0.45);
    color: #fff;
}

.footer-btn.discord:hover {
    filter: brightness(1.1);
    background: #5865F2;
    border-color: rgba(139, 151, 255, 0.8);
}

.footer-btn i {
    font-size: 0.9rem;
    margin-right: 4px;
}

/* Bottom Section */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(125, 175, 255, 0.1);
}

/* Powered By */
.footer-powered {
    font-size: 0.85rem;
    color: #9aa3c0;
}

.footer-accent {
    background: linear-gradient(to bottom, #cfeaff, #4aa3ff);
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(74,163,255,0.5);
}

.footer-accent:hover {
    opacity: 0.85;
}

/* Copyright */
.footer-copy {
    color: #7f8da6;
    font-size: 0.8rem;
}

/* Shared Toasts */
.site-toast-region {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 5000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

.site-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(125, 180, 255, 0.2);
    background: rgba(6, 18, 32, 0.96);
    color: #eaf4ff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
}

.site-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.site-toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.14);
}

.site-toast.error .site-toast-icon {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.14);
}

.site-toast.warning .site-toast-icon {
    color: #fcd34d;
    background: rgba(245, 158, 11, 0.14);
}

.site-toast-message {
    min-width: 0;
    color: #dbeafe;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
}

.footer-meta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #7f8da6;
    font-size: 0.72rem;
    opacity: 0.72;
}

.footer-meta span + span {
    position: relative;
}

.footer-meta span + span::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 50%;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
    transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 860px) {
    .footer-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 12px;
    }

    .footer-links {
        justify-content: center;
    }

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

    .footer-meta {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .frost-footer {
        margin-top: 36px;
        padding-top: 22px;
    }

    .footer-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .footer-brand {
        width: 104px;
        height: 48px;
    }
}

