/**
 * Stats Grid Styles
 * Responsive grid layout for displaying statistics
 */

.stats-grid-container {
    width: 100%;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
    gap: 20px;
    margin: 0 auto;
}

.stats-card {
    background-color: #111111;
    color: white;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stats-title {
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: bold;
    line-height: 1.2;
	color: #fff !important;
}

.stats-description {
    font-size: 18px;
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.4;
}

.stats-value {
    font-size: 40px;
    font-weight: bold;
    margin: 0;
    line-height: 1.1;
    
    /* Fallback color */
    color: #FFF400;
    
    /* Gradient text effect */
    background-image: linear-gradient(135deg, #ffdb03 0%, #bd7900 25%, #ffdb03 50%, rgba(189,121,0,1) 75%, #ffdb03 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    
    /* Fallback for browsers that don't support background-clip: text */
    background-color: #FFF400;
    background-size: 100%;
    background-repeat: repeat;
}

/* Loading state */
.loading-text {
    color: #FFF400;
    opacity: 0.7;
    font-size: 24px;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 0.8;
    }
}

/* Error state */
.stats-value.error {
    color: #ff6b6b;
    font-size: 18px;
}

/* Responsive Design */

/* Tablet styles */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 15px;
    }
    
    .stats-card {
        padding: 25px 15px;
        min-height: 180px;
    }
    
    .stats-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .stats-description {
        font-size: 16px;
        margin-bottom: 18px;
    }
    
    .stats-value {
        font-size: 32px;
    }
    
    .loading-text {
        font-size: 20px;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .stats-grid-container {
        padding: 15px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 10px;
    }
    
    .stats-card {
        padding: 20px 15px;
        min-height: 160px;
    }
    
    .stats-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .stats-description {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .stats-value {
        font-size: 28px;
    }
    
    .loading-text {
        font-size: 18px;
    }
}

/* Extra small mobile */
@media (max-width: 320px) {
    .stats-card {
        padding: 18px 12px;
        min-height: 140px;
    }
    
    .stats-title {
        font-size: 15px;
    }
    
    .stats-description {
        font-size: 13px;
    }
    
    .stats-value {
        font-size: 24px;
    }
    
    .loading-text {
        font-size: 16px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .stats-card {
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .stats-card {
        background-color: #111111;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Print styles */
@media print {
    .stats-grid {
        display: block;
    }
    
    .stats-card {
        break-inside: avoid;
        margin-bottom: 20px;
        background-color: #f5f5f5 !important;
        color: #333 !important;
        border: 1px solid #ddd;
    }
    
    .stats-value {
        color: #333 !important;
        background: none !important;
        -webkit-text-fill-color: #333 !important;
    }
}
