/* =========================================================
   EDGE SPORTS
   Main Stylesheet
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b1120;
    color: #e5e7eb;
    line-height: 1.6;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
a {
    transition: all 0.2s ease;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    width: 100%;
    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 6%;

    background: #111827;

    border-bottom: 1px solid #1f2937;

    position: sticky;
    top: 0;
    z-index: 100;
}


.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ffffff;
}


.logo span {
    color: #22c55e;
}


.navbar nav {
    display: flex;
    align-items: center;
    gap: 8px;
}


.navbar nav a {
    padding: 9px 14px;

    border-radius: 8px;

    color: #9ca3af;

    font-size: 14px;
    font-weight: 600;
}


.navbar nav a:hover {
    background: #1f2937;
    color: #ffffff;
}


.navbar nav a.active {
    background: #16a34a;
    color: #ffffff;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
    padding: 55px 0 80px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    margin-bottom: 35px;
}


.eyebrow {
    margin-bottom: 8px;

    color: #22c55e;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}


.page-header h1 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: clamp(32px, 5vw, 48px);

    line-height: 1.1;
}


.page-header > p:last-child {
    max-width: 720px;

    color: #9ca3af;

    font-size: 16px;
}


/* =========================================================
   FILTERS
   ========================================================= */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 30px;
}


.filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 9px 17px;

    border: 1px solid #374151;
    border-radius: 8px;

    background: #111827;

    color: #9ca3af;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}


.filter:hover {
    border-color: #22c55e;

    color: #ffffff;

    background: #16231c;
}


.filter.active {
    border-color: #22c55e;

    background: #16a34a;

    color: #ffffff;

    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.18);
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    margin-top: 32px;
    margin-bottom: 32px;
}


.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}


.section-header h2 {
    color: #ffffff;

    font-size: 25px;
}


/* =========================================================
   STAT GRID
   ========================================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


.stat-box {
    padding: 22px;

    background: #111827;

    border: 1px solid #1f2937;

    border-radius: 12px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


.stat-box:hover {
    border-color: #374151;

    transform: translateY(-2px);
}


.stat-box span {
    display: block;

    margin-bottom: 8px;

    color: #6b7280;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
}


.stat-box strong {
    display: block;

    color: #ffffff;

    font-size: 30px;

    line-height: 1.2;
}


.stat-box p {
    margin-top: 6px;

    color: #6b7280;

    font-size: 13px;
}


/* =========================================================
   GAME CARDS
   ========================================================= */

.game-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.game-card {
    padding: 24px;

    background: #111827;

    border: 1px solid #1f2937;

    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);

    transition: transform 0.2s ease,
                border-color 0.2s ease;
}


.game-card:hover {
    transform: translateY(-3px);

    border-color: #374151;
}


.game-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 25px;
}


.sport {
    display: inline-block;

    padding: 4px 8px;

    border-radius: 5px;

    background: #172554;

    color: #60a5fa;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


.game-time {
    margin-left: 8px;

    color: #9ca3af;

    font-size: 13px;
}


.game-status {
    padding: 5px 9px;

    border-radius: 5px;

    background: #14351f;

    color: #4ade80;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.7px;
}


.teams {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 15px;

    margin-bottom: 24px;
}


.team-block {
    display: flex;
    align-items: center;

    gap: 12px;
}


.team-block:last-child {
    justify-content: flex-end;

    text-align: right;
}


.team-logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: #1f2937;

    border: 1px solid #374151;

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}


.team-block h2 {
    color: #ffffff;

    font-size: 17px;
}


.team-block p {
    color: #6b7280;

    font-size: 12px;
}


.vs {
    color: #4b5563;

    font-size: 12px;
    font-weight: 800;
}


.game-stats {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top: 1px solid #1f2937;

    border-bottom: 1px solid #1f2937;

    margin-bottom: 20px;
}


.game-stats > div {
    padding: 15px 10px;

    text-align: center;

    border-right: 1px solid #1f2937;
}


.game-stats > div:last-child {
    border-right: none;
}


.game-stats span {
    display: block;

    margin-bottom: 5px;

    color: #6b7280;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


.game-stats strong {
    color: #ffffff;

    font-size: 14px;
}


.game-stats p {
    color: #6b7280;

    font-size: 11px;
}


.game-button {
    display: block;

    width: 100%;

    padding: 11px 15px;

    border: 1px solid #374151;

    border-radius: 8px;

    background: #172033;

    color: #d1d5db;

    text-align: center;

    font-size: 13px;
    font-weight: 700;
}


.game-button:hover {
    background: #16a34a;

    border-color: #22c55e;

    color: #ffffff;
}


/* =========================================================
   TABLES
   ========================================================= */

.table-container {
    width: 100%;

    overflow-x: auto;

    background: #111827;

    border: 1px solid #1f2937;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


table {
    width: 100%;

    min-width: 750px;

    border-collapse: collapse;
}


thead {
    background: #0f172a;
}


th {
    padding: 14px 16px;

    border-bottom: 1px solid #374151;

    color: #6b7280;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.9px;

    text-align: left;
}


td {
    padding: 16px;

    border-bottom: 1px solid #1f2937;

    color: #d1d5db;

    font-size: 13px;
}


tbody tr {
    transition: background 0.15s ease;
}


tbody tr:hover {
    background: #172033;
}


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


td strong {
    color: #ffffff;
}


td small {
    display: block;

    margin-top: 3px;

    color: #6b7280;
}


.positive {
    color: #4ade80 !important;
}


.negative {
    color: #f87171 !important;
}


/* =========================================================
   TREND CARDS
   ========================================================= */

.trend-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


.trend-card {
    padding: 22px;

    background: #111827;

    border: 1px solid #1f2937;

    border-radius: 12px;
}


.trend-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 18px;
}


.trend-type {
    color: #6b7280;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.7px;
}


.trend-card h3 {
    margin-bottom: 8px;

    color: #ffffff;

    font-size: 19px;
}


.trend-card > p {
    color: #9ca3af;

    font-size: 13px;
}


.trend-stat {
    margin-top: 20px;

    padding-top: 15px;

    border-top: 1px solid #1f2937;
}


.trend-stat strong {
    display: block;

    color: #4ade80;

    font-size: 24px;
}


.trend-stat span {
    color: #6b7280;

    font-size: 11px;
}


/* =========================================================
   FACTOR CARDS
   ========================================================= */

.factor-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;
}


.factor-card {
    padding: 20px;

    background: #111827;

    border: 1px solid #1f2937;

    border-radius: 12px;
}


.factor-card span {
    display: block;

    color: #6b7280;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.8px;
}


.factor-card strong {
    display: block;

    margin: 8px 0;

    color: #4ade80;

    font-size: 24px;
}


.factor-card p {
    color: #9ca3af;

    font-size: 12px;
}


/* =========================================================
   RESEARCH PANEL
   ========================================================= */

.research-panel {
    padding: 30px;

    background: #111827;

    border: 1px solid #1f2937;

    border-radius: 14px;
}


.research-panel h2 {
    margin-bottom: 10px;

    color: #ffffff;

    font-size: 26px;
}


.research-panel > p:not(.eyebrow) {
    max-width: 800px;

    margin-bottom: 28px;

    color: #9ca3af;
}


.method-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;
}


.method-grid > div {
    padding: 18px;

    border: 1px solid #1f2937;

    border-radius: 10px;

    background: #0f172a;
}


.method-grid strong {
    display: block;

    margin-bottom: 8px;

    color: #22c55e;

    font-size: 22px;
}


.method-grid span {
    display: block;

    margin-bottom: 6px;

    color: #ffffff;

    font-weight: 700;
}


.method-grid p {
    color: #6b7280;

    font-size: 12px;
}


/* =========================================================
   NOTICE
   ========================================================= */

.notice {
    margin-top: 25px;

    padding: 18px 20px;

    border-left: 3px solid #22c55e;

    border-radius: 8px;

    background: #101a17;

    border-top: 1px solid #1f2937;
    border-right: 1px solid #1f2937;
    border-bottom: 1px solid #1f2937;
}


.notice strong {
    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 14px;
}


.notice p {
    color: #9ca3af;

    font-size: 13px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    padding: 30px 6%;

    border-top: 1px solid #1f2937;

    background: #080d18;

    text-align: center;
}


footer p {
    color: #6b7280;

    font-size: 12px;
}


footer p + p {
    margin-top: 3px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .navbar {
        padding: 15px 4%;

        flex-direction: column;

        gap: 12px;
    }


    .navbar nav {
        flex-wrap: wrap;

        justify-content: center;
    }


    .stats-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .factor-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .method-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }


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

}


@media (max-width: 700px) {

    .container {
        width: 94%;

        padding-top: 35px;
    }


    .navbar nav a {
        padding: 7px 9px;

        font-size: 12px;
    }


    .page-header h1 {
        font-size: 34px;
    }


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


    .game-list {
        grid-template-columns:
            1fr;
    }


    .teams {
        gap: 8px;
    }


    .team-block {
        flex-direction: column;

        text-align: center;
    }


    .team-block:last-child {
        flex-direction: column;

        text-align: center;
    }


    .game-stats {
        grid-template-columns:
            1fr;
    }


    .game-stats > div {
        border-right: none;

        border-bottom: 1px solid #1f2937;
    }


    .game-stats > div:last-child {
        border-bottom: none;
    }


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


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


    .research-panel {
        padding: 22px;
    }

}