/*
 * Modern Statistics CSS - PPID SMAN 1 Lubuk Sikaping
 * Keren dan modern dengan warna yang menarik untuk setiap fitur statistik
 */

/* ===== STATISTICS SECTION BACKGROUND ===== */
.stats-section {
    padding: 6rem 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    position: relative !important;
    overflow: hidden !important;
}

.stats-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%) !important;
    z-index: 1 !important;
}

.stats-section::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') !important;
    z-index: 1 !important;
}

/* ===== SECTION TITLE ===== */
.stats-section .section-title {
    color: white !important;
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    z-index: 3 !important;
}

.stats-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.2rem !important;
    margin-bottom: 0 !important;
    position: relative !important;
    z-index: 3 !important;
}

/* ===== MODERN STAT ITEMS ===== */
.stat-item {
    position: relative !important;
    z-index: 3 !important;
    padding: 2rem 1.5rem !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-align: center !important;
    overflow: hidden !important;
}

.stat-item::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    z-index: -1 !important;
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.stat-item:hover::before {
    opacity: 1 !important;
}

/* ===== STAT NUMBERS WITH UNIQUE COLORS ===== */
.stat-number {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    line-height: 1 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    position: relative !important;
}

/* Pengunjung - Blue Gradient */
.stat-item:nth-child(1) .stat-number {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-item:nth-child(1) {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.1) 100%) !important;
    border-color: rgba(79, 172, 254, 0.3) !important;
}

.stat-item:nth-child(1):hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.3) 0%, rgba(0, 242, 254, 0.2) 100%) !important;
    box-shadow: 
        0 20px 40px rgba(79, 172, 254, 0.3),
        0 10px 20px rgba(0, 242, 254, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Dokumen Publik - Green Gradient */
.stat-item:nth-child(2) .stat-number {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.2) 0%, rgba(56, 249, 215, 0.1) 100%) !important;
    border-color: rgba(67, 233, 123, 0.3) !important;
}

.stat-item:nth-child(2):hover {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.3) 0%, rgba(56, 249, 215, 0.2) 100%) !important;
    box-shadow: 
        0 20px 40px rgba(67, 233, 123, 0.3),
        0 10px 20px rgba(56, 249, 215, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Permohonan Informasi - Purple Gradient */
.stat-item:nth-child(3) .stat-number {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.2) 0%, rgba(254, 225, 64, 0.1) 100%) !important;
    border-color: rgba(250, 112, 154, 0.3) !important;
}

.stat-item:nth-child(3):hover {
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.3) 0%, rgba(254, 225, 64, 0.2) 100%) !important;
    box-shadow: 
        0 20px 40px rgba(250, 112, 154, 0.3),
        0 10px 20px rgba(254, 225, 64, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Pengajuan Keberatan - Orange Gradient */
.stat-item:nth-child(4) .stat-number {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-item:nth-child(4) {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.2) 0%, rgba(254, 207, 239, 0.1) 100%) !important;
    border-color: rgba(255, 154, 158, 0.3) !important;
}

.stat-item:nth-child(4):hover {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.3) 0%, rgba(254, 207, 239, 0.2) 100%) !important;
    box-shadow: 
        0 20px 40px rgba(255, 154, 158, 0.3),
        0 10px 20px rgba(254, 207, 239, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ===== STAT ICONS ===== */
.stat-icon {
    font-size: 2.5rem !important;
    margin-bottom: 1rem !important;
    opacity: 0.9 !important;
    transition: all 0.3s ease !important;
}

.stat-icon i {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

/* Icon colors for each stat */
.stat-item:nth-child(1) .stat-icon i {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-item:nth-child(2) .stat-icon i {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-item:nth-child(3) .stat-icon i {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.stat-item:nth-child(4) .stat-icon i {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ===== STAT LABELS ===== */
.stat-label {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* ===== FLOATING ANIMATION ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stat-item {
    animation: float 6s ease-in-out infinite !important;
}

.stat-item:nth-child(1) {
    animation-delay: 0s !important;
}

.stat-item:nth-child(2) {
    animation-delay: 1.5s !important;
}

.stat-item:nth-child(3) {
    animation-delay: 3s !important;
}

.stat-item:nth-child(4) {
    animation-delay: 4.5s !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .stat-item {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 4rem 0 !important;
    }

    .stats-section .section-title {
        font-size: 2rem !important;
    }

    .stats-section .section-subtitle {
        font-size: 1rem !important;
    }

    .stat-item {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .stat-icon {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .stat-number {
        font-size: 2.5rem !important;
    }

    .stat-label {
        font-size: 0.95rem !important;
        letter-spacing: 0.5px !important;
    }
}

@media (max-width: 576px) {
    .stats-section {
        padding: 3rem 0 !important;
    }

    .stats-section .section-title {
        font-size: 1.75rem !important;
    }

    .stat-item {
        padding: 1.25rem 0.75rem !important;
        border-radius: 15px !important;
    }

    .stat-icon {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .stat-label {
        font-size: 0.9rem !important;
        letter-spacing: 0.3px !important;
    }
}

/* ===== EXTRA SMALL DEVICES ===== */
@media (max-width: 480px) {
    .stats-section {
        padding: 2.5rem 0 !important;
    }

    .stats-section .section-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }

    .stats-section .section-subtitle {
        font-size: 0.9rem !important;
    }

    .stat-item {
        padding: 1rem 0.5rem !important;
        border-radius: 12px !important;
    }

    .stat-icon {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .stat-number {
        font-size: 1.75rem !important;
        margin-bottom: 0.25rem !important;
    }

    .stat-label {
        font-size: 0.8rem !important;
        letter-spacing: 0.2px !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .stat-item {
        animation: none !important;
    }
    
    .stat-item:hover {
        transform: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .stat-item {
        background: rgba(255, 255, 255, 0.9) !important;
        color: #000 !important;
        border: 2px solid #000 !important;
    }
    
    .stat-number {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
    
    .stat-label {
        color: #000 !important;
    }
}
