/*
Theme Name: JoshsWriteUp
Theme URI: https://joshswriteup.com
Author: Josh
Description: Custom theme for the JoshsWriteUp sports blog, ported from the ASP.NET prototype's stylesheet.
Version: 0.1.0
Text Domain: joshswriteup
*/

/* ===================================
   Josh's Sports Blog - Main Stylesheet
   Color Scheme: Black (#000), Red (#DC143C), White (#FFF)
   =================================== */

/* CSS Variables */
:root {
    --primary-black: #0B0F19;
    --primary-red: #E21A3C;
    --primary-white: #FFFFFF;
    --dark-gray: #1E293B;
    --medium-gray: #475569;
    --light-gray: #F1F5F9;
    --border-gray: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #64748B;
    --hover-red: #B91030;
    --amber-gold: #FFB800;
    --status-green: #16A34A;
    --status-green-bg: #DCFCE7;
    --status-red-bg: #FEE2E2;
    --warm-highlight: #F8FAFC;
    --wood-medium: #334155;
    --wood-dark: #0B0F19;
    --chalk-white: #F8FAFC;
    --bar-glow: rgba(15, 23, 42, 0.05);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

a {
    color: var(--primary-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-red);
}

/* ===================================
   Header & Branding
   =================================== */

.brand-bar {
    background: linear-gradient(180deg, var(--dark-gray) 0%, var(--primary-black) 100%);
    color: var(--primary-white);
    padding: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(11, 15, 25, 0.4);
    width: 100%;
}

.brand-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-logo {
    flex-shrink: 0;
}

.logo-image {
    height: 60px;
    width: auto;
    display: block;
}

.brand-text {
    flex-grow: 1;
}

.site-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.site-title a {
    color: var(--primary-white);
}

.site-title a:hover {
    color: var(--amber-gold);
}

.site-tagline {
    font-size: 0.875rem;
    color: var(--border-gray);
    margin: 0.25rem 0 0 0;
    font-weight: 300;
    font-style: italic;
}

.user-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.notification-bell-link {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.notification-bell-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.notification-bell {
    font-size: 1.5rem;
    line-height: 1;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.btn-auth {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-signup {
    background-color: var(--primary-red);
    color: var(--primary-white);
    border: 2px solid var(--primary-red);
}

.btn-signup:hover {
    background-color: var(--hover-red);
    border-color: var(--hover-red);
    color: var(--primary-white);
}

.btn-login {
    background-color: transparent;
    color: var(--primary-white);
    border: 2px solid var(--primary-white);
}

.btn-login:hover {
    background-color: var(--amber-gold);
    color: var(--primary-black);
    border-color: var(--amber-gold);
}

/* ===================================
   Sports Navigation Bar
   =================================== */

.sports-navbar {
    background-color: var(--dark-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 4px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sports-nav-list {
    list-style: none;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    position: relative;
}

/* More Sports button - hidden by default (large screens) */
.nav-item-more {
    display: none;
}

.more-sports-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* Small/Medium screens: hide secondary items, show More button */
@media (max-width: 991px) {
    .sports-nav-list {
        flex-wrap: wrap;
    }

    .nav-item-secondary {
        display: none;
    }

    /* When the dropdown is open, show secondary items */
    .sports-nav-list.more-open .nav-item-secondary {
        display: block;
        width: 100%;
    }

    .sports-nav-list.more-open .nav-item-secondary .nav-link {
        border-bottom: 1px solid var(--wood-medium);
    }

    .nav-item-more {
        display: block;
    }
}

/* Large screens: all items in one row, no wrapping */
@media (min-width: 992px) {
    .sports-nav-list {
        flex-wrap: nowrap;
    }
}

.nav-item {
    position: relative;
}

.nav-divider {
    width: 1px;
    background-color: var(--wood-medium);
    margin: 0.5rem 0;
}

.nav-link {
    display: block;
    padding: 1rem 1.25rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--chalk-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.nav-link:hover {
    color: var(--amber-gold);
    background-color: rgba(255, 184, 0, 0.1);
    border-bottom-color: var(--amber-gold);
}

.nav-link.active {
    color: var(--amber-gold);
    border-bottom-color: var(--amber-gold);
}

/* ===================================
   Homepage Layout - Three Columns
   =================================== */

.homepage-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 2rem;
    align-items: start;
}

/* Editor's Picks is omitted entirely when there are no picks — collapse the
   third column instead of leaving an empty 320px gap. */
.homepage-container:not(:has(.sidebar-right)) {
    grid-template-columns: 280px 1fr;
}

/* Left Sidebar - This Week's Games */
/* Capped to the viewport so a tall games/picks list scrolls inside its own
   box (its own scrollbar) instead of dragging the whole page past the
   article feed to see the rest of the list. */
.sidebar-left {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

/* Right Sidebar - Editor's Picks */
.sidebar-right {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.sidebar-card {
    background-color: var(--primary-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px var(--bar-glow), 0 1px 4px rgba(15, 23, 42, 0.06);
    border: 1px solid var(--border-gray);
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-blurb {
    color: #6b7280;
    font-size: 0.875rem;
    margin: -0.5rem 0 1rem 0;
}

.btn-search-users {
    display: block;
    text-align: center;
    padding: 0.75rem 1rem;
    background: #dc143c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-search-users:hover {
    background: #b91030;
}

.sidebar-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-red);
}

/* ===================================
   Games List (Left Sidebar)
   =================================== */

.games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-item {
    padding: 1rem;
    background-color: var(--warm-highlight);
    border-radius: 6px;
    border-left: 3px solid var(--medium-gray);
    transition: transform 0.2s ease;
}

.game-item:hover {
    transform: translateX(3px);
}

/* Accent color reflects game status: green once final, red while it's
   still in play or hasn't started yet, gray otherwise (e.g. Off-Season). */
.game-item--status-final {
    border-left-color: var(--status-green);
}

.game-item--status-final .game-league {
    color: var(--status-green);
}

.game-item--status-active {
    border-left-color: var(--primary-red);
}

.game-item--status-active .game-league {
    color: var(--primary-red);
}

.game-item--status-neutral {
    border-left-color: var(--medium-gray);
}

.game-item--status-neutral .game-league {
    color: var(--medium-gray);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.game-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-sport-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    background-color: var(--border-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

.game-league {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.status-upcoming {
    background-color: var(--status-red-bg);
    color: var(--primary-red);
}

.status-live {
    background-color: var(--primary-red);
    color: #ffffff;
    animation: pulse-live 2s ease-in-out infinite;
}

.status-final {
    background-color: var(--status-green-bg);
    color: var(--status-green);
}

.status-off-season {
    background-color: var(--border-gray);
    color: var(--medium-gray);
}

.game-matchup {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.team {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.team-score {
    font-family: 'Oswald', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-black);
}

.game-watchlist {
    margin-bottom: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--border-gray);
}

.game-watchlist-title {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
}

.game-watchlist-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.game-watchlist-items li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.watch-name {
    font-weight: 600;
    color: var(--text-primary);
}

.watch-score {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.game-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-gray);
}

/* ===================================
   Main Content - Top Stories
   =================================== */

.main-content {
    min-height: 100vh;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-red);
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-black);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Large Article Cards (Top Stories) */
.article-card-large {
    background-color: var(--primary-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--bar-glow), 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-gray);
}

.article-card-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--bar-glow), 0 6px 16px rgba(15, 23, 42, 0.12);
}

.article-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-large:hover .article-image img {
    transform: scale(1.05);
}

.article-categories {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.category-badge {
    font-family: 'Oswald', sans-serif;
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 2rem;
}

.article-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--primary-black);
}

.article-title a {
    color: var(--primary-black);
}

.article-title a:hover {
    color: var(--primary-red);
}

.article-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.author {
    font-weight: 600;
    color: var(--primary-black);
}

.card-author-avatar,
.card-author-avatar-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
}

.card-author-avatar {
    object-fit: cover;
    display: block;
}

.card-author-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
}

.separator {
    color: var(--border-gray);
}

.like-count-inline {
    color: var(--primary-red);
}

/* ===================================
   Editor's Picks (Right Sidebar)
   =================================== */

.editors-picks-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.article-card-small {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

.article-card-small:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-small-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 6px;
}

.article-small-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-small:hover .article-small-image img {
    transform: scale(1.1);
}

.article-small-categories {
    margin-bottom: 0.5rem;
}

.category-tag {
    font-family: 'Oswald', sans-serif;
    display: inline-block;
    background-color: var(--warm-highlight);
    color: var(--primary-red);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}

.article-small-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--primary-black);
}

.article-small-title a {
    color: var(--primary-black);
}

.article-small-title a:hover {
    color: var(--primary-red);
}

.article-small-excerpt {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.article-small-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ===================================
   Footer
   =================================== */

.site-footer {
    background: linear-gradient(180deg, var(--wood-dark) 0%, var(--dark-gray) 100%);
    color: var(--chalk-white);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
    border-top: 4px solid var(--primary-red);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
}

/* Default link color for the footer so any widget content (nav menus, category
   lists, etc.) stays readable, even without the .footer-links/.footer-social-link
   classes. Without this, links inherit the global `a` rule's --primary-black,
   which is the same color as --wood-dark and disappears into the background. */
.site-footer a {
    color: var(--chalk-white);
}

.site-footer a:hover {
    color: var(--amber-gold);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Oswald', sans-serif;
    color: var(--amber-gold);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--chalk-white);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--amber-gold);
}

.footer-description {
    font-size: 0.875rem;
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--wood-dark);
    border: 1px solid var(--wood-medium);
    border-radius: 6px;
    color: var(--chalk-white);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: var(--amber-gold);
    border-color: var(--amber-gold);
    color: var(--chalk-white);
    transform: translateX(4px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--wood-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo img {
    height: 28px;
    width: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.875rem;
    color: #94A3B8;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
    .homepage-container {
        grid-template-columns: 240px 1fr 280px;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .homepage-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }

    .sidebar-left,
    .sidebar-right {
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    /* Mobile order: Articles -> Editor's Picks -> Games */
    .main-content {
        order: 1;
    }

    .sidebar-right {
        order: 2;
    }

    .sidebar-left {
        order: 3;
    }
}

@media (max-width: 768px) {
    .brand-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .user-actions {
        justify-content: center;
    }

    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 0.85rem;
    }

    .homepage-container {
        padding: 0 1rem;
    }

    .article-image {
        height: 250px;
    }

    .article-title {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Authentication Pages Styles
   =========================== */

.auth-page {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: #ffffff;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-logo {
    height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 1.25rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.validation-error {
    display: block;
    color: #dc143c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.validation-summary {
    background: rgba(220, 20, 60, 0.1);
    border: 1px solid #dc143c;
    border-radius: 8px;
    padding: 1rem;
    color: #dc143c;
    font-size: 0.875rem;
}

.validation-summary ul {
    margin: 0;
    padding-left: 1.5rem;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    margin: -0.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #0a0a0a;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc143c;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: #dc143c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.btn-submit:hover {
    background: #b91030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: -0.5rem;
}

.auth-link-small {
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-link-small:hover {
    color: #dc143c;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.auth-footer-text {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

.auth-link {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: #ff4757;
    text-decoration: underline;
}

/* Auth Page Responsive */
@media (max-width: 640px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .auth-page {
        padding: 2rem 1rem;
    }
}

/* ===========================
   404 / Error Page Styles
   =========================== */

.error-page {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    background: #ffffff;
}

.error-card {
    width: 100%;
    max-width: 480px;
    text-align: center;
}

.error-logo {
    height: 56px;
    width: auto;
    display: block;
    margin: 0 auto 1.5rem;
}

.error-code {
    font-family: 'Oswald', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0a0a0a;
    margin-bottom: 0.75rem;
}

.error-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

@media (max-width: 640px) {
    .error-code {
        font-size: 3.5rem;
    }

    .error-title {
        font-size: 1.5rem;
    }
}

/* ===========================
   Header Logout Form Styles
   =========================== */

.logout-form {
    display: inline;
    margin: 0;
}

.btn-profile {
    background: #dc143c;
    color: #ffffff;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-profile:hover {
    background: #b91030;
}

.logout-form .btn-logout {
    background: #dc143c;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.logout-form .btn-logout:hover {
    background: #b91030;
}

/* ===========================
   Profile Page Styles
   =========================== */

.profile-page {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.profile-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #dc143c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    border: 3px solid #e0e0e0;
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 0.5rem 0;
}

.profile-email {
    color: #666;
    margin: 0 0 0.25rem 0;
}

.profile-joined {
    color: #888;
    font-size: 0.875rem;
    margin: 0 0 1rem 0;
}

.btn-edit-profile {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #dc143c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-edit-profile:hover {
    background: #b91030;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-edit-profile + .btn-edit-profile {
    margin-left: 0.75rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 1rem 0;
}

.profile-bio {
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
}

.profile-bio-empty,
.teams-empty {
    color: #888;
    font-style: italic;
}

.teams-empty a {
    color: #dc143c;
    text-decoration: none;
}

.teams-empty a:hover {
    text-decoration: underline;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.team-badge {
    background: var(--light-gray);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.team-badge:hover {
    border-color: #dc143c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}

.team-name {
    display: block;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 0.25rem;
}

.team-league {
    display: block;
    font-size: 0.875rem;
    color: #666;
}

/* ===========================
   Edit Profile Page Styles
   =========================== */

.edit-profile-page {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.edit-profile-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
}

.btn-back {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.btn-back:hover {
    color: #dc143c;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(0, 200, 0, 0.1);
    border: 1px solid rgba(0, 200, 0, 0.3);
    color: #006600;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    color: #0a0a0a;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-input-file {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.form-help {
    display: block;
    color: #888;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.team-search-wrap {
    position: relative;
}

.team-search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    max-height: 320px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.team-search-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    font-family: inherit;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.team-search-result:last-child {
    border-bottom: none;
}

.team-search-result:hover,
.team-search-result:focus {
    background: #fff5f7;
}

.team-search-result-name {
    color: #0a0a0a;
    font-weight: 600;
}

.team-search-result-meta {
    color: #888;
    font-size: 0.75rem;
    white-space: nowrap;
}

.team-search-empty {
    padding: 0.75rem 1rem;
    color: #888;
    font-style: italic;
    font-size: 0.875rem;
}

.selected-teams-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    min-height: 2.5rem;
}

.selected-teams-list.is-empty::before {
    content: "No favorite teams selected yet.";
    color: #888;
    font-style: italic;
    font-size: 0.875rem;
    padding: 0.5rem 0;
}

.selected-team-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem 0.4rem 0.875rem;
    background: #fff5f7;
    border: 1px solid #dc143c;
    border-radius: 999px;
    font-size: 0.875rem;
    color: #0a0a0a;
}

.selected-team-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    border-radius: 50%;
    color: #dc143c;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
}

.selected-team-chip-remove:hover {
    background: rgba(220, 20, 60, 0.15);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cancel {
    padding: 1rem 2rem;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

/* Profile Page Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar {
        margin: 0 auto;
    }

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

    .team-search-results {
        max-height: 260px;
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* ===========================
   Public Profile / Search Users
   =========================== */

.profile-not-found {
    color: #888;
    font-style: italic;
    margin-bottom: 1rem;
}

.user-search-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0 2rem 0;
}

.user-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.user-result-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light-gray);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.user-result-card:hover {
    border-color: #dc143c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.user-result-username {
    font-weight: 600;
    color: #0a0a0a;
}

.no-user-results {
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
    .user-results-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Admin Pages Styles
   =========================== */

.admin-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.admin-container {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-container-form {
    max-width: 900px;
    margin: 2rem auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #dc143c;
}

.admin-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0;
}

.admin-subtitle {
    color: #666;
    margin: 0.5rem 0 0 0;
}

.btn-admin {
    background: #dc143c;
    color: #ffffff;
}

.btn-admin:hover {
    background: #b91030;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #dc143c 0%, #b91030 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.2);
}

.stat-icon {
    font-size: 3rem;
    filter: brightness(0) invert(1);
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Admin Section */
.admin-section {
    margin-bottom: 2.5rem;
}

.admin-section:last-child {
    margin-bottom: 0;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    background: var(--light-gray);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-card:hover {
    border-color: #dc143c;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.2);
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 0.5rem 0;
}

.action-description {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

/* Data Table */
.articles-table {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.data-table thead {
    background: var(--light-gray);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: #0a0a0a;
    border-bottom: 2px solid #dc143c;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.data-table tbody tr:hover {
    background: #fafafa;
}

.article-link {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
}

.article-link:hover {
    text-decoration: underline;
}

.btn-table-action {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #dc143c;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-table-action:hover {
    background: #b91030;
}

.no-data {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

.no-data a {
    color: #dc143c;
    text-decoration: none;
    font-weight: 600;
}

.no-data a:hover {
    text-decoration: underline;
}

/* Admin Form */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.btn-submit-primary {
    background: #dc143c;
}

.btn-submit-primary:hover {
    background: #b91030;
}

/* Admin Responsive */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .admin-title {
        font-size: 2rem;
    }

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

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

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ========================================
   Article Detail Page Styles
   ======================================== */

.article-page {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 3rem 2rem;
    background: var(--primary-white);
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-tags-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.article-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.article-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.article-page-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.article-page-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.article-page-meta .separator {
    color: #d1d5db;
}

.article-page-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-article-like {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-article-like:hover {
    border-color: #dc2626;
    color: #dc2626;
}

.btn-article-like.liked {
    background: #fee2e2;
    border-color: #dc2626;
    color: #dc2626;
}

.article-like-count {
    font-size: 0.9375rem;
    color: inherit;
}

.btn-article-bookmark {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-article-bookmark:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.btn-article-bookmark.bookmarked {
    background: #dbeafe;
    border-color: #2563eb;
    color: #2563eb;
}

.author-avatar-link {
    display: inline-flex;
    line-height: 0;
}

.author-avatar,
.author-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.author-avatar {
    object-fit: cover;
    display: block;
}

.author-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.author-link {
    color: inherit;
    text-decoration: none;
}

.author-link:hover {
    color: #dc2626;
    text-decoration: underline;
}

.article-images {
    margin-bottom: 2rem;
}

.article-page-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.article-page-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--text-primary);
    margin-bottom: 3rem;
}

.article-page-content p {
    margin-bottom: 1rem;
}

.article-page-content p:last-child {
    margin-bottom: 0;
}

.article-footer {
    border-top: 2px solid #e5e7eb;
    padding-top: 2rem;
    margin-bottom: 3rem;
}

.article-tags {
    margin-bottom: 1.5rem;
}

.article-tags .tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
    text-transform: capitalize;
}

.article-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.article-tags-inline .tag {
    display: inline-block;
    background: #dc143c;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Tags Checkbox Grid */
.tags-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #f3f4f6;
    border-color: #dc143c;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #dc143c;
}

.checkbox-label span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.checkbox-label input[type="checkbox"]:checked+span {
    color: #dc143c;
    font-weight: 600;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-share span {
    color: #6b7280;
    font-weight: 500;
}

.share-btn {
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #374151;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s;
}

.share-btn:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Comments Section */
.comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 2px solid #e5e7eb;
}

.comments-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2rem;
}

/* Comment Form */
.comment-form-container {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.comment-form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1.5rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form .form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.comment-form .form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.comment-form .form-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.comment-form .btn-submit {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .btn-submit:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Login Prompt */
.login-prompt {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.login-prompt p {
    margin: 0;
    font-size: 1.1rem;
    color: #6b7280;
}

.login-prompt a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.comments-list > .comment {
    border-bottom: 1px solid #e5e7eb;
}

.comments-list > .comment:last-child {
    border-bottom: none;
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 0;
    transition: background 0.2s ease;
}

.comment:hover {
    background: #fafafa;
}

.comment-avatar-wrap {
    flex-shrink: 0;
}

.comment-avatar,
.comment-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.comment-avatar {
    object-fit: cover;
    display: block;
}

.comment-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
}

.comment-body {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-weight: 700;
    color: #111827;
    font-size: 0.9375rem;
    text-decoration: none;
}

a.comment-author:hover {
    color: #dc2626;
    text-decoration: underline;
}

.comment-avatar-wrap a {
    display: block;
    line-height: 0;
}

.comment-date {
    color: #9ca3af;
    font-size: 0.8125rem;
}

.comment-content {
    color: #1f2937;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.comment-actions {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.btn-reply,
.btn-delete,
.btn-like {
    background: transparent;
    border: none;
    color: #6b7280;
    padding: 0.375rem 0.625rem;
    margin-left: -0.625rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-reply:hover {
    background: #f3f4f6;
    color: #111827;
}

.btn-delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-like:hover {
    background: #fee2e2;
    color: #dc2626;
}

.btn-like.liked {
    color: #dc2626;
}

.like-count {
    font-size: 0.8125rem;
    color: inherit;
}

.like-count-display {
    color: #9ca3af;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Replies get a smaller avatar to reinforce the visual hierarchy. */
.comment.reply .comment-avatar,
.comment.reply .comment-avatar-placeholder {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
}

/* Reply Form */
.reply-form-container {
    margin-top: 1.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.reply-form .form-group {
    margin-bottom: 1rem;
}

.reply-form-actions {
    display: flex;
    gap: 1rem;
}

.btn-submit-sm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-sm:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
}

.btn-cancel {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Nested Replies */
.replies-container {
    margin-top: 1.5rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 3px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment.reply {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
}

/* Reduce indent for very deep nesting (depth 4+) */
.comment[data-depth="4"] .replies-container,
.comment[data-depth="5"] .replies-container,
.comment[data-depth="6"] .replies-container,
.comment[data-depth="7"] .replies-container,
.comment[data-depth="8"] .replies-container,
.comment[data-depth="9"] .replies-container {
    margin-left: 1rem;
    padding-left: 1rem;
}

/* Alternate background colors for better visual hierarchy */
.comment[data-depth="2"].reply {
    background: #fafafa;
}

.comment[data-depth="3"].reply {
    background: #f5f5f5;
}

.comment[data-depth="4"].reply,
.comment[data-depth="5"].reply,
.comment[data-depth="6"].reply,
.comment[data-depth="7"].reply,
.comment[data-depth="8"].reply,
.comment[data-depth="9"].reply {
    background: #f0f0f0;
}

.no-comments {
    text-align: center;
    color: #6b7280;
    font-size: 1.1rem;
    padding: 3rem 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comments-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .comments-title {
        font-size: 1.5rem;
    }

    .comment-form-container {
        padding: 1.5rem;
    }

    .comment {
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .comment-avatar,
    .comment-avatar-placeholder {
        width: 36px;
        height: 36px;
        font-size: 0.9375rem;
    }

    .comment.reply .comment-avatar,
    .comment.reply .comment-avatar-placeholder {
        width: 30px;
        height: 30px;
        font-size: 0.8125rem;
    }

    .replies-container {
        margin-left: 1rem;
        padding-left: 1rem;
    }

    /* On mobile, reduce indent even more for deep nesting */
    .comment[data-depth="3"] .replies-container,
    .comment[data-depth="4"] .replies-container,
    .comment[data-depth="5"] .replies-container,
    .comment[data-depth="6"] .replies-container,
    .comment[data-depth="7"] .replies-container,
    .comment[data-depth="8"] .replies-container,
    .comment[data-depth="9"] .replies-container {
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment-actions {
        flex-wrap: wrap;
    }

    .reply-form-actions {
        flex-direction: column;
    }

    .btn-submit-sm,
    .btn-cancel {
        width: 100%;
    }
}

/* ===================================
   Comment Form Respond Container
   Maps WordPress's auto-generated .comment-respond
   wrapper to the existing .comment-form-container
   visual treatment.
   =================================== */

.comment-respond {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

/* Tighter styling when the form is inline (replying to a comment). */
.comment .comment-respond {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 0;
    margin-top: 1.5rem;
}

/* ===================================
   Sport Archive Layout - Two Columns
   =================================== */

.sport-archive-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 992px) {
    .sport-archive-container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .sport-archive-container {
        padding: 0 1rem;
    }
}

/* ===================================
   Pagination
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--primary-white);
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    background: var(--light-gray);
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pagination .page-numbers.current {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: var(--primary-white);
}

/* ===================================
   Animations
   =================================== */

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}