/* Stats Cards Component Styles */

/* Main card styles */
.stat-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* Hover effect background */
.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,123,255,0.05) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: 0;
}

.stat-card:hover::before {
    transform: scale(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Ensure all card content is above the background effect */
.stat-card > * {
    position: relative;
    z-index: 1;
}

/* Value styles */
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

/* Label styles */
.stat-label {
    font-size: 1rem;
    color: #666;
    flex: 1;
}

/* Icon styles */
.stat-icon {
    opacity: 0.8;
}

/* Citation styles */
.stat-citation {
    display: block;
    margin-top: auto;
    font-size: 0.875rem;
    position: relative;
    z-index: 10;
}

.stat-citation a {
    color: #6c757d;
    text-decoration: none;
    display: inline-block;
    padding: 2px 0;
}

.stat-citation a:hover {
    text-decoration: underline;
    color: #495057;
}

/* Arrow animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Theme variations */
.stats-cards-section.security-theme .stat-card::before {
    background: radial-gradient(circle, rgba(220,53,69,0.05) 0%, transparent 70%);
}

.stats-cards-section.digital-theme .stat-card::before {
    background: radial-gradient(circle, rgba(102,126,234,0.05) 0%, transparent 70%);
}

.stats-cards-section.infrastructure-theme .stat-card::before {
    background: radial-gradient(circle, rgba(50,130,184,0.05) 0%, transparent 70%);
}

.stats-cards-section.managed-theme .stat-card::before {
    background: radial-gradient(circle, rgba(25,135,84,0.05) 0%, transparent 70%);
}

/* Tablet responsiveness */
@media (max-width: 1199px) and (min-width: 768px) {
    .stat-card {
        min-height: 220px;
    }
    
    .stat-value {
        font-size: 2.25rem;
    }
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .stats-cards-section .row {
        row-gap: 1.5rem !important;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-card {
        margin-bottom: 0;
        min-height: 160px;
        padding: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-icon i {
        font-size: 2.5rem !important;
    }
    
    .stat-citation {
        font-size: 0.75rem;
    }
}