/* General Setup */
* { box-sizing: border-box; margin: 0; padding: 0; }
body, html { 
    background-color: #f4f7f6; 
    font-family: 'Segoe UI', sans-serif; 
    width: 100%;
}

#main-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* Full Width Header */
.app-header { 
    background: rgba(3, 35, 47, 2); 
    padding: 40px 20px; 
    color: white; 
    text-align: center;
    width: 100%; 
}

.header-content h1 { 
    font-size: 1.8rem; 
    margin-bottom: 15px; 
    letter-spacing: 1px; 
}

#matchSearch {
    width: 100%; 
    max-width: 600px; /* Search bar stays centered and reasonable */
    padding: 15px 25px; 
    border-radius: 30px;
    border: none; 
    outline: none; 
    font-size: 16px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Full Width Column Container */
#fixtures-container { 
    margin: 0; 
    padding: 20px; 
    width: 100%; /* Column takes full screen width */
}

#fixtures-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Match Card Design - Stretches to Full Width */
.match-card {
    width: 100%;
    border-radius: 12px; 
    padding: 20px; 
    position: relative;
    display: flex; 
    flex-direction: column; 
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.match-card:hover { transform: scale(1.005); }

/* Theme Colors */
.card-psl { background: #1b5e20; color: white; }
.card-ipl { background: #e65100; color: white; }
.card-intl { background: #0d47a1; color: white; }
.card-worldcup { background: #0d47a1; color: white; }
.card-default { background: #37474f; color: white; }

.tag { 
    font-size: 10px; 
    font-weight: 900; 
    background: rgba(255,255,255,0.2); 
    padding: 5px 12px; 
    border-radius: 4px; 
    display: inline-block; 
    margin-bottom: 15px; 
    text-transform: uppercase;
}

/* Team Row Layout */
.team-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-around; 
    margin: 20px 0; 
}

.team-box { text-align: center; width: 45%; }

.team-logo { 
    width: 50px; 
    height: 50px; 
    background: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #0d1b3e; 
    font-weight: 900; 
    margin: 0 auto 10px; 
    border: 3px solid rgba(255,255,255,0.5); 
}

.team-name { 
    font-size: 1.1rem; 
    font-weight: 800; 
}

/* Footer Section */
.match-info-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 15px; 
}

.time-box { text-align: right; line-height: 1.3; }
.pkt { font-size: 13px; font-weight: 800; }
.gmt { font-size: 10px; opacity: 0.7; font-weight: bold; }

.details-btn { 
    background: white; 
    color: #0d1b3e; 
    border: none; 
    padding: 8px 25px; 
    border-radius: 20px; 
    font-size: 11px; 
    font-weight: 800; 
    cursor: pointer; 
}

/* Loading State */
.loading-state { text-align: center; padding: 100px 0; }
.spinner { 
    border: 4px solid #f3f3f3; 
    border-top: 4px solid #0d1b3e; 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    animation: spin 1s linear infinite; 
    margin: 0 auto 15px; 
}

@keyframes spin { 100% { transform: rotate(360deg); } }