/* ===================================================================
   AYALA ONLINE - STATISTICS PAGE CUSTOM STYLES
   Matches the home page pink/purple aesthetic
   ================================================================ */

/* Full page background with game screenshot */
body {
    background-image: url('../../images/bg01.gif') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    position: relative;
}

/* Purple gradient overlay - First layer */
body::before {
    content: "";
    display: block;
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #7579ff;
    background: -webkit-linear-gradient(bottom, #b224ef, #7579ff);
    background: -o-linear-gradient(bottom, #b224ef, #7579ff);
    background: -moz-linear-gradient(bottom, #b224ef, #7579ff);
    background: linear-gradient(to top, #b224ef, #7579ff);
    opacity: 0.3;
}

/* Dark overlay - Second layer (EXACTLY like home page) */
body::after {
    content: "";
    display: block;
    position: fixed;
    z-index: -1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Header styling - TRANSPARENT like home page */
.header-section {
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 20px 0 !important;
    border-bottom: none !important;
}

.header-section .logo img {
    max-height: 80px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Navigation buttons - EXACT MATCH to home page */
.header-section .nav-buttons a {
    min-width: 140px !important;
    height: 50px !important;
    line-height: 50px !important;
    padding: 0 20px !important;
    background-color: #fff !important;
    color: #555 !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-family: Poppins-Regular, sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    margin: 5px 3px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    display: inline-block !important;
    text-align: center;
}

.header-section .nav-buttons a:hover {
    background-color: #555555 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Cards with glassmorphism effect */
.card {
    background: rgba(30, 20, 50, 0.85) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.card-header {
    background: rgba(163, 67, 255, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 15px 15px 0 0 !important;
}

.card-body {
    color: #d7e7ff !important;
}

/* Stat boxes */
.card.stats-box {
    background: linear-gradient(135deg, rgba(163, 67, 255, 0.3), rgba(234, 79, 157, 0.3)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Charts background */
.card-body canvas,
.card-body svg {
    background: transparent !important;
}

/* Map container */
#world-map-markers {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Progress bars - matching purple theme */
.progress {
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, rgba(163, 67, 255, 0.9), rgba(234, 79, 157, 0.9)) !important;
}

/* Text colors */
h1, h2, h3, h4, h5, h6, .card-title {
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

p, span, div {
    color: #d7e7ff !important;
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    background: rgba(30, 20, 50, 0.95) !important;
    color: #fff !important;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-content {
    color: #fff !important;
    font-weight: 500;
}

.leaflet-popup-tip {
    background: rgba(30, 20, 50, 0.95) !important;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .header-section .nav-buttons {
        justify-content: center;
        margin-top: 15px;
    }
    
    .header-section .nav-buttons a {
        margin: 5px 5px !important;
    }
}
