/* Animations for narrowcasting display */
@keyframes slideInFromLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes countUp {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Main layout - responsive split between header and footer */
.main-layout {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1800px;
    margin: 2rem auto;
}

/* Left column - Blue tile */
.left-column {
    display: flex;
    align-items: center;
    justify-content: center;
}

.goals-hero {
    background: #382510;
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    /* Size = 2 tiles + margin: 375 + 2rem + 375 = 782px */
    width: 850px;
    /* Height = 2 rows of tiles + topscorer: 250 + 2rem + 250 + 2rem + 250 = 782px */
    height: 750px;
    animation: slideInFromLeft 1s ease-out;
}

.goals-number {
    font-size: 20rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: countUp 1.5s ease-out 0.5s both;
}

.goals-label {
    font-size: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Right column - 3 rows structure */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

/* Row 1 & 2: 2x2 grid of white tiles */
.stats-grid {
    display: grid;
    grid-template-columns: 375px 375px;
    grid-template-rows: 250px 250px;
    gap: 2rem;
}

.stat-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    width: 375px;
    height: 250px;
    box-sizing: border-box;
    font-family: sans-serif;
    animation: slideInFromRight 1s ease-out;
}

.stat-card:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.6s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.8s;
}

.stat-value {
    font-size: 4rem;
    font-weight: bold;
    color: #382510;
    margin-bottom: 1rem;
    line-height: 1;
    font-family: sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 300;
    font-family: sans-serif;
}

/* Row 3: Topscorer card */
.topscorer-row {
    display: flex;
    justify-content: center;
}

.topscorer-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    /* Width = 2 tiles + margin: 375 + 2rem + 375 = 782px */
    width: 815px;
    height: 250px;
    box-sizing: border-box;
    font-family: sans-serif;
    animation: fadeInUp 1.2s ease-out 1s both;
}

.topscorer-card .stat-value {
    font-size: 1.8rem;
    color: #382510;
    margin-bottom: 0.5rem;
    font-family: sans-serif;
}

.topscorer-card .stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    font-family: sans-serif;
}

.score-badge {
    color: white;
    background-color: #382510;
    border: 1px solid #382510;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: bold;
    display: inline-block;
    margin-left: 8px;
}

/* Responsive scaling */
@media (max-width: 1400px) {
    .main-layout {
        transform: scale(0.8);
        transform-origin: center;
    }
}

@media (max-width: 1200px) {
    .main-layout {
        transform: scale(0.7);
        transform-origin: center;
    }
}

@media (max-width: 1000px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        transform: scale(0.6);
    }
}