/* =========================================================
   ZENITH KARATE ACADEMY
   HOMEPAGE STATS SECTION
   Visual-only enhancement layer
========================================================= */

.stats {
    position: relative;
    min-height: 82vh;
    padding: clamp(5rem, 11vw, 8.5rem) clamp(1.5rem, 7vw, 6.875rem);
    background:
        radial-gradient(circle at 50% 0%, rgba(230,15,50,0.09), transparent 28rem),
        radial-gradient(circle at 10% 85%, rgba(253,178,3,0.05), transparent 24rem),
        linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
    overflow: hidden;
    isolation: isolate;
}

.stats::before {
    content: "LEGACY";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255,255,255,0.018);
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(11rem, 25vw, 22rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 0.8;
    white-space: nowrap;
    pointer-events: none;
    z-index: -1;
}

.stats .information {
    position: relative;
    width: min(100%, 80rem);
    align-items: flex-start;
    padding: 0;
    margin: 0 auto;
    text-align: left;
}

.stats .information .titleText {
    width: fit-content;
    margin-bottom: 0.65rem;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 0.92;
}

.stats .information .titleText::after {
    content: "";
    display: block;
    width: clamp(4rem, 9vw, 7rem);
    height: 3px;
    margin-top: 0.85rem;
    background: linear-gradient(90deg, #e60f32, #fdb203, transparent);
}

.stats .information .secondaryInfoText {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.24em;
}

.stats .cards {
    position: relative;
    width: min(100%, 80rem);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 4rem auto 0;
    padding: 0;
}

.stats .cards > div {
    position: relative;
    min-width: 0;
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.09);
    transition: transform 240ms ease, background 240ms ease;
}

.stats .cards > div:last-child {
    border-right: 0;
}

.stats .cards > div::before {
    content: "";
    position: absolute;
    top: 1.3rem;
    left: 1.35rem;
    width: 2.75rem;
    height: 2px;
    background: linear-gradient(90deg, #e60f32, transparent);
    opacity: 0.7;
}

.stats .cards > div::after {
    content: "";
    position: absolute;
    inset: 0.75rem;
    border: 1px solid transparent;
    transition: border-color 240ms ease, background 240ms ease;
    pointer-events: none;
}

.stats .cards > div:hover {
    transform: translateY(-0.45rem);
    background: rgba(255,255,255,0.018);
}

.stats .cards > div:hover::after {
    border-color: rgba(253,178,3,0.16);
    background: linear-gradient(180deg, rgba(230,15,50,0.025), transparent);
}

.stats .cards svg {
    position: relative;
    z-index: 1;
    width: clamp(3rem, 5vw, 4.5rem);
    height: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1.25rem;
    opacity: 0.9;
    filter: drop-shadow(0 0 1rem rgba(253,178,3,0.12));
}

.stats .cards .title {
    position: relative;
    z-index: 1;
    min-height: auto;
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #ee4060, #fa073c 55%, #a50527);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stats .cards p {
    position: relative;
    z-index: 1;
    width: auto;
    margin: 0.85rem 0 0;
    padding: 0;
    color: rgba(255,255,255,0.72);
    font-size: clamp(0.72rem, 1vw, 0.9rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1.4;
}

.stats .cards .active-students::before,
.stats .cards .tournaments::before {
    background: linear-gradient(90deg, #e60f32, transparent);
}

.stats .cards .experience::before,
.stats .cards .awards::before {
    background: linear-gradient(90deg, #fdb203, transparent);
}

@media (max-width: 900px) {
    .stats .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats .cards > div:nth-child(2) {
        border-right: 0;
    }

    .stats .cards > div:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255,255,255,0.09);
    }
}

@media (max-width: 600px) {
    .stats {
        min-height: auto;
        padding: 5rem 1.25rem 5.5rem;
    }

    .stats::before {
        top: 6rem;
        font-size: 7rem;
    }

    .stats .cards {
        grid-template-columns: 1fr;
        margin-top: 2.75rem;
    }

    .stats .cards > div,
    .stats .cards > div:nth-child(2),
    .stats .cards > div:nth-child(-n + 2) {
        min-height: 14rem;
        padding: 2rem 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,0.09);
    }

    .stats .cards > div:last-child {
        border-bottom: 0;
    }

    .stats .cards svg {
        margin-bottom: 1rem;
    }

    .stats .cards .title {
        font-size: 4.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats .cards > div,
    .stats .cards > div::after {
        transition: none;
    }
}
