/* ================================================================
   FSA 3.0 — fsa.css
   Fantasy Sports Alliance | Main Stylesheet
   All shared styles for the FSA 3.0 platform
   Link with: <link rel="stylesheet" href="css/fsa.css">
================================================================ */

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
    --fsa-navy: #00205B;
    --fsa-navy-dark: #001540;
    --fsa-navy-light: #003080;
    --fsa-gold: #A08A58;
    --fsa-gold-light: #C4A96E;
    --apbl-red: #C8102E;
    --ahsdl-gold: #A08A58;
    --wrl-blue: #4b92db;
    --white: #ffffff;
    --off-white: #f5f6f8;
    --light-gray: #e8eaed;
    --mid-gray: #9ea3ad;
    --dark-gray: #444a55;
    --text-primary: #1a1e2a;
    --text-secondary: #555d6e;
    --text-muted: #8a93a2;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f6f8;
    --bg-card: #ffffff;
    --border-color: #e2e5ea;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --nav-height: 64px;
    --row1-height: 80px;
}

[data-theme="dark"] {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2230;
    --text-primary: #e8edf5;
    --text-secondary: #a0a8b8;
    --text-muted: #606878;
    --border-color: #2a3040;
    --light-gray: #2a3040;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============================================================
   ROW 1 — LEAGUE LOGOS + SOCIAL ICONS
============================================================ */
.row-1 {
    height: var(--row1-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 24px;
}

.row-1-logos {
    display: flex;
    align-items: center;
    gap: 48px;
}

.row-1-logo-link {
    display: flex;
    align-items: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.row-1-logo-link:hover { opacity: 0.8; transform: translateY(-2px); }
.row-1-logo-link img { height: 70px; width: auto; object-fit: contain; }

.league-logo-placeholder {
    height: 70px;
    width: 110px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    color: white;
}

.league-logo-placeholder.apbl  { background-color: var(--apbl-red); }
.league-logo-placeholder.ahsdl { background-color: var(--ahsdl-gold); }
.league-logo-placeholder.wrl   { background-color: var(--wrl-blue); }

.row-1-social {
    position: absolute;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.row-1-social a {
    color: #6b7a99;
    font-size: 19px;
    transition: color 0.2s ease, transform 0.15s ease;
}

.row-1-social a:hover { transform: translateY(-2px); }
.row-1-social a.fb:hover { color: #1877F2; }
.row-1-social a.ig:hover { color: #E1306C; }
.row-1-social a.tw:hover { color: #000000; }
.row-1-social a.yt:hover { color: #FF0000; }
.row-1-social a.tt:hover { color: #ff0050; }
.row-1-social a.dc:hover { color: #5865F2; }

[data-theme="dark"] .row-1-social a             { color: #7a8aaa; }
[data-theme="dark"] .row-1-social a.fb:hover    { color: #4da3ff; }
[data-theme="dark"] .row-1-social a.ig:hover    { color: #f06090; }
[data-theme="dark"] .row-1-social a.tw:hover    { color: #ffffff; }
[data-theme="dark"] .row-1-social a.yt:hover    { color: #ff4444; }
[data-theme="dark"] .row-1-social a.tt:hover    { color: #ff4d7a; }
[data-theme="dark"] .row-1-social a.dc:hover    { color: #7b88ff; }

/* ============================================================
   ROW 2 — MAIN NAV
============================================================ */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.row-2 {
    height: var(--nav-height);
    background-color: var(--fsa-navy);
    display: flex;
    align-items: center;
    padding: 0 24px;
    box-shadow: var(--shadow-md);
}

.nav-logo { flex-shrink: 0; margin-right: 32px; }
.nav-logo img { height: 44px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    height: var(--nav-height);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    transition: color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.nav-link i { font-size: 10px; opacity: 0.7; }

.nav-link:hover,
.nav-item:hover > .nav-link {
    color: var(--white);
    background-color: rgba(255,255,255,0.08);
}

.nav-item:hover > .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--fsa-gold);
}

/* ============================================================
   MEGA MENU
============================================================ */
.mega-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--fsa-gold);
    box-shadow: var(--shadow-lg);
    min-width: 480px;
    z-index: 1001;
    padding: 20px 0;
}

.nav-item:hover .mega-menu { display: block; }

.mega-menu-item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 10px 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 24px;
    transition: background-color 0.15s ease;
}

.mega-menu-item:last-child { border-bottom: none; }
.mega-menu-item:hover { background-color: var(--bg-secondary); }

.mega-menu-league {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.mega-menu-league:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.mega-menu-league.apbl  { color: var(--apbl-red); }
.mega-menu-league.apbl:hover  { color: #e8203a; }
.mega-menu-league.ahsdl { color: var(--ahsdl-gold); }
.mega-menu-league.ahsdl:hover { color: #c4a455; }
.mega-menu-league.wrl   { color: var(--wrl-blue); }
.mega-menu-league.wrl:hover   { color: #6aaaf0; }

.mega-menu-links {
    display: flex;
    gap: 24px;
    white-space: nowrap;
    justify-content: flex-end;
}

.mega-menu-links a {
    font-family: 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.mega-menu-links a:hover { color: var(--fsa-navy); }
[data-theme="dark"] .mega-menu-links a:hover { color: var(--fsa-gold); }

/* ============================================================
   NAV — DARK/LIGHT TOGGLE + MOBILE
============================================================ */
.nav-right { margin-left: auto; display: flex; align-items: center; }

.theme-toggle {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 4px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    transition: background 0.2s ease;
}

.theme-toggle:hover { background: rgba(255,255,255,0.2); color: white; }
.theme-toggle .dark-icon { display: block; }
.theme-toggle .light-icon { display: none; }
[data-theme="dark"] .theme-toggle .light-icon { display: block; }
[data-theme="dark"] .theme-toggle .dark-icon  { display: none; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
    padding: 8px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--fsa-navy-dark);
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.open { display: flex; }

.mobile-menu-item {
    padding: 12px 20px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-submenu { display: none; background: rgba(0,0,0,0.2); padding: 4px 0; }
.mobile-submenu.open { display: block; }

.mobile-submenu-item {
    padding: 10px 32px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.mobile-submenu-item.apbl  { color: #e05070; }
.mobile-submenu-item.ahsdl { color: var(--fsa-gold-light); }
.mobile-submenu-item.wrl   { color: var(--wrl-blue); }

/* ============================================================
   ROW 3 — SCOREBOARD TICKER
============================================================ */
.row-3 {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
}

.scoreboard-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.scoreboard-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.league-filter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px 10px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.scoreboard-scroll-wrapper {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.scoreboard-scroll-wrapper::-webkit-scrollbar { height: 3px; }
.scoreboard-scroll-wrapper::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 2px; }

.scoreboard-games {
    display: flex;
    gap: 10px;
    padding-bottom: 4px;
    min-width: max-content;
}

.score-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 14px;
    min-width: 200px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.score-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
}

.score-league-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.score-league-label.apbl  { color: var(--apbl-red); }
.score-league-label.ahsdl { color: var(--ahsdl-gold); }
.score-league-label.wrl   { color: var(--wrl-blue); }

.score-status {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.score-team {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.score-team-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: contain;
    background: var(--bg-secondary);
}

.score-team-logo-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
}

.score-team-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.score-team-score {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    text-align: right;
}

.score-team-score.winner { color: var(--fsa-navy); }
[data-theme="dark"] .score-team-score.winner { color: var(--fsa-gold); }

/* ============================================================
   ROW 4 — CONTENT BODY
============================================================ */
.row-4 {
    padding: 32px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    grid-template-areas: "left center right";
    gap: 28px;
}

/* Hero Story */
.hero-story {
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.hero-story:hover { box-shadow: var(--shadow-md); }

.hero-story-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #0d1f3c 0%, #1a4a8a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-story-meta {
    padding: 20px 24px 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-league-pill {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    transition: opacity 0.15s ease;
    cursor: pointer;
}

.story-league-pill:hover { opacity: 0.8; }
.story-league-pill.apbl  { background: var(--apbl-red); color: white; }
.story-league-pill.ahsdl { background: var(--ahsdl-gold); color: white; }
.story-league-pill.wrl   { background: var(--wrl-blue); color: white; }
.story-league-pill.fsa   { background: var(--fsa-navy); color: white; }

.story-date {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-story-title {
    padding: 8px 24px 4px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.hero-story-byline {
    padding: 6px 24px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.hero-story-byline i { font-size: 11px; }

/* Stories Grid */
.stories-section-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--fsa-gold);
    display: inline-block;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.story-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.story-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.story-card-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
}

.story-card-body { padding: 14px 16px; }

.story-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.story-card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.story-card-byline {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.story-card-byline a { color: var(--text-muted); transition: color 0.15s ease; }
.story-card-byline a:hover { color: var(--fsa-navy); }
[data-theme="dark"] .story-card-byline a:hover { color: var(--fsa-gold); }

/* ============================================================
   CONTENT COLUMNS — grid-area assignments
============================================================ */
.content-sidebar-left { grid-area: left; }
.content-main         { grid-area: center; }
.content-sidebar      { grid-area: right; }

/* ============================================================
   SIDEBAR WIDGETS
============================================================ */
.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    background: var(--fsa-navy);
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.widget-header select {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    font-family: 'Barlow', sans-serif;
    cursor: pointer;
    outline: none;
}

.widget-header select option { background: var(--fsa-navy); color: white; }

.standings-table { width: 100%; border-collapse: collapse; }

.standings-table th {
    background: var(--bg-secondary);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px;
    text-align: left;
}

.standings-table th:not(:first-child) { text-align: center; }

.standings-table td {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.standings-table td:not(:first-child) { text-align: center; }
.standings-table tr:last-child td { border-bottom: none; }
.standings-table tr:hover td { background: var(--bg-secondary); }

.standings-team-name {
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.standings-team-name a { color: var(--fsa-navy); }
.standings-team-name a:hover { text-decoration: underline; }
[data-theme="dark"] .standings-team-name a { color: var(--wrl-blue); }

/* Widget table — compact rows, identical height both columns */
.sidebar-widget .standings-table td {
    padding: 4px 6px;
    vertical-align: middle;
    height: 36px;
    line-height: 1;
}
.sidebar-widget .standings-table th {
    padding: 5px 6px;
    font-size: 10px;
}
/* Logo column tight */
.sidebar-widget .standings-table td:nth-child(2) {
    width: 28px;
    padding: 4px 2px;
}

.widget-footer { padding: 12px 16px; border-top: 1px solid var(--border-color); }

.btn-full-standings {
    display: block;
    width: 100%;
    padding: 9px;
    background: var(--fsa-navy);
    color: white;
    text-align: center;
    border-radius: 5px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.btn-full-standings:hover { background: var(--fsa-navy-light); }

/* GM Spotlight */
.gm-spotlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
    cursor: pointer;
}

.gm-spotlight-item:last-of-type { border-bottom: none; }
.gm-spotlight-item:hover { background: var(--bg-secondary); }

.gm-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--light-gray);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 18px;
    overflow: hidden;
}

.gm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gm-name { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.gm-team { font-size: 12px; color: var(--text-muted); }
.gm-award { font-size: 11px; color: var(--fsa-gold); font-weight: 600; margin-top: 2px; }

/* Social Follow Grid */
.social-follow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
}

.social-follow-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    transition: opacity 0.2s ease, transform 0.15s ease;
    color: white;
}

.social-follow-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.social-follow-btn i { font-size: 18px; }
.social-follow-btn.facebook  { background: #1877F2; }
.social-follow-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-follow-btn.twitter   { background: #000000; }
.social-follow-btn.youtube   { background: #FF0000; }
.social-follow-btn.tiktok    { background: #000000; }
.social-follow-btn.discord   { background: #5865F2; }

/* ============================================================
   ROW 5 — FANATICALLY REAL BANNER + FOOTER
============================================================ */
.fanatically-real-banner {
    background: linear-gradient(135deg, var(--fsa-navy-dark) 0%, var(--fsa-navy) 50%, #1a3a6e 100%);
    padding: 64px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fanatically-real-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.fanatically-real-banner .tagline {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 5vw, 64px);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: white;
    line-height: 1.1;
    position: relative;
    margin-bottom: 12px;
}

.fanatically-real-banner .tagline span { color: var(--fsa-gold-light); }

.fanatically-real-banner .sub-tagline {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
}

.footer {
    background: #080e1a;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copyright { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-copyright a { color: rgba(255,255,255,0.6); transition: color 0.2s ease; }
.footer-copyright a:hover { color: var(--fsa-gold-light); }

.footer-links {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-links a { color: rgba(255,255,255,0.5); transition: color 0.2s ease; padding: 0 8px; }
.footer-links a:hover { color: var(--fsa-gold-light); }
.footer-links span { opacity: 0.3; }

.footer-social { display: flex; align-items: center; gap: 16px; }
.footer-social a { color: rgba(255,255,255,0.4); font-size: 15px; transition: color 0.2s ease; }
.footer-social a:hover { color: var(--fsa-gold-light); }

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--fsa-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 999;
}

.back-to-top:hover { background: var(--fsa-gold); transform: translateY(-3px); }

/* ============================================================
   UTILITY
============================================================ */
.section-divider { height: 1px; background: var(--border-color); margin: 0; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1200px) {
    .content-grid { grid-template-columns: 240px 1fr 240px; gap: 20px; }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "left"
            "right";
    }
}

@media (max-width: 768px) {
    /* Row 1 — stack logos and social icons vertically */
    .row-1 {
        flex-direction: column;
        height: auto;
        padding: 12px 16px;
        gap: 12px;
    }
    .row-1-logos { gap: 24px; justify-content: center; }
    .row-1-logo-link img,
    .league-logo-placeholder { height: 48px; }
    .league-logo-placeholder { width: 80px; font-size: 16px; }
    .row-1-social { position: static; gap: 16px; justify-content: center; }

    /* Row 2 */
    .row-2 { padding: 0 16px; }
    .nav-menu { display: none; }
    .hamburger { display: flex !important; }

    /* Content — news first, standings second, power rankings third */
    .content-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "center"
            "left"
            "right";
    }
    .stories-grid { grid-template-columns: 1fr; }
    .row-4 { padding: 20px 16px; }

    /* Footer */
    .footer { flex-direction: column; text-align: center; gap: 12px; }
}