/* TackleTV - Football News Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-green: #00C851;
    --primary-blue: #1E3A8A;
    --accent-red: #E53E3E;
    --accent-orange: #FF8C00;
    --white: #FFFFFF;
    --black: #000000;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    font-size: 16px;
}

/* Header moderno inspirado no GE/UOL */
header {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: #000;
    color: var(--white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

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

.top-external-sites {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.top-external-sites a {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.top-external-sites .leobet {
    background-color: #28a745;
    color: white;
}

.top-external-sites .leobnk {
    background-color: #fd7e14;
    color: white;
}

.top-external-sites .dischelp {
    background-color: #007bff;
    color: white;
}

.top-external-sites .tackletv {
    background-color: #6c757d;
    color: white;
}

.top-external-sites .spartasfc {
    background-color: #17a2b8;
    color: white;
}

.top-external-sites a:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.date-time {
    font-weight: 500;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 45px;
    width: auto;
    filter: brightness(1.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.external-sites {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.external-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.external-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.external-btn.leobet {
    background-color: #10B981;
    color: var(--white);
}

.external-btn.leobnk {
    background-color: #F59E0B;
    color: var(--white);
}

.external-btn.dischelp {
    background-color: #3B82F6;
    color: var(--white);
}

.external-btn.tackletv {
    background-color: var(--white);
    color: var(--gray-900);
}

.external-btn.spartasfc {
    background-color: #06B6D4;
    color: var(--white);
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero section moderna */
.hero {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.hero h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Breaking news banner */
.breaking-news {
    background: linear-gradient(90deg, var(--accent-red) 0%, #DC2626 100%);
    color: var(--white);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
}

.breaking-label {
    background-color: var(--white);
    color: var(--accent-red);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.breaking-text {
    font-weight: 600;
    flex: 1;
}

/* News grid moderna */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.main-news {
    display: grid;
    gap: 1.5rem;
}

.featured-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-category {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.card-excerpt {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.sidebar {
    display: grid;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.sidebar-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-green);
}

/* Buttons modernos */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-green) 0%, #34D399 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 200, 81, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #60A5FA 100%);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-500) 100%);
}

.btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Games section */
.games-section {
    margin-top: 3rem;
}

.section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    border-radius: 2px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.game-card h4 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.game-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Footer moderno */
footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.footer-text {
    color: var(--gray-400);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 1rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0.5rem;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .header-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .external-sites {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .breaking-news {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Sidebar styles */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: var(--gray-50);
    transition: background-color 0.3s ease;
}

.trending-item:hover {
    background-color: var(--gray-100);
}

.trending-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.trending-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.trending-meta {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.mini-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: var(--gray-50);
    border-radius: 6px;
    font-size: 0.875rem;
}

.table-row .pos {
    font-weight: 700;
    color: var(--primary-blue);
    min-width: 30px;
}

.table-row .team {
    flex: 1;
    font-weight: 600;
    color: var(--gray-900);
}

.table-row .pts {
    font-weight: 700;
    color: var(--primary-green);
    min-width: 30px;
    text-align: right;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

th {
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
}

td {
    color: var(--gray-700);
}

/* Next matches styles */
.next-matches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-item {
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.match-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.match-teams .vs {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 400;
}

.match-venue {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Card improvements */
.card-header {
    padding: 1.5rem;
}

.featured-card .btn {
    margin: 0 1.5rem 1.5rem 1.5rem;
}

tr:nth-child(even) {
    background-color: var(--gray-100);
}

/* Game features styling */
.game-features {
    text-align: left;
    margin: 1rem 0;
}

.game-features h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.game-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.game-features li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Tables styling */
.tables-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.table-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.championship-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
}

.championship-table th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #60A5FA 100%);
    color: var(--white);
    padding: 1rem 0.5rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.championship-table td {
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.team-name {
    text-align: left !important;
    font-weight: 600;
    padding-left: 1rem !important;
}

.points {
    font-weight: 700;
    color: var(--primary-green);
}

.libertadores {
    background-color: rgba(0, 200, 81, 0.1);
}

.pre-libertadores {
    background-color: rgba(59, 130, 246, 0.1);
}

.relegation {
    background-color: rgba(239, 68, 68, 0.1);
}

.qualified {
    background-color: rgba(0, 200, 81, 0.1);
}

.legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.legend-item {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.libertadores-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.group {
    background: var(--gray-50);
    border-radius: 8px;
    padding: 1.5rem;
}

.group h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.group-table th {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem;
    text-align: center;
    font-size: 0.75rem;
}

.group-table td {
    padding: 0.5rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-300);
}

/* Responsive design for tables */
@media (max-width: 768px) {
    .championship-table {
        font-size: 0.75rem;
    }
    
    .championship-table th,
    .championship-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .libertadores-groups {
        grid-template-columns: 1fr;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
    }
}

/* Simulator styling */
.simulator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.simulator-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.simulator-section {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.simulator-section h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.match-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, #F8FAFC 100%);
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.match-input:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}

.match-input input {
    width: 70px;
    height: 45px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.3s ease;
}

.match-input input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.1);
}

.team-name {
    font-weight: 600;
    min-width: 180px;
    font-size: 1.1rem;
    color: var(--gray-800);
}

.vs-separator {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

.match-input button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.match-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.round-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #60A5FA 100%);
    color: var(--white);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.phase-indicator {
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Forms */
input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 200, 81, 0.1);
}

/* Footer */
footer {
    background-color: var(--blue-primary);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    padding: 2rem;
}

.mobile-menu.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu nav ul li {
    margin: 1rem 0;
}

.mobile-menu nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    display: block;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-menu nav ul li a:hover,
.mobile-menu nav ul li a.active {
    background-color: var(--primary-blue);
}

.mobile-menu .top-external-sites {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

/* Desktop overflow fixes */
@media (min-width: 769px) {
    .groups-container {
        max-width: 100%;
        overflow-x: auto;
    }
    
    .group-card {
        min-width: 300px;
    }
    
    .container {
        max-width: 1200px;
        margin: 0 auto;
        overflow-x: hidden;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top-container {
        padding: 0 1rem;
        justify-content: space-between;
    }
    
    .top-external-sites {
        display: none;
    }
    
    .header-container {
        justify-content: flex-start;
        align-items: center;
        padding: 0 1rem;
        height: 60px;
        gap: 1rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .header-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: -1;
    }
    
    .news-grid, .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .featured-card {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .breaking-news {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .breaking-text {
        font-size: 0.9rem;
    }
    
    /* Simulator mobile fixes */
    .groups-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .group-card {
        padding: 0.75rem;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .group-table {
        font-size: 0.8rem;
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }
    
    .group-table th,
    .group-table td {
        padding: 0.4rem 0.2rem;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .group-table th:first-child,
    .group-table td:first-child {
        width: 15%;
    }
    
    .group-table th:nth-child(2),
    .group-table td:nth-child(2) {
        width: 45%;
        text-align: left;
    }
    
    .group-table th:nth-child(n+3),
    .group-table td:nth-child(n+3) {
        width: 10%;
    }
    
    .match-input {
        padding: 0.75rem;
        margin: 0.5rem 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .team-name {
        font-size: 0.8rem;
        text-align: center;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .match-input input {
        width: 40px;
        height: 30px;
        font-size: 0.8rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .vs-separator {
        font-size: 0.8rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .match-input button {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        flex-shrink: 0;
    }
    
    .knockout-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .knockout-match {
        padding: 1rem;
    }
    
    /* Table responsive */
    table {
        width: 100%;
        overflow-x: auto;
        display: table;
        border-collapse: collapse;
    }
    
    table thead,
    table tbody,
    table th,
    table td,
    table tr {
        display: table-row;
        width: auto;
    }
    
    table th,
    table td {
        display: table-cell;
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        white-space: nowrap;
        min-width: 50px;
    }
    
    /* Container wrapper for tables */
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .top-external-sites a {
        padding: 0.15rem 0.4rem;
        font-size: 0.65rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .breaking-text {
        font-size: 0.8rem;
    }
    
    .group-table,
    table {
        font-size: 0.75rem;
    }
    
    .match-input input {
        width: 50px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .team-name {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-green { color: var(--green-primary); }
.text-blue { color: var(--blue-primary); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
