/* Modern Statistics Section */

.modern-stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafe 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.modern-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e0e6ed" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.modern-stats-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(44, 90, 160, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
}

.stats-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.stats-badge {
    display: inline-block;
    background: linear-gradient(135deg, #2c5aa0, #1e3c72);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.2);
    position: relative;
    overflow: hidden;
}

.stats-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.stats-badge:hover::before {
    left: 100%;
}

.stats-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a365d 0%, #2c5aa0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-subtitle {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    margin-bottom: 50px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.25);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Homepage stats section uses light theme - don't apply gradients */
.modern-stats-section .stat-card {
    background: white;
    color: inherit;
}

.modern-stats-section .stat-card::before,
.modern-stats-section .stat-card::after {
    display: none;
}

.modern-stats-section .coaches-card::before,
.modern-stats-section .teams-card::before,
.modern-stats-section .coaches-card::after,
.modern-stats-section .teams-card::after {
    display: none;
}

/* Color variations for different stat cards */
.stat-card.stat-format {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.25);
}

.stat-card.stat-duration {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.25);
}

.stat-card.stat-teams {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 10px 30px rgba(79, 172, 254, 0.25);
}

.stat-card.stat-fee {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 10px 30px rgba(67, 233, 123, 0.25);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: inherit;
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card.stat-format:hover {
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

.stat-card.stat-duration:hover {
    box-shadow: 0 20px 50px rgba(245, 87, 108, 0.4);
}

.stat-card.stat-teams:hover {
    box-shadow: 0 20px 50px rgba(79, 172, 254, 0.4);
}

.stat-card.stat-fee:hover {
    box-shadow: 0 20px 50px rgba(67, 233, 123, 0.4);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Fix hover text colors for readability */
.stat-card:hover .stat-number {
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-card:hover .stat-label {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.stat-card:hover .stat-description {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

.stat-card:hover .stat-icon {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Homepage stats section - keep dark text on white background */
.modern-stats-section .stat-card:hover .stat-number,
.modern-stats-section .stat-card .stat-number {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    text-shadow: none !important;
}

.modern-stats-section .stat-card:hover .stat-label,
.modern-stats-section .stat-card .stat-label {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

.modern-stats-section .stat-card:hover .stat-description,
.modern-stats-section .stat-card .stat-description {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

.modern-stats-section .stat-card:hover .stat-icon,
.modern-stats-section .stat-card .stat-icon {
    color: white !important;
    background: inherit !important;
    border: none !important;
}

.coaches-card .stat-icon {
    background: linear-gradient(135deg, #2c5aa0, #1e3c72);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

.teams-card .stat-icon {
    background: linear-gradient(135deg, #1e3c72, #2c5aa0);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.3);
}

.stat-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white !important;
    font-size: 32px;
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: white !important;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-text-fill-color: white !important;
}

.stat-number::after {
    content: attr(data-target);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2c5aa0, #1e3c72);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(8px);
    opacity: 0.6;
    z-index: -1;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: white !important;
    margin-bottom: 10px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    -webkit-text-fill-color: white !important;
}

.stat-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    max-width: 250px;
}

.stat-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1), rgba(30, 60, 114, 0.1));
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-decoration {
    transform: scale(1.2) translate(-5px, -5px);
    opacity: 1;
}

/* Additional decorative elements */
.coaches-card::before {
    background: linear-gradient(90deg, #2c5aa0, #1e3c72, #2c5aa0);
}

.teams-card::before {
    background: linear-gradient(90deg, #1e3c72, #2c5aa0, #1e3c72);
}

.stat-card .sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #2c5aa0;
    border-radius: 50%;
    opacity: 0;
    animation: sparkle 2s infinite;
}

.stat-card .sparkle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.stat-card .sparkle:nth-child(2) {
    top: 70%;
    left: 80%;
    animation-delay: 0.7s;
}

.stat-card .sparkle:nth-child(3) {
    top: 30%;
    right: 20%;
    animation-delay: 1.4s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.stats-cta {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    z-index: 2;
}

.stats-cta p {
    font-size: 20px;
    color: #1a365d;
    margin-bottom: 25px;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-block;
    min-width: 160px;
    text-align: center;
}

.btn-modern.primary {
    background: linear-gradient(135deg, #2c5aa0, #1e3c72);
    color: white;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3);
}

.btn-modern.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.4);
    color: white;
    text-decoration: none;
}

.btn-modern.secondary {
    background: white;
    color: #2c5aa0;
    border-color: #2c5aa0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn-modern.secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 90, 160, 0.3);
    text-decoration: none;
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number.animated {
    animation: countUp 0.6s ease-out;
}

/* Floating background orbs */
.modern-stats-section .floating-orb {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.1), rgba(30, 60, 114, 0.1));
    animation: float-orb 6s ease-in-out infinite;
    z-index: 1;
}

.modern-stats-section .floating-orb:nth-child(1) {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.modern-stats-section .floating-orb:nth-child(2) {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.modern-stats-section .floating-orb:nth-child(3) {
    width: 40px;
    height: 40px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-stats-section {
        padding: 60px 0;
    }

    .stats-title {
        font-size: 32px;
    }

    .stats-subtitle {
        font-size: 16px;
    }

    .stat-card {
        padding: 30px 20px;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-modern {
        width: 100%;
        max-width: 280px;
    }

    .stats-cta {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .stats-title {
        font-size: 28px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 16px;
    }
}
