/*
 Theme Name:   Astra Sports
 Theme URI:    https://overd.com/sports
 Description:  Astra child theme for OverD Sports LiveScores - dark multi-sport layout (NFL + NBA + MLS)
 Author:       OverD
 Author URI:   https://overd.com
 Template:     astra
 Version:      3.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-sports
*/

/* ─── Global Dark Override ───────────────────────────── */
body,
.ast-separate-container,
.ast-plain-container {
    background-color: #070b14;
}

.site-content .ast-container {
    max-width: 1280px;
}

/* Override Astra's default page padding for NFL pages */
body.page-template-page-nfl .entry-content,
body.page-slug-nfl-scores .entry-content,
body.page-slug-nfl-standings .entry-content,
body.page-slug-nfl-schedule .entry-content,
body.page-slug-nfl-stats .entry-content {
    padding: 0;
    margin: 0;
}

/* Remove Astra container background for NFL pages */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    background-color: transparent;
    padding: 0;
}

/* NFL page full-width override */
body.page-slug-nfl-scores .ast-container,
body.page-slug-nfl-standings .ast-container,
body.page-slug-nfl-schedule .ast-container,
body.page-slug-nfl-stats .ast-container {
    max-width: 1280px;
    padding-left: 16px;
    padding-right: 16px;
}

/* ─── NFL Nav Bar ────────────────────────────────────── */
.nfl-top-nav {
    background: #0d1321;
    border-bottom: 2px solid #1a2744;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nfl-top-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 24px;
    color: #8892a4;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nfl-top-nav a:hover {
    color: #e8edf5;
    background: rgba(255,255,255,0.03);
}

.nfl-top-nav a.active,
.nfl-top-nav a[aria-current="page"] {
    color: #0066ff;
    border-bottom-color: #0066ff;
}

.nfl-top-nav .nfl-nav-icon {
    font-size: 16px;
}

/* ─── Dashboard / Home Layout ────────────────────────── */
.nfl-dashboard {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    padding: 20px 0;
}

.nfl-dashboard-main {
    min-width: 0;
}

.nfl-dashboard-sidebar {
    min-width: 0;
}

.nfl-widget {
    background: #131a2b;
    border-radius: 8px;
    border: 1px solid #243049;
    overflow: hidden;
    margin-bottom: 20px;
}

.nfl-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #243049;
}

.nfl-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: #e8edf5;
    margin: 0;
}

.nfl-widget-link {
    font-size: 12px;
    color: #0066ff;
    text-decoration: none;
}

.nfl-widget-link:hover {
    text-decoration: underline;
}

/* ─── Astra Header Override ──────────────────────────── */
.ast-primary-header-bar,
.main-header-bar {
    background-color: #0d1321 !important;
    border-bottom: 1px solid #1a2744 !important;
}

.main-header-menu .menu-link,
.ast-header-break-point .ast-mobile-header-wrap .menu-link {
    color: #e8edf5 !important;
}

.ast-header-break-point .ast-mobile-header-wrap .menu-link:hover,
.main-header-menu .menu-link:hover {
    color: #0066ff !important;
}

.site-title a,
.ast-site-identity .site-title a {
    color: #ffffff !important;
    font-weight: 800 !important;
}

/* ─── Astra Footer Override ──────────────────────────── */
.ast-small-footer,
.site-footer,
.ast-footer-overlay {
    background-color: #0d1321 !important;
    color: #8892a4 !important;
    border-top: 1px solid #1a2744 !important;
}

.ast-small-footer a,
.site-footer a {
    color: #0066ff !important;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 921px) {
    .nfl-dashboard {
        grid-template-columns: 1fr;
    }

    .nfl-top-nav {
        justify-content: flex-start;
    }

    .nfl-top-nav a {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* ─── Page Title Hide (use shortcode titles instead) ── */
body.page-slug-nfl-scores .entry-title,
body.page-slug-nfl-standings .entry-title,
body.page-slug-nfl-schedule .entry-title,
body.page-slug-nfl-stats .entry-title,
body.page-slug-nba-scores .entry-title,
body.page-slug-nba-standings .entry-title,
body.page-slug-nba-schedule .entry-title,
body.page-slug-nba-stats .entry-title,
body.page-slug-mls-scores .entry-title,
body.page-slug-mls-standings .entry-title,
body.page-slug-mls-schedule .entry-title,
body.page-slug-mls-stats .entry-title {
    display: none;
}

/* ─── NBA Page Overrides ─────────────────────────────── */
body.page-slug-nba-scores .entry-content,
body.page-slug-nba-standings .entry-content,
body.page-slug-nba-schedule .entry-content,
body.page-slug-nba-stats .entry-content,
body.page-slug-mls-scores .entry-content,
body.page-slug-mls-standings .entry-content,
body.page-slug-mls-schedule .entry-content,
body.page-slug-mls-stats .entry-content {
    padding: 0;
    margin: 0;
}

body.page-slug-nba-scores .ast-container,
body.page-slug-nba-standings .ast-container,
body.page-slug-nba-schedule .ast-container,
body.page-slug-nba-stats .ast-container,
body.page-slug-mls-scores .ast-container,
body.page-slug-mls-standings .ast-container,
body.page-slug-mls-schedule .ast-container,
body.page-slug-mls-stats .ast-container {
    max-width: 1280px;
    padding-left: 16px;
    padding-right: 16px;
}

/* ─── Nav Separator ──────────────────────────────────── */
.nfl-nav-sep {
    color: #243049;
    padding: 14px 4px;
    font-size: 18px;
    user-select: none;
}

/* ─── NBA Active Nav Color ───────────────────────────── */
.nfl-top-nav a.active[href*="nba-"],
.nfl-top-nav a[aria-current="page"][href*="nba-"] {
    color: #ff6b00;
    border-bottom-color: #ff6b00;
}

/* ─── MLS Active Nav Color ───────────────────────────── */
.nfl-top-nav a.active[href*="mls-"],
.nfl-top-nav a[aria-current="page"][href*="mls-"] {
    color: #00e676;
    border-bottom-color: #00e676;
}
