:root {
    --dark-blue: rgb(10, 13, 64);
    --accent: cornflowerblue;
    --text-color: #111;
    --light-bg: #ffffff;
    --highlight: orange;
    --font-main: 'Lucida Sans', Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--light-bg);
    color: var(--text-color);
}

/* HEADER */
.header {
    background: linear-gradient(90deg, var(--dark-blue), #0b1a6b);
    border-bottom: 3px solid var(--accent);
    color: white;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.inner_header {
    max-width: 1150px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo_container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo_container h1 {
    font-size: 1.5rem;
    margin: 0;
}

.logo_img {
    border-radius: 10px;
}

/* NAVIGATION */
.nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.nav li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav li a:hover {
    color: var(--highlight);
}

/* Navigation links */
.nav a {
    text-decoration: none;
    color: white; /* default color */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--highlight); /* orange on hover */
}

/* Keep visited links white */
.nav a:visited {
    color: white;
}

/* Highlight the active page */
.nav a.active {
    color: var(--highlight); /* orange for current page */
}


/* INTRO SECTION */
.intro {
    padding: 40px 20px;
    text-align: center;
    max-width: 1000px;
    margin: auto;
}

.intro h2 {
    font-size: 2rem;
    color: var(--dark-blue);
}

/* DIVIDER */
.divider {
    border: none;
    height: 3px;
    background-color: var(--accent);
    width: 80%;
    margin: 30px auto;
}

/* FEATURES SECTION */
.features {
    padding: 40px 20px;
    text-align: center;
}

.feature-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background-color: #f8f9ff;
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.feature-card h3 a {
    text-decoration: none;
    color: var(--dark-blue);
}

.feature-card h3 a:hover {
    color: var(--highlight);
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FOOTER */
footer {
    background: linear-gradient(90deg, var(--dark-blue), #0b1a6b);
    border-top: 3px solid var(--accent);
    color: whitesmoke;
    text-align: center;
    padding: 20px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: var(--highlight);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .inner_header {
        flex-direction: column;
        align-items: center;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .feature-card {
        width: 90%;
        max-width: 350px;
    }
}

a, a:visited, a:hover, a:active {
    text-decoration: none;
    color: white;
}

.nav a {
    text-decoration: none;
    color: white; /* default color */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--highlight); /* orange or your highlight color */
}

.nav a:visited {
    color: white; /* stays white after visiting */
}


/* FOR TEAM PAGES */

/* TEAM HEADER */
.team-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

.team-logo {
    height: 120px;
}

.team-header h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    margin: 0;
}

/* SUMMARY CARDS */
.team-summary {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px;
}

.summary-card {
    background-color: #f8f9ff;
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 20px;
    width: 250px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.summary-card h3 {
    margin-bottom: 10px;
    color: var(--dark-blue);
}

/* ROSTER TABLE */
.roster-section {
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.roster-table th {
    background-color: var(--dark-blue);
    color: white;
    padding: 12px;
}

.roster-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.roster-table tr:hover {
    background-color: #f2f6ff;
}

/* VALUE COLORS */
.positive {
    color: green;
    font-weight: bold;
}

.negative {
    color: red;
    font-weight: bold;
}

/* TEAM COLOR VARIABLES (Override Per Team Page) */
:root {
    --team-primary: var(--dark-blue);
    --team-secondary: var(--accent);
}

/* TEAM HEADER */
.team-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
}

.team-logo {
    height: 120px;
}

/* Upload */
.upload-section {
    text-align: center;
    padding: 20px;
}

/* Chart */
.chart-section {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

/* Table improvements */
.roster-table th {
    cursor: pointer;
    transition: background 0.2s ease;
}

.roster-table th:hover {
    background-color: var(--team-secondary);
}

/* CONFERENCE TOGGLE */
.conference-tabs {
    text-align: center;
    margin: 20px 0;
}

.conf-btn {
    background-color: var(--dark-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.conf-btn:hover {
    background-color: var(--accent);
}

.conf-btn.active {
    background-color: var(--accent);
}

/* Hide inactive conference */
.conference {
    display: none;
}

.active-conf {
    display: grid;
}

/* TEAM GRID */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* TEAM CARD */
.team-card {
    text-decoration: none;
    color: var(--dark-blue);
    transition: transform 0.25s ease;
}

.team-card:hover {
    transform: translateY(-6px);
}


/* CIRCLE LOGO */
.team-circle {
    background: linear-gradient(135deg, #f5f7fa, #e9edf2);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-circle img {
    width: 70px;
    height: auto;
}

/* Conference Toggle */
.conference-tabs {
    text-align: center;
    margin: 20px 0;
}

.conf-btn {
    background-color: var(--dark-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.conf-btn:hover {
    background-color: var(--accent);
}

.conf-btn.active {
    background-color: var(--accent);
}

.conference {
    display: none;
}

.active-conf {
    display: grid;
}

/* Shiny Section */
.shiny-section {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.shiny-container {
    margin-top: 20px;
    border: 3px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* FIX TEAM CARD TEXT COLOR */
.team-card,
.team-card:visited {
    color: var(--dark-blue);
}

.team-card:hover {
    color: var(--highlight); /* your orange */
}

a {
    text-decoration: none;
}

.team-card p {
    margin: 0;
    font-weight: 600;
    transition: color 0.25s ease;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
}

.team-table thead {
    background: linear-gradient(90deg, #ff7a00, #ff5500);
}

.team-table th {
    padding: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.team-table td {
    padding: 14px;
    font-size: 14px;
    border-bottom: 1px solid #222;
}

.team-table tbody tr {
    transition: background 0.2s ease;
}

.team-table tbody tr:hover {
    background: #1a1a1a;
}

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

.summary-card {
    background: linear-gradient(145deg, #151515, #0e0e0e);
    padding: 25px;
    border-radius: 18px;
    flex: 1;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.team-table thead {
    background: #ff6b00;
    color: white;
}

.team-table th {
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-table td {
    padding: 14px;
    border-bottom: 1px solid #eee;
}

.team-table tbody tr:hover {
    background: #f9f9f9;
}

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

.summary-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    flex: 1;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.summary-card h3 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
}

.summary-card p {
    font-size: 22px;
    font-weight: bold;
    color: #222;
}

.page-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 30px;
}

.positive {
    color: #2ecc71;
    font-weight: 600;
}

.negative {
    color: #e74c3c;
    font-weight: 600;
}

.neutral {
    color: inherit;
}

.league-context {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.league-context .summary-card {
    flex: 1;
    max-width: 300px;
    text-align: center;
}

.feature-card {
    display: block;  /* add this line to the existing .feature-card styles */
}

.feature-card, .feature-card:visited {
    color: var(--text-color);
}

.feature-card:hover {
    color: var(--text-color);
}

/* Tier Chart */
#tier-container {
    background: white;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    border-top: 4px solid cornflowerblue;
    padding: 20px;
}

.tier-btn {
    background: white;
    border: 2px solid cornflowerblue;
    color: rgb(10, 13, 64);
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Lucida Sans', Geneva, Verdana, sans-serif;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.2s ease;
}

.tier-btn:hover {
    background: cornflowerblue;
    color: white;
}

.tier-btn.active {
    background: cornflowerblue;
    color: white;
}