/* Seasons / League Header Stylesheet */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Rubik:wght@700&display=swap');

/* Main Container */
.season-header-container {
    width: 65%;
    margin: 0 auto;
    /* Gradient Background (White to Green) */
    background: linear-gradient(to bottom, #ffffff, #46B57A);
    border: 1px solid black;
    color: #1a1a1a;
    /* Dark text */
    border-radius: 8px;
    overflow: hidden;
    /* No box-shadow as requested */
    font-family: 'Montserrat', sans-serif;
}

/* Main Title (England 2018-19) */
.season-title {
    font-family: 'Rubik', sans-serif;
    min-width: 700px;
    font-size: 35px;
    font-weight: 700;
    text-align: center;
    display: block;
    width: 100%;
    padding: 15px 0 10px 0;
    margin: 0;
    letter-spacing: normal;
    /* Reduced spacing */
    color: #1a1a1a;
    text-shadow: none;
}

/* Navigation Bar */
.season-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Center Text in Nav */
.season-nav-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: normal;
    /* Reduced spacing */
    color: #333;
}

/* Links (Previous / Next) */
.season-nav .nav-link,
.season-nav .nav-link:link,
.season-nav .nav-link:visited {
    color: #1a1a1a !important;
    /* Dark text */
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    display: inline-block;
    width: 120px; /* or whatever fits your longest link */
}

.season-nav .nav-link:hover {
    background-color: #1a1a1a;
    color: #fff !important;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .season-header-container {
        width: 95%;
    }

    .season-title {
        font-size: 28px;
    }

    .season-nav-title {
        display: none;
        /* Hide middle text on mobile to save space */
    }

    .season-nav {
        padding: 10px;
    }
}

/* --- LEAGUE TABLE STYLES (Consolidated maintable1) --- */

.league-table {
    width: 65%;
    margin: 20px auto;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-align: center;
    color: #1a1a1a;
    box-sizing: border-box;

    /* Gradient Background (White to Green) */
    background: white;

    /* Rounded Corners & Border */
    border: 1px solid black;
    border-radius: 8px;
    overflow: hidden;

    /* Required for rounded corners on tables */
    border-collapse: separate !important;
    border-spacing: 0;
}

/* Table Headers */
.league-table th {
    padding: 12px 5px;
    text-align: center;
    font-weight: 600;
    border: none !important;
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

/* Table Cells */
.league-table td {
    padding: 8px 5px;
    text-align: center;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.3) !important;
}

/* Links in Table */
.league-table a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
}
.league-table a:hover {
    text-decoration: underline;
}

.league-table a.red-link {
    color: red;
}

.league-table a.green-link {
    color: green;
}

/* Division Header (Premier League, etc.) */
.division-header {
    background: linear-gradient(to bottom, #ffffff, #46B57A);
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: bold;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid black;
    color: #1a1a1a;
}

/* Empty row */
.league-table .empty-row {
    height: 10px;
}

.promoted {
  color: #00cc66;
}

.relegated {
  color: red;
}

.division-line td {
    border-bottom: 1px solid black !important;
}