/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.league-selector {
    display: flex;
    gap: 10px;
}

.league-tag {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.league-tag.active {
    background: rgba(255,255,255,0.9);
    color: #1e3a8a;
}

.league-tag:hover {
    background: rgba(255,255,255,0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.download-app {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.app-links {
    display: flex;
    gap: 15px;
}

.app-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.app-link:hover {
    color: white;
}

/* Main Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fbbf24;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fbbf24;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content */
.main-content {
    padding: 40px 0;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.hero-content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-content p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 25px;
}

.hero-image img {
    width: 100%;
    border-radius: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* Partners Section */
.partners {
    margin-bottom: 50px;
}

.partner-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.partner-label {
    background: #e5e7eb;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

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

.news-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
}

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

.news-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.news-card.featured {
    border-left: 4px solid #ef4444;
}

.news-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.news-date {
    font-size: 14px;
    color: #6b7280;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

/* Must Watch Section */
.must-watch {
    margin-bottom: 60px;
}

.must-watch h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.video-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(239, 68, 68, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(239, 68, 68, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
}

.video-category {
    background: #ef4444;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
}

.video-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.video-date {
    font-size: 14px;
    color: #6b7280;
}

/* Table Section */
.table-section {
    margin-bottom: 60px;
}

.table-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.league-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-button {
    background: #e5e7eb;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: #1e3a8a;
    color: white;
}

.tab-button:hover {
    background: #d1d5db;
}

.tab-button.active:hover {
    background: #1e40af;
}

.table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.standings-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.standings-table tr:hover {
    background: #f9fafb;
}

.team-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

.team-link:hover {
    text-decoration: underline;
}

.champion {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.champion .team-link {
    color: white;
}

.silver {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8860b 100%);
    color: white;
}

.bronze .team-link {
    color: white;
}

.relegation {
    background: #fef2f2;
    color: #dc2626;
}

.relegation .team-link {
    color: #dc2626;
}

.relegated {
    background: #fee2e2;
    color: #991b1b;
}

.relegated .team-link {
    color: #991b1b;
}

/* Riders Section */
.riders-section {
    margin-bottom: 60px;
}

.riders-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.riders-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.riders-table {
    width: 100%;
    border-collapse: collapse;
}

.riders-table th {
    background: #f8fafc;
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 14px;
}

.riders-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.riders-table tr:hover {
    background: #f9fafb;
}

.top-rider {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.top-rider .rider-link,
.top-rider .team-link {
    color: white;
}

.rider-link {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 500;
}

.rider-link:hover {
    text-decoration: underline;
}

/* Juniors Section */
.juniors-section {
    margin-bottom: 60px;
}

.juniors-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 16px;
}

.juniors-table-container,
.junior-match-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.juniors-table,
.junior-match-table {
    width: 100%;
    border-collapse: collapse;
}

.juniors-table th,
.junior-match-table th {
    background: #f8fafc;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.juniors-table td,
.junior-match-table td {
    padding: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.juniors-table tr:hover,
.junior-match-table tr:hover {
    background: #f9fafb;
}

/* Additional News */
.additional-news {
    margin-bottom: 60px;
}

.additional-news h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.news-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.news-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    align-items: center;
    gap: 20px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: #f9fafb;
}

.news-item .news-date {
    color: #6b7280;
    font-size: 14px;
    min-width: 120px;
}

.news-item h3 {
    font-size: 16px;
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

/* Events Calendar */
.events-section {
    margin-bottom: 60px;
}

.events-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
}

.calendar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-nav {
    background: #e5e7eb;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.calendar-nav:hover {
    background: #d1d5db;
}

.calendar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.calendar-day:hover {
    background: #f3f4f6;
}

.calendar-day.yesterday {
    background: #f3f4f6;
    color: #6b7280;
}

.calendar-day.today {
    background: #1e3a8a;
    color: white;
}

.calendar-day.tomorrow {
    background: #3b82f6;
    color: white;
}

/* App Section */
.app-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 60px;
}

.app-section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-section p {
    font-size: 18px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.app-section .btn {
    background: white;
    color: #1e3a8a;
    margin-top: 20px;
}

.app-section .btn:hover {
    background: #f8fafc;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fbbf24;
}

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

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.newsletter-section {
    border-top: 1px solid #374151;
    padding-top: 30px;
    margin-bottom: 30px;
}

.newsletter-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fbbf24;
}

.newsletter-section p {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #9ca3af;
    font-size: 14px;
}

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

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.social-media span {
    color: #d1d5db;
    font-size: 14px;
}

.download-app-footer a {
    color: #fbbf24;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.download-app-footer a:hover {
    color: #f59e0b;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-selector span {
    color: #d1d5db;
    font-size: 14px;
}

.language-selector a {
    color: #fbbf24;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.language-selector a.active {
    background: #fbbf24;
    color: #1f2937;
}

.language-selector a:hover {
    background: #f59e0b;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .riders-table-container,
    .table-container {
        overflow-x: auto;
    }
    
    .riders-table,
    .standings-table {
        min-width: 600px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 20px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partner-group {
        justify-content: center;
    }
    
    .league-tabs {
        flex-wrap: wrap;
    }
}
