/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

/* CSS Variables */
:root {
    --dynamo-red: #B90A0A;
    --soft-coral: #E07A5F;
    --golden-yellow: #E8B04B;
    --dark-yellow: #C69436;
    --dark-green: #648F5F;
    --light-green: #84B281;
    --dusty-blue: #7B96B7;
    --dark-blue: #3D5A80;
    --dark-gray: #333;
    --medium-gray: #666;
    --line-gray: #999;
    --light-gray: #ccc;
    --silver-mist: #e8e8e8;
    --off-white: #FAF9F5;
    --nested-box: #EFF2F7;
    --shadow-small: 0 8px 20px rgba(0, 0, 0, 0.10);
    --shadow-medium: 0 8px 20px rgba(0, 0, 0, 0.20);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.35);
    --animation-delay: 0;
}

/* Base Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--off-white);
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Page Hero */
.page-hero {
    padding: 1.5rem 1rem;
    text-align: center;
    background: transparent;
    color: var(--dynamo-red);
    margin-top: 20px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--dark-gray);
    font-family: 'Poppins', sans-serif;
    position: relative;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-hero h1::before,
.page-hero h1::after {
    content: '|';
    margin: 8px;
    display: inline-block;
    position: relative;
    top: 1px;
    height: 100%;
    font-size: 1.2em;
    color: var(--dynamo-red);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: center center;
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s, color 0.3s ease;
}

.page-hero h1:hover::before {
    transform: scaleY(1) translateX(-8px);
}

.page-hero h1:hover::after {
    transform: scaleY(1) translateX(8px);
}

.page-hero h1.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.page-hero h1.animate-in::before,
.page-hero h1.animate-in::after {
    opacity: 1;
    transform: scaleY(1);
}

/* Section Titles */
.section-title,
.section-subtitle {
    text-align: center;
    font-weight: 800;
    color: var(--dark-gray);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    font-family: 'Poppins', sans-serif;
}

.section-title {
    font-size: 2.5rem;
    margin: 1.5rem 0 2rem;
}

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

.section-title::after,
.section-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: left center;
    background: var(--dynamo-red);
    border-radius: 2px;
    transition: transform 0.6s ease-out 0.3s;
}

.section-title::after {
    bottom: -8px;
    width: 60px;
    height: 4px;
}

.section-subtitle::after {
    bottom: -6px;
    width: 40px;
    height: 3px;
}

.section-title.animate-in,
.section-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title.animate-in::after,
.section-subtitle.animate-in::after {
    transform: translateX(-50%) scaleX(1);
}

/* Countdown Section */
.countdown-section {
    padding: 1.5rem 0;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.2rem;
}

.countdown-block {
    text-align: center;
    flex-shrink: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 0;
    transform: translateY(50px);
}

.countdown-box {
    background: white;
    padding: 0.8rem;
    border-radius: 12px;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s, box-shadow 0.3s ease;
    width: 80px;
}

.countdown-box:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.countdown-box span {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--dynamo-red);
    font-family: 'Poppins', sans-serif;
}

.countdown-block small {
    display: block;
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.4rem;
    font-weight: 700;
}

.upcoming-match-name {
    text-align: center;
    margin: 1rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.upcoming-match-name h3 {
    font-size: 1.3rem;
    color: var(--dark-gray);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.upcoming-match-name.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Match Form Section */
.match-form-section {
    padding: 1.5rem 0;
}

.form-display {
    text-align: center;
}

.form-results {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.form-result {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-weight: 900;
    color: var(--off-white);
    font-size: 1.6rem;
    box-shadow: var(--shadow-medium);
    cursor: default;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.3s ease-out, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.form-result:last-child {
    border: 3px solid var(--off-white);
    width: calc(50px + 5px);
    height: calc(50px + 5px);
    margin: -2px;
}

.form-result.win {
    background: var(--light-green);
}

.form-result.draw {
    background: var(--golden-yellow);
}

.form-result.loss {
    background: var(--soft-coral);
}

.form-result.win:last-child {
    box-shadow: 0 0 0 3px var(--light-green);
}

.form-result.draw:last-child {
    box-shadow: 0 0 0 3px var(--golden-yellow);
}

.form-result.loss:last-child {
    box-shadow: 0 0 0 3px var(--soft-coral);
}

.form-result:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.form-result.win:last-child:hover {
    box-shadow: 0 0 0 3px var(--light-green), var(--shadow-hover);
}

.form-result.draw:last-child:hover {
    box-shadow: 0 0 0 3px var(--golden-yellow), var(--shadow-hover);
}

.form-result.loss:last-child:hover {
    box-shadow: 0 0 0 3px var(--soft-coral), var(--shadow-hover);
}

.form-result:last-child:hover {
    transform: translateY(-5px);
    border: 3px solid var(--off-white);
}

.form-description {
    display: block;
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.form-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Animations */
.overview-card,
.stat-card,
.contact-card,
.countdown-block,
.form-result,
.map-container,
.record-category,
.scorer-card,
.player-card,
.stat-category,
.match-card,
.timeline-item,
.modal-match-score,
.goalscorers-section,
.date-time-section,
.stadium-section,
.upcoming-match-name,
.form-description {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.3s ease-out, box-shadow 0.3s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.desktop-only {
    display: inline-block;
}

/* Tablet View */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .page-hero {
        padding: 1rem 0.5rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero h1::before,
    .page-hero h1::after {
        font-size: 1em;
        margin: 6px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title::after {
        width: 50px;
        height: 3px;
    }

    .section-subtitle {
        font-size: 1.4rem;
    }

    .section-subtitle::after {
        width: 35px;
    }

    .countdown {
        gap: 0.8rem;
        flex-wrap: wrap;
    }

    .countdown-box {
        width: 70px;
        padding: 0.7rem;
    }

    .countdown-box span {
        font-size: 1.3rem;
    }

    .countdown-block small {
        font-size: 0.7rem;
    }

    .form-results {
        gap: 0.6rem;
    }

    .form-result {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .form-result:last-child {
        width: calc(35px + 4px);
        height: calc(35px + 4px);
    }

    .form-description {
        font-size: 0.7rem;
    }
}

/* Mobile View */
@media (max-width: 480px) {
    .page-hero h1::before,
    .page-hero h1::after {
        top: 3px;
        font-size: 1em;
        margin: 6px;
    }

    .container {
        padding: 0 8px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .upcoming-match-name h3 {
        font-size: 1rem;
    }

    .countdown-box {
        width: 60px;
        padding: 0.6rem;
    }

    .countdown-box span {
        font-size: 1.1rem;
    }

    .form-result {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .form-result:last-child {
        width: calc(30px + 4px);
        height: calc(30px + 4px);
        border: 2px solid var(--off-white);
    }

    .form-result.win:last-child {
        box-shadow: 0 0 0 2px var(--light-green);
    }

    .form-result.draw:last-child {
        box-shadow: 0 0 0 2px var(--golden-yellow);
    }

    .form-result.loss:last-child {
        box-shadow: 0 0 0 2px var(--soft-coral);
    }
}