/*
 Theme Name:   HuskiesChild
 Theme URI:    https://bautzener-huskies.de
 Description:  Child-Theme für die Bautzener Huskies Homepage - basierend auf Twenty Twenty-Four
 Author:       Huskies Team
 Author URI:   https://bautzener-huskies.de
 Template:     twentytwentyfour
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  huskieschild
*/

/* ============================================
   BAUTZENER HUSKIES - CI FARBEN & DESIGN
   ============================================ */

/* CSS Variables - CI Farben */
:root {
    /* Primary Colors */
    --color-primary: #00D4FF;      /* Ice Blue */
    --color-secondary: #0A0A0A;    /* Deep Black */
    --color-accent: #FF6B35;       /* Electric Orange */
    --color-light: #F8F9FA;        /* Snow White */
    --color-carbon: #1C1C1C;      /* Carbon */
    
    /* Semantic Colors */
    --color-text: #F8F9FA;
    --color-text-dark: #0A0A0A;
    --color-bg-dark: #0A0A0A;
    --color-bg-carbon: #1C1C1C;
    --color-border: rgba(0, 212, 255, 0.3);
    
    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.3s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Z-Index Layers */
    --z-overlay: 1000;
    --z-mobile-menu: 1001;
    --z-header: 100;
}

/* TASK 3: Dark Mode Variables */
:root,
[data-theme="light"] {
    --bg-primary: #F8F9FA;
    --bg-surface: #FFFFFF;
    --bg-carbon: #1C1C1C;
    --text-primary: #0A0A0A;
    --text-secondary: #4A4A4A;
    --accent: #FF6B35;
    --primary: #00D4FF;
    --color-secondary: #F8F9FA;
    --color-text: #0A0A0A;
    --color-light: #0A0A0A;
}

[data-theme="dark"] {
    --bg-primary: #0A0A0A;
    --bg-surface: #1C1C1C;
    --bg-carbon: #252525;
    --text-primary: #F8F9FA;
    --text-secondary: #B0B0B0;
    --accent: #FF6B35;
    --primary: #00D4FF;
    --color-secondary: #0A0A0A;
    --color-text: #F8F9FA;
    --color-light: #F8F9FA;
    --color-carbon: #1C1C1C;
}

/* ============================================
   BASE STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; font-weight: 900; }
h2 { font-size: 2.5rem; font-weight: 800; }
h3 { font-size: 2rem; font-weight: 700; }
h4 { font-size: 1.5rem; font-weight: 600; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

/* ============================================
   HEADER STYLES - 3 EBENEN
   ============================================ */

/* Topline - Sponsor Logos */
.topline {
    background-color: var(--bg-surface);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.topline-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-lg);
}

.topline-sponsors {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.topline-sponsor {
    height: 30px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: var(--transition-fast);
}

.topline-sponsor:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* Main Navigation */
.site-header {
    background-color: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    border-bottom: 2px solid var(--color-primary);
    transition: background-color 0.3s ease;
}

.header-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
}

.site-logo img {
    height: 60px;
    width: auto;
}

.main-navigation ul {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-sm) 0;
    display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--color-primary);
}

/* Dropdown Menu */
.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-primary);
    min-width: 200px;
    padding: var(--space-sm) 0;
    list-style: none;
    z-index: 1001;
    transition: background-color 0.3s ease;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li a {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
}

/* ============================================
   TASK 3: DARK MODE TOGGLE
   ============================================ */

.theme-toggle {
    background: none;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    margin-left: var(--space-md);
}

.theme-toggle:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

.theme-toggle:hover svg {
    color: var(--color-secondary);
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-toggle .icon-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* ============================================
   TASK 2: MOBILE NAVIGATION
   ============================================ */

/* Hamburger Icon - 44x44px Touch Target */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: calc(var(--z-mobile-menu) + 1);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* Hamburger Animation */
.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Navigation Panel */
.mobile-navigation {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 80%;
    height: 100%;
    background-color: var(--bg-surface);
    z-index: var(--z-mobile-menu);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

.mobile-navigation.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-close:hover {
    color: var(--color-primary);
}

.mobile-menu-content {
    padding: calc(44px + var(--space-xl)) var(--space-lg) var(--space-lg);
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--color-border);
}

.mobile-nav-menu a {
    display: block;
    padding: var(--space-md) 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
}

.mobile-nav-menu a:hover {
    color: var(--color-primary);
}

.mobile-nav-menu .sub-menu {
    list-style: none;
    padding-left: var(--space-lg);
    display: none;
}

.mobile-nav-menu .sub-menu.active {
    display: block;
}

.mobile-nav-menu .sub-menu a {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

/* Submenu Toggle Button */
.submenu-toggle {
    background: none;
    border: none;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    float: right;
    color: var(--text-primary);
}

.submenu-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.submenu-toggle.active svg {
    transform: rotate(180deg);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-surface) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-logo {
    width: 300px;
    height: auto;
    margin-bottom: var(--space-xl);
    filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5));
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.7)); }
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero-slogan span {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    opacity: 0.9;
}

.hero-cta {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.4);
}

.hero-cta:hover {
    background-color: var(--accent);
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 107, 53, 0.4);
}

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
    padding: var(--space-3xl) var(--space-lg);
    transition: background-color 0.3s ease;
}

.section-dark {
    background-color: var(--bg-surface);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: calc(-1 * var(--space-lg));
    margin-bottom: var(--space-2xl);
}

/* ============================================
   PLAYER SLIDER
   ============================================ */

.players-section {
    background-color: var(--bg-primary);
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.players-slider {
    display: flex;
    gap: var(--space-lg);
    overflow-x: auto;
    padding: var(--space-lg) 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.players-slider::-webkit-scrollbar {
    height: 8px;
}

.players-slider::-webkit-scrollbar-track {
    background: var(--bg-surface);
    border-radius: 4px;
}

.players-slider::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

.player-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.player-card:hover {
    transform: scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.player-card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background-color: var(--bg-surface);
}

.player-card-placeholder {
    width: 100%;
    height: 260px;
    display: block;
    background-color: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.player-card-placeholder .player-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.player-card-info {
    padding: var(--space-md);
    text-align: center;
}

.player-card-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.player-card-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-card-position {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* ============================================
   GAME SCHEDULE SECTION
   ============================================ */

.schedule-section {
    background-color: var(--bg-surface);
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-surface) 100%);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
}

.game-date {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.game-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.game-team {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.game-team.away {
    text-align: right;
}

.game-vs {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
    padding: 0 var(--space-md);
}

.game-venue {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   STATISTICS SECTION
   ============================================ */

.stats-section {
    background-color: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* SportPress Table Overrides */
.sp-table-wrapper {
    overflow-x: auto;
}

.sp-data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
}

.sp-data-table th {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: var(--space-md);
    text-align: left;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.sp-data-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    color: var(--text-primary);
}

.sp-data-table tr:hover td {
    background-color: rgba(0, 212, 255, 0.1);
}

/* ============================================
   NEWS SECTION
   ============================================ */

.news-section {
    background-color: var(--bg-surface);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: var(--bg-surface);
}

.news-card-content {
    padding: var(--space-lg);
}

.news-card-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.news-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.news-card-link {
    display: inline-block;
    margin-top: var(--space-md);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.news-card-link:hover {
    color: var(--accent);
}

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

.site-footer {
    background-color: var(--bg-primary);
    border-top: 3px solid var(--color-primary);
    transition: background-color 0.3s ease;
}

.footer-sponsors {
    background-color: var(--bg-surface);
    padding: var(--space-xl) var(--space-lg);
    transition: background-color 0.3s ease;
}

.footer-sponsors-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
}

.footer-sponsor img {
    height: 50px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition-fast);
}

.footer-sponsor:hover img {
    opacity: 1;
    filter: grayscale(0%);
}

.footer-main {
    padding: var(--space-2xl) var(--space-lg);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
}

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

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: var(--text-primary);
    opacity: 0.8;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* TASK 1: Social Links - Horizontal, Font Awesome 6, Hover Effects */
.footer-social {
    display: flex;
    flex-direction: row;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.footer-social a.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--bg-surface);
    border-radius: 50%;
    color: var(--color-primary);
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.footer-social a.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-social a.social-icon:hover {
    transform: scale(1.1);
    color: #00D4FF;
    background-color: var(--bg-carbon);
}

.footer-social a.social-icon.instagram:hover { color: #E1306C; }
.footer-social a.social-icon.youtube:hover { color: #FF0000; }
.footer-social a.social-icon.facebook:hover { color: #1877F2; }
.footer-social a.social-icon.tiktok:hover { color: #000000; }

/* Footer Bottom */
.footer-bottom {
    background-color: var(--bg-surface);
    padding: var(--space-lg);
    text-align: center;
    transition: background-color 0.3s ease;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-legal {
    display: flex;
    gap: var(--space-lg);
}

.footer-legal a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.2s ease-in-out;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--color-light);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

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

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* ============================================
   SPORTSPRESS OVERRIDES
   ============================================ */

.sp-template-event-list .sp-event,
.sp-template-event-blocks .sp-event {
    background-color: var(--bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.sp-template-event-list .sp-event:hover,
.sp-template-event-blocks .sp-event:hover {
    border-color: var(--color-primary);
}

.sp-event-date {
    color: var(--color-primary);
    font-family: var(--font-mono);
}

.sp-event-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.sp-event-results {
    color: var(--accent);
    font-weight: 700;
}

/* Player List */
.sp-template-player-list .sp-player {
    background-color: var(--bg-surface);
    border: 1px solid var(--color-border);
}

/* ============================================
   TASK 4: MICRO-ANIMATIONS
   ============================================ */

/* Prefers-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;
    }
}

/* GPU Accelerated Animations */
.scroll-reveal,
.site-header,
.hero-section,
.topline,
.player-card,
.news-card,
.game-card,
.btn {
    will-change: transform, opacity;
}

/* Page Load Animation */
.site-header,
.topline {
    opacity: 0;
    transform: translateY(20px);
}

.hero-section {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

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

@media (max-width: 768px) {
    .hero-slogan {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        width: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation {
        display: none;
    }
    
    /* TASK 2: Show Mobile Menu Toggle */
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .theme-toggle {
        position: absolute;
        right: 70px;
    }
    
    .header-nav {
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero-slogan {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .section {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .player-card {
        flex: 0 0 180px;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--accent); }
.text-light { color: var(--color-light); }

.bg-dark { background-color: var(--color-secondary); }
.bg-carbon { background-color: var(--color-carbon); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.py-2xl { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
/* ============================================
   TEAM PAGE STYLES
   ============================================ */

.team-page {
    min-height: 100vh;
}

/* Team Header */
.team-header-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--bg-carbon) 100%);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.team-page-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.team-page-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    position: relative;
    z-index: 1;
}

/* Team Sections */
.team-section {
    padding: var(--space-3xl) 0;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.team-section.section-alt {
    background-color: var(--bg-surface);
}

.team-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: var(--space-2xl);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-section .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--accent));
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

.team-section .title-count {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Staff Grid (Management/Trainer/Captains) */
.team-staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.staff-card {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
    transform: scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}

.staff-coming-soon .staff-placeholder-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.6;
}

.staff-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.staff-position {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* Team Player Card */
.team-player-card {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.team-player-card:hover {
    transform: scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

.team-player-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background-color: var(--bg-surface);
}

.team-player-placeholder {
    width: 100%;
    height: 260px;
    display: block;
    background-color: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.team-player-number-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    z-index: 2;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.team-player-info {
    padding: var(--space-md);
    text-align: center;
}

.team-player-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.team-player-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: var(--space-xs);
}

.team-player-position {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .team-page-title {
        font-size: 2.5rem;
    }
    
    .team-section .section-title {
        font-size: 1.8rem;
    }
    
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--space-md);
    }
    
    .team-player-image,
    .team-player-placeholder {
        height: 200px;
    }
    
    .team-player-number {
        font-size: 2rem;
    }
}
