:root {
    --bg-main: #0a0f1d;
    --bg-card: #151c2f;
    --bg-table-header: #1e293b;
    --bg-table-row: #161e31;
    --bg-table-row-alt: #1a233a;
    --bg-hover: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #15803d; /* Dark Green */
    --accent-hover: #166534;
    --border: #334155;
    --success: #22c55e;
    --live: #ef4444;
    
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

a:hover {
    color: var(--text-main);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(10, 15, 29, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text i {
    color: var(--accent);
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--text-main);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px 3px 0 0;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    padding-bottom: 60px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 2.5rem;
    font-family: 'Mont', 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #22c55e;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

/* Date Filter */
.date-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.date-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-main);
}

.date-btn.active {
    background: linear-gradient(135deg, var(--accent), #22c55e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(21, 128, 61, 0.4);
}

/* Schedule Section */
.schedule-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.league-block {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    animation: fadeInUp 0.5s ease backwards;
}

.league-block:nth-child(1) { animation-delay: 0.1s; }
.league-block:nth-child(2) { animation-delay: 0.2s; }
.league-block:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.league-header {
    background-color: var(--bg-table-header);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

.flag-icon {
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.league-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.table-responsive {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.schedule-table th {
    padding: 12px 15px;
    background-color: var(--bg-table-row);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
}

.schedule-table td {
    padding: 15px;
    color: var(--text-main);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.schedule-table tbody tr {
    transition: var(--transition);
    background-color: var(--bg-table-row);
}

.schedule-table tbody tr:nth-child(even) {
    background-color: var(--bg-table-row-alt);
}

.schedule-table tbody tr:hover {
    background-color: var(--bg-hover);
    transform: scale(1.01);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
    position: relative;
    border-radius: 8px;
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.date {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.time {
    display: block;
    font-weight: 700;
}

.team-home {
    text-align: right;
    font-weight: 600;
    width: 30%;
}

.team-away {
    text-align: left;
    font-weight: 600;
    width: 30%;
}

.score {
    font-weight: 700;
    background-color: rgba(255,255,255,0.05);
    border-radius: 6px;
    padding: 5px 0;
    width: 10%;
    white-space: nowrap;
}

.live-blink {
    color: var(--live);
    animation: blink 2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.td-action {
    width: 20%;
}

.btn-live {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--bg-table-header);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-main);
    transition: var(--transition);
}

.btn-live i {
    margin-right: 5px;
    color: var(--accent);
}

.btn-live:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-live:hover i {
    color: #fff;
}

.btn-live.is-live {
    background-color: var(--live);
    border-color: var(--live);
    color: #fff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.btn-live.is-live i {
    color: #fff;
}

.status-ft {
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
    background: rgba(34, 197, 94, 0.1);
    padding: 5px 12px;
    border-radius: 12px;
}

/* SEO Section */
.seo-section {
    margin-bottom: 50px;
}

.seo-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mt-4 {
    margin-top: 25px;
}

.seo-card h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.seo-content p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

.seo-content strong {
    color: var(--text-main);
    font-weight: 600;
}

/* News Section */
.news-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.news-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-main);
}

.news-excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.read-more:hover {
    color: var(--accent-hover);
}

.read-more:hover i {
    transform: translateX(5px);
}

.read-more i {
    transition: var(--transition);
}

/* Footer */
.footer {
    background-color: #050812;
    border-top: 1px solid var(--border);
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--accent);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 400px;
}

.footer-links h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .nav-links {
        display: none; /* simple mobile state */
    }
    
    .schedule-table th, .schedule-table td {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
    
    .team-home, .team-away {
        font-size: 0.85rem;
    }
    
    .btn-live {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Simple Table Format (Goal.com clone) */
.simple-league-block {
    margin-bottom: 40px;
    animation: fadeInUp 0.5s ease backwards;
}

.simple-date-title {
    font-size: 1.3rem;
    font-family: 'Mont', 'Montserrat', sans-serif;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.simple-schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
    border: none;
    background: transparent;
}

.simple-schedule-table th {
    padding: 12px 15px;
    background-color: #000;
    color: #fff;
    font-weight: 700;
    border: none;
    border-bottom: 3px solid #000;
}

.simple-schedule-table td {
    padding: 12px 15px;
    color: #f1f5f9;
    border: none;
    vertical-align: middle;
}

.simple-schedule-table tbody tr {
    transition: background-color 0.2s;
    background-color: #252525;
}

.simple-schedule-table tbody tr:nth-child(even) {
    background-color: #333333;
}

.simple-schedule-table tbody tr:hover {
    background-color: #404040;
}
