/* ===============================
   Reset & Global
=============================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

html{
    scroll-behavior:smooth;
}

body{
    background:#f5f5f5;
    color:#111;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
}

img{
    display:block;
    max-width:100%;
    height:auto;
}

/* ===============================
   Navigation
=============================== */

nav{
    background:#111;
    color:white;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 50px;
}

.logo{
    font-size:32px;
    font-weight:700;
}

nav ul{
    display:flex;
    list-style:none;
    gap:35px;
}

nav ul li a{
    color:white;
    text-decoration:none;
    font-size:18px;
    transition:color .3s ease;
}

nav ul li a:hover{
    color:#d9d9d9;
}

nav ul li a:focus{
    outline:3px solid #0078ff;
    outline-offset:3px;
}

/* ===============================
   Header
=============================== */

header{
    text-align:center;
    padding:50px 20px;
}

header h1{
    font-size:56px;
    margin-bottom:15px;
}

header p{
    font-size:22px;
    color:#555;
}

.live-status{
    display:inline-block;
    margin-top:25px;
    background:#111;
    color:white;
    padding:14px 30px;
    border-radius:40px;
    font-weight:600;
}

/* ===============================
   Main Layout
=============================== */

.main-container{
    width:92%;
    margin:auto;
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:35px;
    margin-bottom:50px;
}

/* ===============================
   Match Cards
=============================== */

.schedule-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
    gap:30px;
}

.match-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    transition:transform .35s ease, box-shadow .35s ease;
    will-change:transform;
}

.match-card:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.match-card img{
    width:100%;
    height:220px;
    object-fit:cover;
}

.match-card h2{
    padding:20px 20px 10px;
    font-size:28px;
}

.match-card p{
    padding:0 20px;
    margin:10px 0;
    color:#444;
    font-size:17px;
}

/* ===============================
   Button Group
=============================== */

.button-group{
    display:flex;
    gap:10px;
    padding:20px;
}

.button-group button{
    flex:1;
}

button{
    padding:13px;
    border:none;
    border-radius:12px;
    background:#111;
    color:white;
    cursor:pointer;
    font-size:16px;
    transition:
        background-color .3s ease,
        transform .3s ease;
}

button:hover{
    background:#333;
    transform:scale(1.03);
}

button:focus{
    outline:3px solid #0078ff;
    outline-offset:3px;
}

/* ===============================
   Match Information Box
=============================== */

#matchBox{
    background:white;
    border-radius:20px;
    padding:30px;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    text-align:center;
    min-height:700px;
    position:sticky;
    top:90px;
}

#matchBox h2{
    font-size:36px;
    margin-bottom:20px;
}

#matchBox p{
    font-size:20px;
    line-height:1.8;
    color:#444;
}

.info-image{
    width:100%;
    height:230px;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:20px;
}

#matchBox button{
    width:100%;
    margin-top:25px;
}

/* ===============================
   Footer
=============================== */

footer{
    background:#111;
    color:white;
    text-align:center;
    padding:25px;
    font-size:18px;
}

/* ===============================
   Responsive
=============================== */

@media(max-width:1100px){

    .main-container{
        grid-template-columns:1fr;
    }

    #matchBox{
        position:static;
        min-height:auto;
    }

}

@media(max-width:900px){

    nav{
        flex-direction:column;
        gap:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
    }

    header h1{
        font-size:42px;
    }

    .schedule-container{
        grid-template-columns:1fr;
    }

    .button-group{
        flex-direction:column;
    }

}

@media (prefers-reduced-motion: reduce){

    *{
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }

}