/* style.css - Optimized for wider desktop view */
:root {
    --primary: #3498db;
    --secondary: #2c3e50;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #1abc9c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1400px; /* Increased from 1200px */
    margin: 0 auto;
    padding: 15px;
    flex: 1;
    width: 95%;
}

/* Header styles */
.site-header {
    background-color: var(--secondary);
    color: white;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.site-nav ul {
    display: flex;
    list-style: none;
}

.site-nav li {
    margin-left: 25px;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

.site-nav a:hover {
    color: var(--primary);
}

/* Main content header */
.content-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    background-color: var(--secondary);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 1.8rem;
}

h2 {
    font-size: 1.4rem;
    margin: 15px 0 10px;
}

/* Footer styles */
.site-footer {
    background-color: var(--secondary);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 30px;
}

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

.site-footer p {
    margin: 0;
    font-size: 1rem;
}

/* Main content layout */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Match cards grid - Optimized for wider screens */
.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.match-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.match-header {
    background-color: var(--secondary);
    color: white;
    padding: 12px 15px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-body {
    padding: 15px;
}

.teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 38%;
}

.team-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 8px;
}

.team-name {
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    word-break: break-word;
    width: 100%;
}

.match-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 24%;
}

.score {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark);
}

.match-details {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.match-date {
    display: flex;
    align-items: center;
}

.match-channel {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-weight: 500;
}

.match-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-live {
    background-color: var(--danger);
    color: white;
}

.status-finished {
    background-color: var(--success);
    color: white;
}

.status-scheduled {
    background-color: var(--warning);
    color: white;
}

.no-matches {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tabs styling */
.tabs-container {
    margin-bottom: 25px;
}

.tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border: none;
    outline: none;
    transition: 0.3s;
    font-weight: 600;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    font-size: 1rem;
    min-width: 150px;
    text-align: center;
}

.tab:hover {
    background-color: #ddd;
}

.tab.active {
    background-color: var(--primary);
    color: white;
}

.sub-tabs {
    display: flex;
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
}

.sub-tab {
    padding: 8px 16px;
    cursor: pointer;
    background-color: #e0e0e0;
    border: none;
    outline: none;
    transition: 0.3s;
    font-weight: 500;
    border-radius: 15px;
    margin-right: 8px;
    font-size: 0.9rem;
}

.sub-tab:hover {
    background-color: #d0d0d0;
}

.sub-tab.active {
    background-color: var(--info);
    color: white;
}

.tab-content {
    display: none;
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

.tab-content.active {
    display: block;
}

/* Two-column layout for desktop */
@media (min-width: 992px) {
    .tab-content.active {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 25px;
    }
    
    .sub-tab-content {
        grid-column: span 2;
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Tablet view */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .matches-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .team-logo {
        width: 45px;
        height: 45px;
    }
    
    .score {
        font-size: 1.2rem;
    }
}

/* Mobile view */
@media (max-width: 767px) {
    .container {
        padding: 10px;
        width: 100%;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .site-nav ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .site-nav li {
        margin: 5px 10px;
    }
    
    .content-header {
        padding: 15px 0;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .matches-grid {
        grid-template-columns: 1fr;
    }
    
    .team-logo {
        width: 40px;
        height: 40px;
    }
    
    .team-name {
        font-size: 0.85rem;
    }
    
    .score {
        font-size: 1.1rem;
    }
    
    .match-details {
        font-size: 0.8rem;
    }
    
    .tab {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-width: 120px;
    }
    
    .sub-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.footer-link {
    color: inherit;          /* Keeps the text color same as surrounding text */
    text-decoration: none;   /* Removes underline */
    font-weight: bold;       /* Ensures it stays bold */
}

.footer-link:hover {
    text-decoration: underline; /* Optional: adds underline on hover */
}
