/**
 * Global Stylesheet
 * 
 * This file contains all global/shared styles used across the entire site:
 * - CSS Variables (colors, spacing)
 * - Typography (fonts, headings)
 * - Layout (container, sections)
 * - Header & Footer
 * - Buttons & Forms
 * - Alerts & Tables
 * - Admin styles
 * - Responsive breakpoints
 * 
 * Page-specific styles should be in separate CSS files (e.g., schedule.css)
 */

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

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

:root {
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --accent: #FFD23F;
    --dark: #1A1A1A;
    --dark-light: #2D2D2D;
    --gray: #6B7280;
    --light: #F9FAFB;
    --white: #FFFFFF;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--dark);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

.logo {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Oswald', sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
}

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

nav a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
nav li.dropdown {
    position: relative;
}

nav li.dropdown .dropdown-toggle {
    cursor: pointer;
}

nav li.dropdown .dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.7rem;
    margin-left: 0.25rem;
}

nav li.dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--dark);
    min-width: 200px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    border-radius: 4px;
    z-index: 1000;
}

nav li.dropdown .dropdown-menu.show {
    display: block;
}

nav li.dropdown .dropdown-menu li {
    margin: 0;
}

nav li.dropdown .dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background 0.2s;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    font-size: 0.95rem;
}

nav li.dropdown .dropdown-menu a:hover {
    background: var(--dark-light);
    color: var(--primary);
}

nav li.dropdown .dropdown-menu a::after {
    display: none;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 210, 63, 0.15) 0%, transparent 50%);
    opacity: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 100px 0;
}

.bg-light {
    background: var(--light);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    text-align: center;
    color: var(--dark);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.text-center {
    text-align: center;
}

.mt-8 {
    margin-top: 2rem;
}

/* Cards */
.post-card, .team-card, .game-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.post-card:hover, .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-content h3 a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
}

.post-content h3 a:hover {
    color: var(--primary);
}

.post-meta {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Games List */
.games-list {
    display: grid;
    gap: 1.5rem;
}

.game-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid;
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateX(10px);
}

.game-card.upcoming {
    border-left-color: var(--primary);
}

.game-card.win {
    border-left-color: #10b981;
}

.game-card.loss {
    border-left-color: #ef4444;
}

.game-date {
    font-weight: 700;
    color: var(--primary);
    min-width: 180px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.team-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.team-position {
    color: var(--gray);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.team-number {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

footer p {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: var(--light);
}

.admin-sidebar {
    width: 280px;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
    padding: 2.5rem;
    position: fixed;
    height: 100vh;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.admin-sidebar h1 {
    margin-bottom: 3rem;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-nav {
    list-style: none;
}

.admin-nav li {
    margin-bottom: 0.75rem;
}

.admin-nav a {
    display: block;
    padding: 1rem 1.25rem;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    padding: 3rem;
}

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

.admin-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
}

/* Forms */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Roboto', sans-serif;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-checkbox {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

/* Tables */
.table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.table th {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.table td {
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.table tr:hover {
    background: #f9fafb;
}

/* Alerts */
.alert {
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left-color: #10b981;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

/* Screen Reader Only (Accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .admin-main {
        margin-left: 0;
        padding: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: center;
    }
}
