/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 0;
    border-bottom: 1px solid rgba(0, 102, 204, 0.1);
}

.navbar-nav {
    margin-left: auto;
}

.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 600;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 4px;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0066cc, #34d399);
    bottom: 8px;
    left: 50%;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(0, 102, 204, 0.08);
    color: #0066cc !important;
}

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

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white !important;
    border-radius: 6px;
}

.navbar-brand {
    color: #0066cc !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */
.main-container {
    margin: 40px auto;
    max-width: 1200px;
}

.main-container.wide {
    max-width: 1400px;
}

/* ============================================
   HEADERS & SECTIONS
   ============================================ */
.page-header {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(52, 211, 153, 0.08) 100%);
    padding: 35px;
    margin-bottom: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: left;
    border-left: 4px solid #0066cc;
}

.page-header h1 {
    margin: 0 0 15px 0;
    font-weight: 700;
    color: #0066cc;
    font-size: 2.8rem;
}

.page-header h1::before {
    content: "\f05a ";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 15px;
    color: #34d399;
}

.page-header h4 {
    margin: 0;
    font-weight: 600;
    color: #0066cc;
    font-size: 1.1rem;
}

.page-header h4::before {
    content: "\f138 ";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #34d399;
}

.page-header p {
    margin: 0;
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

/* ============================================
   CARDS & SECTIONS
   ============================================ */
.league-section {
    background: white;
    padding: 35px;
    margin-bottom: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.league-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-top-color: #34d399;
}

.table-container {
    background: white;
    padding: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.table-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.content-section {
    background: white;
    padding: 40px;
    margin-bottom: 35px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.content-section:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-left-color: #34d399;
}

.content-section h2 {
    color: #0066cc;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.9rem;
    display: flex;
    align-items: center;
}

.content-section h2::before {
    content: "\f054 ";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
    color: #34d399;
}

.content-section h3 {
    color: #333;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.content-section p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid #0066cc;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.15);
    border-left-color: #34d399;
}

.feature-card h4 {
    color: #0066cc;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

.contact-info {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 50px 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 102, 204, 0.4);
}

.contact-info h2 {
    color: white;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2rem;
}

.contact-info h2::before {
    content: "\f0e0 ";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 12px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    font-size: 1.05rem;
}

/* ============================================
   TITLES & HEADINGS
   ============================================ */
.league-title {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.5rem;
    text-align: center;
}

.league-title a {
    color: #0066cc !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    font-weight: 600;
    position: relative;
}

.league-title a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #0066cc, #34d399);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.league-title a:hover {
    background-color: rgba(0, 102, 204, 0.1);
    color: #0052a3 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.25);
}

.league-title a:hover::after {
    width: 100%;
}

.upcoming-matches-title {
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.15rem;
    text-align: center;
    color: #333;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 12px;
    position: relative;
}

.upcoming-matches-title::before {
    content: "\f133 ";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #0066cc;
}

/* ============================================
   TABLES
   ============================================ */
table th,
table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px;
    transition: all 0.2s ease;
}

table {
    margin: 0 auto;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
    transform: scale(1.01);
}

thead th {
    font-weight: 700;
    border-bottom: 2px solid #0066cc;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.08) 0%, rgba(52, 211, 153, 0.08) 100%);
    color: #0066cc;
}

.matches-table {
    width: 350px;
    table-layout: fixed;
    margin: 0 auto;
    font-size: 0.9rem;
}

.matches-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}

.matches-table td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
}

.match-row:hover {
    background-color: rgba(52, 211, 153, 0.08);
    border-left: 3px solid #34d399;
}

#oddsTable tbody tr {
    transition: all 0.2s ease;
}

#oddsTable tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.05);
    transform: scale(1.01);
}

#oddsTable td,
#oddsTable th {
    text-align: center;
    vertical-align: middle;
    padding: 12px;
}

.odds-cell {
    color: #000;
    font-weight: 500;
}

.team-name {
    font-weight: 400;
    color: #000;
}

.match-date {
    color: #000;
}

/* ============================================
   FORMS & CONTROLS
   ============================================ */
.navigation-controls {
    margin-bottom: 25px;
}

.navigation-controls label {
    font-weight: 600;
    color: #333;
}

.navigation-controls label::before {
    content: "\f039 ";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    color: #0066cc;
}

.back-button {
    margin-bottom: 15px;
}

select {
    width: 250px;
    padding: 8px 14px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

select:hover {
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

select:focus {
    border-color: #0066cc;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.2);
    outline: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.last-updated {
    text-align: center;
    margin-top: 30px;
    color: #6c757d;
    font-size: 0.875rem;
}

.last-updated::before {
    content: "\f017 ";
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 6px;
    color: #0066cc;
}

.league-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.league-table-container {
    flex: 1;
}

.league-matches-container {
    flex: 0 0 350px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1000px) {
    .league-content {
        flex-direction: column;
    }

    .league-matches-container {
        flex: 1;
    }

    .matches-table {
        width: 500px;
    }
}

@media (max-width: 768px) {
    .main-container,
    .main-container.wide {
        max-width: 100%;
        padding: 0 15px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 25px;
    }

    .league-section,
    .table-container,
    .content-section {
        padding: 25px;
    }
}
