/* Main Stylesheet for Team Crew Basketball League */

/* Variables */
:root {
    /* Brand colors - consistent across themes */
    --primary-color: #E63946; /* Red */
    --secondary-color: #000000; /* Black */
    --accent-color: #FFFFFF; /* White */
    
    /* Neutral base colors */
    --light-bg: #F7F7F7;
    --dark-bg: #121212;
    --text-light: #FFFFFF;
    --text-dark: #000000;
    
    /* Theme colors - Light mode defaults */
    --bg-color: var(--light-bg);
    --card-bg: #FFFFFF;
    --text-color: var(--text-dark);
    --text-muted: #666666;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(0, 0, 0, 0.9);
    --nav-scrolled: var(--secondary-color);
    --section-bg: var(--light-bg);
    --section-alternate: #EFEFEF;
    --border-color: #e1e1e1;
    --input-bg: #FFFFFF;
    --input-border: #DDDDDD;
    --input-text: #333333;
    --input-placeholder: #999999;
    
    /* Common variables */
    --header-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --border-radius: 5px;
    --transition: all 0.3s ease-in-out;
}

/* Dark mode variables */
/* Dark mode removed as requested */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    opacity: 1;
    animation: fadeIn 0.5s ease-in-out;
}

/* Page transition effects */
body {
    transition: opacity 0.3s ease-in-out;
}

body.page-transitioning {
    opacity: 0.6;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    display: inline-block;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
}

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

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

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

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

.btn-view-more {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 12px 30px;
    margin-top: 20px;
    border: 2px solid var(--secondary-color);
}

.btn-view-more:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

/* Section Button Container Styles */
.text-center {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.text-center .btn {
    min-width: 200px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--primary-color);
}

.navbar.scrolled {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
}

.navbar .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

/* Logo styling */
.navbar-logo {
    flex-shrink: 0;
    margin-right: 20px;
    display: block;
}

.navbar-logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Horizontal Navigation */
.horizontal-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.nav-tab {
    display: block;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 15px;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 2px;
    text-align: center;
}

.nav-tab:hover, 
.nav-tab.active {
    color: white;
    background-color: var(--primary-color);
    border-radius: 5px;
}

.nav-tab.active {
    background-color: var(--primary-color);
}



/* Remove ALL legacy code and potential hamburger menus */
.navbar-toggle,
.navbar-menu,
.navbar-item,
.navbar-link,
.navbar-content,
.navbar-toggler,
.navbar-toggler-icon,
.toggle-btn,
.menu-toggle,
.menu-icon,
button[aria-label="Toggle navigation"],
[class*="toggler"],
[class*="hamburger"],
i.fa-bars,
span.fa-bars,
.fa-bars,
button.navbar-toggle {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile Styles - Single Row Navigation */
@media (max-width: 991px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar-logo {
        flex: 0 0 100%;
        margin-bottom: 10px;
        margin-right: 0;
        text-align: center;
    }
    
    .navbar-logo img {
        height: 35px;
        margin: 0 auto;
    }
    
    .horizontal-nav {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .nav-tab {
        font-size: 0.8rem;
        padding: 6px 8px;
        margin: 2px;
    }
}

/* Special mobile adjustments for very small screens */
@media (max-width: 576px) {
    .nav-tab {
        font-size: 0.75rem;
        padding: 5px 6px;
        margin: 1px;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5) 70%, var(--dark-bg)), url('../assets/huddle-team-crew.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    color: var(--text-light);
    overflow: hidden;
    /* Dynamic padding handled by dynamic-spacing.css */
}

.hero-content {
    width: 100%;
    max-width: 1200px;
}

.hero-content h1 {
    font-size: 4rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 2px;
}

.hero-content h1 span {
    display: block;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image-container {
    position: relative;
    height: 450px;
}

/* Featured Tournaments Section */
.featured-tournaments {
    background-color: var(--section-bg);
}

.tournaments-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.games-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.game-card,
.tournament-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    color: var(--text-color);
}

.game-card:hover,
.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Tournament card specific styles */
.tournament-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px;
    text-align: center;
}

.tournament-name {
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
}

.tournament-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tournament-image {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 10px 0;
}

.tournament-image-full {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.tournament-image-link {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.tournament-image-link:hover .tournament-image-full {
    transform: scale(1.05);
}

.tournament-card {
    height: 100%;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    background-color: var(--card-bg);
}

.tournament-card-container {
    margin-bottom: 30px;
}

.tournament-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: var(--text-light);
    padding: 15px;
    text-align: center;
    opacity: 1;
    transition: var(--transition);
}

.tournament-title-overlay h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.tournament-image-link:hover .tournament-title-overlay {
    background-color: rgba(230, 57, 70, 0.9);
}

.tournament-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tournament-date,
.tournament-location {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Upcoming Events Section */
.upcoming-events {
    background-color: #FFFFFF;
    color: var(--text-dark);
    padding: 80px 0 60px 0; /* Increased top padding to make transition look better */
}

.upcoming-events .section-header h2 {
    color: var(--text-dark);
}

/* Event Thumbnails for Homepage */
.event-thumbnail {
    display: flex;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.event-thumbnail:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.event-thumbnail-image {
    flex: 0 0 120px;
    height: 120px;
}

.event-thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-thumbnail-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-thumbnail-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-light);
}

.event-thumbnail-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.event-thumbnail-details i {
    width: 16px;
    margin-right: 5px;
    color: var(--primary-color);
}

/* Event Cards - Unified style for events page */
.event-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: visible;
    height: 100%;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.event-image {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 340px;
    height: 215px;
    z-index: 2;
    background-color: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.event-status {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 4;
}

.event-status.upcoming {
    background-color: var(--primary-color);
    color: white;
}

.event-status.live {
    background-color: #28a745;
    color: white;
}

.event-status-left {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 3;
}

.event-status-left.upcoming {
    background-color: var(--primary-color);
    color: white;
}

.event-status-left.live {
    background-color: #28a745;
    color: white;
}

.event-content {
    padding: 20px;
}

.event-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    line-height: 1.2;
}

.event-details {
    margin-bottom: 20px;
}

.event-detail {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.event-detail i {
    width: 16px;
    margin-right: 10px;
    color: var(--primary-color);
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
}

.event-cost {
    font-weight: 700;
    color: var(--primary-color);
}

.event-games {
    color: var(--text-muted);
}

/* Loading and Error States */
.loading-state,
.no-events-message,
.error-message {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-events-icon,
.error-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.no-events-message h3,
.error-message h3 {
    color: var(--text-color);
    margin-bottom: 15px;
}

.no-events-message p,
.error-message p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Highlight effect for event cards when navigated to via hash */
.highlight-event {
    animation: highlight-pulse 2s ease-in-out;
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.7) !important;
}

@keyframes highlight-pulse {
    0% { box-shadow: 0 0 5px rgba(230, 57, 70, 0.5); }
    50% { box-shadow: 0 0 25px rgba(230, 57, 70, 0.8); }
    100% { box-shadow: 0 0 5px rgba(230, 57, 70, 0.5); }
}

/* Event Image */
.event-image {
    position: relative;
    height: 180px;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
    min-width: 50px;
    border-radius: 5px;
}

.event-month {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
}

.event-day {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

/* Event Content */
.event-content {
    padding: 20px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Event Meta Information */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.event-time, .event-location {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.event-meta i {
    width: 16px;
    margin-right: 8px;
    color: var(--primary-color);
}

.event-excerpt {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Legacy support for older event cards */
.event-details {
    margin-bottom: 15px;
}

.event-detail {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.event-detail i {
    width: 20px;
    margin-right: 10px;
    color: var(--primary-color);
}

/* Buttons */
.btn-event {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    text-decoration: none;
    border: none;
}

.btn-event:hover {
    background-color: var(--primary-dark);
    color: var(--text-light);
}

/* Event Page Styles */
.events-section {
    background-color: var(--section-bg);
    padding: 60px 0;
}

.events-section .section-header p {
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
    color: var(--text-muted);
}

.event-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-filter {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: none;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
}

.btn-filter:hover,
.btn-filter.active {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.event-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.event-actions {
    display: flex;
    gap: 10px;
}

.btn-outline-event {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
    text-decoration: none;
}

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

.event-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../attached_assets/huddle 2_edited_edited.png') no-repeat center center/cover;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.event-cta h2 {
    margin-bottom: 20px;
    color: white;
}

.event-cta p {
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

/* Modal Styles for Event Registration */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 30px auto;
    animation: modalFadeIn 0.3s ease-in-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header .modal-title {
    color: var(--text-color);
    margin: 0;
    font-size: 1.25rem;
}

.modal-header .close-modal {
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    line-height: 1;
}

.modal-header .close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    padding: 20px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

body.modal-open {
    overflow: hidden;
}

/* Tournament Info Styles */
.tournament-info {
    padding: 10px 15px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    transition: var(--transition);
}

.tournament-info:hover {
    background-color: rgba(230, 57, 70, 0.1);
}

.tournament-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.tournament-status {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: rgba(0, 0, 0, 0.1);
}

.tournament-date i,
.tournament-location i {
    color: var(--primary-color);
    width: 20px;
}

.tournament-link {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: 10px;
    transition: var(--transition);
}

.tournament-link:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.game-header {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 15px;
    text-align: center;
}

.game-date {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.game-time {
    font-size: 1.1rem;
    font-weight: 700;
}

.game-body {
    padding: 20px;
    text-align: center;
}

.game-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.game-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.team-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    object-fit: contain;
}

.team-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.game-vs {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0 15px;
}

.game-location {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* League Stats Section */
.league-stats {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.league-stats .section-header h2 {
    color: var(--text-light);
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    height: 100%;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.stat-card h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.stat-leaders {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.leader-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.leader-rank {
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 15px;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

.leader-info {
    flex: 1;
}

.leader-name {
    font-weight: 600;
    font-size: 1rem;
}

.leader-team {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.leader-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Teams Section Preview */
.teams-preview {
    background-color: var(--section-alternate);
}

.team-preview-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    color: var(--text-color);
}

.team-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.team-preview-image {
    height: 200px;
    overflow: hidden;
}

.team-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-preview-card:hover .team-preview-image img {
    transform: scale(1.05);
}

.team-preview-content {
    padding: 20px;
    text-align: center;
}

.team-preview-name {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.team-preview-record {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.team-preview-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-preview-btn:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* Latest News Section */
.latest-news {
    background-color: #FFFFFF;
    border-top: 1px solid #E0E0E0;
}

.news-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: var(--text-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.news-excerpt {
    margin-bottom: 20px;
    flex: 1;
}

.news-read-more {
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    align-self: flex-start;
}

.news-read-more:hover {
    color: var(--secondary-color);
}

/* Gallery Preview */
.gallery-preview {
    background-color: var(--section-alternate);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: white;
    font-size: 2rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 0 0 20px;
}

.footer-top {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0 30px 0;
}

.footer-description {
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.footer-container > div {
    flex: 1;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }
}

.footer-logo {
    font-family: var(--header-font);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-logo span {
    letter-spacing: 1px;
    transition: var(--transition);
}

.footer-logo:hover span {
    color: var(--primary-color);
}

.footer-logo img {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

.footer-about p {
    margin-bottom: 20px;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 10px;
}

.footer-link a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-link a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin-right: 15px;
    color: var(--text-light);
    background-color: var(--primary-color);
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.footer-contact-item > div:last-child {
    color: var(--text-light);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--input-border);
    border-radius: var(--border-radius);
    background-color: var(--input-bg);
    color: var(--input-text);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--input-placeholder);
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-checkbox input {
    width: auto;
    margin-right: 10px;
}

/* Login Page Styles */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../assets/huddle-team-crew.png') no-repeat center center/cover;
    padding: 120px 0 60px;
    text-align: center;
    color: var(--text-light);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--text-light);
    transition: var(--transition);
}

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



/* Members Area Styles */
.members-dashboard {
    padding: 80px 0;
    background-color: var(--section-bg);
}

.dashboard-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    height: 100%;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.5rem;
}

.dashboard-card-title {
    font-size: 1.3rem;
    margin: 0;
    color: var(--text-color);
}

.dashboard-card-content {
    color: var(--text-color);
}

.welcome-banner {
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.welcome-message h2 {
    margin-bottom: 5px;
    color: white;
}

.welcome-message p {
    margin: 0;
    opacity: 0.9;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-left: 20px;
}

/* Message List Styles */
.message-list {
    margin-bottom: 15px;
}

.message-item {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    transition: var(--transition);
}

.message-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.message-item.unread {
    border-left: 3px solid var(--primary-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.message-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.message-preview {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Schedule List Styles */
.schedule-list {
    margin-bottom: 15px;
}

.schedule-item {
    display: flex;
    padding: 12px;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    transition: var(--transition);
}

.schedule-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.schedule-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    padding: 8px;
    width: 60px;
    margin-right: 15px;
}

.schedule-date .day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.schedule-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.schedule-details {
    flex: 1;
}

.schedule-type {
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-color);
}

.schedule-time, .schedule-location {
    font-size: 0.85rem;
    margin: 0 0 2px 0;
    color: var(--text-muted);
}

/* Document List Styles */
.document-list {
    margin-bottom: 15px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.05);
    margin-bottom: 8px;
    transition: var(--transition);
}

.document-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.document-item i {
    margin-right: 12px;
    color: var(--primary-color);
}

.document-name {
    flex: 1;
    font-size: 0.9rem;
}

.document-download {
    color: var(--text-muted);
    transition: var(--transition);
}

.document-download:hover {
    color: var(--primary-color);
}

/* Roster Table Styles */
.roster-table-container {
    overflow-x: auto;
    margin-bottom: 15px;
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
}

.roster-table th,
.roster-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.roster-table th {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.roster-table tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.status-active {
    color: #4CAF50;
    font-size: 0.9rem;
}

.status-injured {
    color: #FFC107;
    font-size: 0.9rem;
}

.status-inactive {
    color: #F44336;
    font-size: 0.9rem;
}

/* Forum Topics Styles */
.forum-topics {
    margin-bottom: 15px;
}

.forum-topic {
    display: flex;
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    transition: var(--transition);
}

.forum-topic:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.topic-info {
    flex: 1;
}

.topic-title {
    font-size: 1rem;
    margin-bottom: 5px;
}

.topic-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.topic-author, .topic-stats {
    margin-right: 15px;
}

.topic-activity {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.forum-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}



.form-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
    padding: 15px;
    font-size: 1rem;
}

.form-success {
    text-align: center;
    padding: 40px 0;
}

.form-success i {
    color: #4CAF50;
    font-size: 3rem;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.form-success p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Enhanced Members Area Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.dashboard-card.wide {
    grid-column: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
}

.card-header h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.card-header .btn {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* Message List Styles */
.message-list {
    display: flex;
    flex-direction: column;
}

.message-item {
    padding: 12px 15px;
    border-radius: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item:hover {
    background-color: rgba(230, 57, 70, 0.1);
}

.message-item.unread {
    position: relative;
    background-color: rgba(0, 0, 0, 0.2);
}

.message-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: var(--primary-color);
    border-radius: 0 2px 2px 0;
}

.message-date {
    float: right;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.message-preview {
    font-size: 0.9rem;
    margin-top: 5px;
    color: var(--text-muted);
}

/* Schedule List Styles */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-item {
    display: flex;
    padding: 12px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.1);
}

.event-type {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 15px;
}

.event-type.practice {
    background-color: #4CAF50;
}

.event-type.game {
    background-color: var(--primary-color);
}

.event-type.meeting {
    background-color: #3498db;
}

.event-details {
    flex: 1;
}

.event-details strong {
    display: block;
    font-weight: 600;
}

.event-details span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.event-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.schedule-item.upcoming {
    position: relative;
}

.schedule-item.upcoming::after {
    content: 'Upcoming';
    position: absolute;
    right: 10px;
    top: 12px;
    font-size: 0.7rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Document List Styles */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.1);
}

.document-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.document-icon .fa-file-pdf {
    color: #f44336;
}

.document-icon .fa-file-excel {
    color: #4CAF50;
}

.document-icon .fa-file-word {
    color: #2196F3;
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 600;
}

.document-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.document-download {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.document-download:hover {
    color: var(--primary-color);
}

/* Forum List Styles */
.forum-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.forum-item {
    display: flex;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
}

.forum-avatar {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--text-muted);
}

.forum-content {
    flex: 1;
}

.forum-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.forum-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.forum-message {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.forum-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.forum-actions a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-actions a:hover {
    color: var(--primary-color);
}

.forum-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
}


