/* ===================================
   Hoops Sports Site - Main Stylesheet
   Author: Frontend Developer
   Description: Complete styling for sports event page
   =================================== */

/* ===================================
   CSS Variables & Custom Properties
   =================================== */
:root {
    /* Color Palette */
    --primary-orange: #FF5722;
    --primary-orange-hover: #E64A19;
    --dark-brown: #2B1810;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --border-gray: #DDDDDD;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --black: #000000;
    --success-green: #4CAF50;
    --success-green-hover: #45a049;
    
    /* Typography */
    --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    
    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-md: 1.125rem;     /* 18px */
    --font-size-lg: 1.25rem;      /* 20px */
    --font-size-xl: 1.5rem;       /* 24px */
    --font-size-2xl: 2rem;        /* 32px */
    --font-size-3xl: 2.5rem;      /* 40px */
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;         /* 8px */
    --spacing-sm: 1rem;           /* 16px */
    --spacing-md: 2rem;           /* 32px */
    --spacing-lg: 3rem;           /* 48px */
    --spacing-xl: 4rem;           /* 64px */
    --spacing-2xl: 6rem;          /* 96px */
    
    /* Layout */
    --container-width: 1200px;
    --container-padding: 2rem;
    --header-height: 80px;
    
    /* Border & Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 50%;
    --border-width: 1px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 900;
    --z-modal: 1000;
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-medium);
    line-height: 1.3;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-orange);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Layout Components
   =================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

/* ===================================
   Header Styles
   =================================== */
.header {
    background-color: var(--white);
    padding: var(--spacing-sm) 0;
    border-bottom: var(--border-width) solid var(--medium-gray);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: box-shadow var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: var(--text-dark);
    text-decoration: none;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
    width: auto;
}

.logo:hover {
    color: var(--primary-orange);
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.main-nav li {
    position: relative;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: var(--font-weight-regular);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    display: inline-block;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-orange);
    transition: width var(--transition-base);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-orange);
}

.main-nav i {
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.phone {
    color: var(--text-gray);
    font-size: 0.9rem;
    white-space: nowrap;
}

.phone i {
    margin-right: 0.5rem;
    color: var(--primary-orange);
}

/* Primary Button */
.btn-primary {
    background-color: var(--primary-orange);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-weight-medium);
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: calc(var(--z-sticky) + 1);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===================================
   Page Title Section
   =================================== */
.page-title {
    background-color: var(--light-gray);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-title h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    margin: 0;
}

/* ===================================
   Main Content Area
   =================================== */
.main-content {
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
}

/* ===================================
   Score Card
   =================================== */
.score-card {
    background-color: var(--light-gray);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.score-card .team {
    text-align: center;
    flex: 1;
}

.score-card .team img {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    object-fit: contain;
}

.score-card .team h3 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    margin: 0;
}

.score-details {
    text-align: center;
    flex: 1;
}

.score-details .date {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: var(--spacing-xs);
}

.score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.score-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    line-height: 1;
}

.separator {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: var(--font-weight-light);
}

.status {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   Content Sections
   =================================== */
.recap-section,
.video-section,
.details-section,
.venue-section,
.results-section,
.rosters-section {
    margin-bottom: var(--spacing-lg);
}

/* Section Headers */
.recap-section h2,
.section-header {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-sm);
}

/* Recap Text */
.recap-section p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: var(--font-size-base);
}

/* ===================================
   Video Section
   =================================== */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius-sm);
    background-color: var(--black);
    box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   Tables - Details & Results
   =================================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: var(--spacing-md);
    border-radius: var(--border-radius-sm);
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange-hover);
}

.details-table,
.results-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.details-table thead,
.results-table thead {
    background-color: var(--light-gray);
}

.details-table th,
.details-table td,
.results-table th,
.results-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    border: var(--border-width) solid var(--border-gray);
}

.details-table th,
.results-table th {
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.details-table td,
.results-table td {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.results-table .team-name {
    text-align: left;
    font-weight: var(--font-weight-medium);
}

.team-row.vipers .team-name {
    color: var(--primary-orange);
}

.team-row.wildcats .team-name {
    color: var(--text-dark);
}

/* ===================================
   Venue Section
   =================================== */
.venue-name {
    font-weight: var(--font-weight-medium);
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    font-size: var(--font-size-md);
}

.map-wrapper {
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-md);
    height: 300px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.venue-address {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* ===================================
   Team Rosters Section
   =================================== */
.rosters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.roster-column .section-header {
    margin-bottom: var(--spacing-sm);
}

.roster-list {
    background-color: var(--light-gray);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-sm);
}

.roster-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: var(--border-width) solid var(--medium-gray);
}

.roster-list li:last-child {
    border-bottom: none;
}

.roster-list .number {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--text-light);
    min-width: 30px;
    text-align: center;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.player-name {
    font-weight: var(--font-weight-medium);
    color: var(--primary-orange);
    font-size: var(--font-size-base);
}

.player-position {
    font-size: var(--font-size-sm);
    color: var(--text-gray);
}

.coach-info,
.additional-coach {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.8;
    padding: var(--spacing-sm);
    background-color: var(--white);
    border-radius: var(--border-radius-sm);
}

.coach-info strong,
.additional-coach strong {
    color: var(--text-dark);
    font-weight: var(--font-weight-medium);
}

.coach-position {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* ===================================
   Sticky Sidebar (Right)
   =================================== */
.sticky-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: var(--z-fixed);
}

.sidebar-icon {
    background-color: var(--primary-orange);
    color: var(--white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.sidebar-icon:last-child {
    border-bottom: none;
}

.sidebar-icon:hover {
    background-color: var(--primary-orange-hover);
    padding-right: 15px;
    box-shadow: var(--shadow-lg);
}

/* Sidebar Tooltip */
.sidebar-tooltip {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--dark-brown);
    color: var(--white);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    margin-right: 10px;
    pointer-events: none;
    opacity: 0;
    animation: fadeInTooltip 0.2s ease forwards;
}

@keyframes fadeInTooltip {
    to {
        opacity: 1;
    }
}

/* ===================================
   Chat Widget (Left Bottom)
   =================================== */
.chat-widget {
    position: fixed;
    left: var(--spacing-sm);
    bottom: var(--spacing-md);
    z-index: var(--z-fixed);
}

.chat-button {
    background-color: var(--success-green);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: var(--font-weight-medium);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.chat-button:hover {
    background-color: var(--success-green-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.chat-button i {
    font-size: var(--font-size-md);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: var(--dark-brown);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column h4 {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
}

.footer-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
    display: inline-block;
}

.footer-column a:hover {
    color: var(--primary-orange);
    transform: translateX(3px);
}

.footer-column ul li {
    margin-bottom: var(--spacing-xs);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    transform: none;
}

.social-icons a:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--primary-orange);
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
        --container-padding: 1.5rem;
        --spacing-xl: 3rem;
    }
    
    .main-nav ul {
        gap: var(--spacing-sm);
    }
    
    .main-nav a {
        font-size: 0.9rem;
    }
    
    .header-actions .phone {
        font-size: 0.85rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .rosters-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title h1 {
        font-size: var(--font-size-2xl);
    }
}

/* ===================================
   Responsive Design - Mobile Large
   =================================== */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    /* Header Mobile */
    .header-content {
        gap: var(--spacing-sm);
    }
    
    .logo {
        font-size: var(--font-size-base);
    }
    
    .logo img {
        height: 28px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        z-index: var(--z-dropdown);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .main-nav li {
        border-bottom: var(--border-width) solid var(--medium-gray);
        width: 100%;
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        width: 100%;
    }
    
    .main-nav a::after {
        display: none;
    }
    
    .header-actions .phone {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Page Title */
    .page-title {
        padding: var(--spacing-md) 0;
    }
    
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    /* Score Card */
    .score-card {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }
    
    .score-card .team img {
        width: 60px;
        height: 60px;
    }
    
    .score-card .team h3 {
        font-size: var(--font-size-base);
    }
    
    .score-number {
        font-size: var(--font-size-2xl);
    }
    
    /* Tables */
    .details-table,
    .results-table {
        font-size: var(--font-size-sm);
    }
    
    .details-table th,
    .details-table td,
    .results-table th,
    .results-table td {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    /* Video */
    .video-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile */
    }
    
    /* Map */
    .map-wrapper {
        height: 250px;
    }
    
    /* Rosters */
    .rosters-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
    
    .roster-list {
        padding: var(--spacing-sm);
    }
    
    .roster-list .number {
        font-size: var(--font-size-base);
        min-width: 25px;
    }
    
    .player-name {
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
    
    /* Sticky Sidebar - Hide on Mobile */
    .sticky-sidebar {
        display: none;
    }
    
    /* Chat Widget - Adjust for Mobile */
    /* Chat Widget - Adjust for Mobile */
    .chat-widget {
        bottom: var(--spacing-sm);
        left: var(--spacing-sm);
    }
    
    .chat-button {
        width: 50px;
        height: 50px;
        border-radius: var(--border-radius-full);
        padding: 0;
        justify-content: center;
    }
    
    .chat-button span {
        display: none;
    }
    
    .chat-button i {
        font-size: var(--font-size-lg);
    }
}

/* ===================================
   Responsive Design - Mobile Small
   =================================== */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.75rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
    }
    
    body {
        font-size: 0.95rem;
    }
    
    /* Header */
    .header {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 0.95rem;
    }
    
    .logo img {
        height: 24px;
    }
    
    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Page Title */
    .page-title {
        padding: var(--spacing-md) 0;
    }
    
    .page-title h1 {
        font-size: 1.5rem;
    }
    
    /* Main Content */
    .main-content {
        padding: var(--spacing-md) 0;
    }
    
    /* Score Card */
    .score-card {
        padding: var(--spacing-sm);
    }
    
    .score-card .team img {
        width: 50px;
        height: 50px;
    }
    
    .score-number {
        font-size: 1.75rem;
    }
    
    .separator {
        font-size: 1.25rem;
    }
    
    /* Section Headers */
    .recap-section h2,
    .section-header {
        font-size: var(--font-size-base);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    /* Tables */
    .results-table {
        font-size: 0.75rem;
    }
    
    .details-table th,
    .details-table td,
    .results-table th,
    .results-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.7rem;
    }
    
    /* Video */
    .video-wrapper {
        padding-bottom: 80%;
    }
    
    /* Map */
    .map-wrapper {
        height: 200px;
    }
    
    /* Roster */
    .roster-list {
        padding: var(--spacing-xs);
    }
    
    .roster-list li {
        padding: var(--spacing-xs) 0;
    }
    
    .roster-list .number {
        font-size: 0.9rem;
        min-width: 20px;
    }
    
    .player-name {
        font-size: 0.85rem;
    }
    
    .player-position {
        font-size: 0.75rem;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }
    
    .footer-column h4 {
        font-size: var(--font-size-base);
    }
    
    .footer-column p,
    .footer-column a {
        font-size: 0.85rem;
    }
    
    .footer-logo {
        font-size: var(--font-size-base);
    }
    
    .footer-logo img {
        height: 28px;
    }
    
    .social-icons a {
        width: 36px;
        height: 36px;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
    }
    
    /* Chat Button */
    .chat-button {
        width: 45px;
        height: 45px;
    }
    
    .chat-button i {
        font-size: var(--font-size-base);
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Margin Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--spacing-xs); }
.ml-2 { margin-left: var(--spacing-sm); }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--spacing-xs); }
.mr-2 { margin-right: var(--spacing-sm); }

/* Padding Utilities */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

/* Flex Utilities */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

/* Width Utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* Visibility Utilities */
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* Overflow Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-scroll { overflow: scroll; }

/* ===================================
   Accessibility Features
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard users */
*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

/* ===================================
   Loading States
   =================================== */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--light-gray);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Animation Classes
   =================================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-down {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    /* Hide non-essential elements */
    .header,
    .sticky-sidebar,
    .chat-widget,
    .footer,
    .mobile-menu-toggle,
    .btn-primary {
        display: none !important;
    }
    
    /* Reset colors for print */
    body {
        background: white;
        color: black;
    }
    
    .main-content {
        padding: 0;
    }
    
    /* Expand containers */
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    /* Remove shadows and borders */
    .score-card,
    .video-wrapper,
    .details-table,
    .results-table {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    /* Page breaks */
    .score-card,
    .details-section,
    .results-section,
    .rosters-section {
        page-break-inside: avoid;
    }
    
    /* Ensure tables fit */
    table {
        font-size: 10pt;
    }
    
    /* Show URLs for links */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-style: italic;
    }
    
    /* Don't show URLs for internal links */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }
}

/* ===================================
   Dark Mode Support (Optional)
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --background-color: #1a1a1a;
        --text-dark: #e0e0e0;
        --text-gray: #b0b0b0;
        --light-gray: #2a2a2a;
        --medium-gray: #3a3a3a;
        --border-gray: #404040;
        --white: #1a1a1a;
    }
    
    body {
        background-color: var(--background-color);
        color: var(--text-dark);
    }
    
    .header,
    .score-card,
    .roster-list {
        background-color: var(--light-gray);
    }
    
    .logo img,
    .footer-logo img {
        filter: brightness(0) invert(1);
    }
    */
}

/* ===================================
   Reduced Motion Support
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   High Contrast Mode Support
   =================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-orange: #FF6B3D;
        --text-dark: #000000;
        --border-width: 2px;
    }
    
    .btn-primary,
    .sidebar-icon,
    .chat-button {
        border: 2px solid currentColor;
    }
}

/* ===================================
   Custom Scrollbar (Webkit Browsers)
   =================================== */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--text-gray);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-dark);
}

/* ===================================
   Selection Styles
   =================================== */
::selection {
    background-color: var(--primary-orange);
    color: var(--white);
}

::-moz-selection {
    background-color: var(--primary-orange);
    color: var(--white);
}

/* ===================================
   Form Elements (Future Use)
   =================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: var(--border-width) solid var(--border-gray);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    color: var(--text-dark);
    background-color: var(--white);
    transition: var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

input.error,
textarea.error {
    border-color: #f44336;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--text-dark);
}

/* ===================================
   End of Stylesheet
   =================================== */