/**
 * TeamFunded Theme Styles - Sports Edition
 * Color Scheme: Navy (#1e293b) → Bright Blue (#3B82F6)
 * Font: Inter (Google Fonts)
 * Design: Athletic, energetic, team-focused
 */

/* ========================================
   CSS VARIABLES - SPORTS THEME
   ======================================== */
:root {
    /* Core brand colours - Sports focused */
    --primary: #3B82F6;
    --primary-light: #60A5FA;
    --primary-dark: #2563EB;
    --secondary: #1e293b;
    --secondary-light: #334155;
    --secondary-dark: #0f172a;
    --accent: #F59E0B;
    --accent-light: #FBBF24;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Gradient for headers/CTAs */
    --gradient-start: var(--primary);
    --gradient-end: var(--secondary);
    
    /* Neutrals */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: var(--neutral-50);
    --card-bg: #ffffff;
    --card-border: rgba(15, 23, 42, 0.08);
    
    /* Shadows - Athletic depth */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 20px 48px rgba(15, 23, 42, 0.16);
    --shadow-hover: 0 24px 56px rgba(59, 130, 246, 0.2);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Dynamic club colors - will be overridden inline */
    --club-primary: var(--primary);
    --club-secondary: var(--secondary);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--neutral-900);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-secondary);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

h1 { font-size: 2.5rem; font-weight: var(--font-weight-extrabold); }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

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

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

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: var(--font-weight-extrabold);
    font-size: 1.5rem;
    color: var(--club-primary, var(--primary));
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    color: var(--club-primary, var(--primary));
    transform: translateY(-2px);
}

.club-logo {
    max-height: 50px;
    width: auto;
    margin-right: 0.75rem;
}

.navbar-nav .nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--neutral-900);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--club-primary, var(--primary));
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--club-primary, var(--primary));
    transition: transform 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--club-primary, var(--primary)) 0%, var(--club-secondary, var(--secondary)) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23ffffff"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffffff"></path></svg>') center bottom no-repeat;
    background-size: cover;
    opacity: 0.1;
}

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

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: var(--font-weight-extrabold);
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-section p.lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-weight: var(--font-weight-semibold);
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--club-primary, var(--primary));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--club-primary, var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background: var(--neutral-700);
    color: white;
}

.btn-secondary:hover {
    background: var(--neutral-800);
    transform: translateY(-2px);
}

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

.btn-outline-primary:hover {
    background: var(--club-primary, var(--primary));
    color: white;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

/* ========================================
   PRODUCTS / SHOP
   ======================================== */
.woocommerce-products-header {
    padding: 3rem 0 2rem;
    background: var(--bg-secondary);
}

.woocommerce-products-header__title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--club-primary, var(--primary));
    margin-bottom: 1rem;
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-900);
}

.woocommerce ul.products li.product .price {
    color: var(--club-primary, var(--primary));
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
}

.woocommerce .button,
.woocommerce button.button {
    background: var(--club-primary, var(--primary));
    color: white;
    font-weight: var(--font-weight-semibold);
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
    background: var(--club-primary, var(--primary-dark));
    transform: translateY(-2px);
    color: white;
}

/* ========================================
   CLUB DASHBOARD
   ======================================== */
.dashboard-wrapper {
    padding: 3rem 0;
}

.dashboard-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.dashboard-card h2 {
    color: var(--club-primary, var(--primary));
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--neutral-200);
}

.stat-card {
    background: linear-gradient(135deg, var(--club-primary, var(--primary)) 0%, var(--club-secondary, var(--secondary)) 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-table {
    width: 100%;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
}

.order-table thead {
    background: var(--neutral-100);
}

.order-table th {
    padding: 1rem;
    font-weight: var(--font-weight-semibold);
    color: var(--neutral-700);
    text-align: left;
}

.order-table td {
    padding: 1rem;
    border-top: 1px solid var(--neutral-200);
}

.order-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
}

.order-status.completed {
    background: #DEF7EC;
    color: var(--success);
}

.order-status.processing {
    background: #FEF3C7;
    color: var(--warning);
}

.order-status.pending {
    background: var(--neutral-200);
    color: var(--neutral-700);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.site-footer h5 {
    color: white;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.site-footer a {
    color: var(--neutral-300);
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--club-primary, var(--primary));
}

.footer-logo {
    max-height: 40px;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-club-primary {
    color: var(--club-primary, var(--primary)) !important;
}

.bg-club-primary {
    background: var(--club-primary, var(--primary)) !important;
}

.section-spacing {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    margin-bottom: 2rem;
    text-align: center;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .club-logo {
        max-height: 40px;
    }
    
    .stat-card .stat-value {
        font-size: 2rem;
    }
}
