header {
    background: var(--bg-gradient);
    color: white;
    padding: 1.25rem 1rem;
    text-align: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

header h1 {
    font-family: 'Afacad', sans-serif;
    font-weight: 900;
    font-size: 2.75rem;
    margin-bottom: 0.25rem;
    line-height: 1.1;
    text-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.2);
    transform: perspective(500px) rotateX(10deg);
    transition: transform 0.3s ease;
}

header h1:hover {
    transform: perspective(500px) rotateX(-10deg) scale(1.02);
}

.header-text {
    flex-grow: 1;
    text-align: center;
}

.subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 0.75rem;
}

.header-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 auto;
    font-size: 0.85em;
    opacity: 0.9;
}

.header-stat {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    white-space: nowrap;
}

.last-updated {
    margin-top: 1rem;
    font-size: 0.8em;
    opacity: 0.8;
}

@media (max-width: 768px) {
    header {
        padding: 2rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .header-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0;
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .header-stat {
        margin: 0;
        font-size: 0.9em;
    }
}
