/* MLB Bracket Predictions - Main Stylesheet */
/* ============================================
   TABLE OF CONTENTS
   ============================================
   1. CSS Custom Properties (Variables)
   2. Reset & Base Styles
   3. Typography
   4. Layout & Grid
   5. Buttons
   6. Forms
   7. Cards
   8. Badges & Alerts
   9. Tables
   10. Navigation
   11. Modals
   12. Sports-Specific Components
   13. Utilities
   14. Animations
   15. Responsive
   ============================================ */

/* ============================================
   1. CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* === PRIMARY COLOR SCALE (MLB Navy) === */
    --primary-50: #e8edf5;
    --primary-100: #c5d3e8;
    --primary-200: #9fb7d9;
    --primary-300: #789bca;
    --primary-400: #5b85be;
    --primary-500: #3e6fb2;
    --primary: #002D72;
    --primary-600: #00265f;
    --primary-700: #001f4d;
    --primary-800: #00183a;
    --primary-900: #001128;
    --primary-dark: #001f4d;

    /* === SECONDARY COLOR SCALE (MLB Red) === */
    --secondary-50: #fce8eb;
    --secondary-100: #f7c5cc;
    --secondary-200: #f19fa9;
    --secondary-300: #eb7986;
    --secondary-400: #e65c6b;
    --secondary-500: #e13f50;
    --secondary: #C4122E;
    --secondary-600: #a30f26;
    --secondary-700: #820c1e;
    --secondary-800: #610917;
    --secondary-900: #40060f;

    /* === GRAY SCALE (Complete) === */
    --gray-50: #f9fafb;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --gray-950: #0d1117;

    /* === SEMANTIC COLORS === */
    --success: #28a745;
    --success-light: #d4edda;
    --success-dark: #1e7e34;
    --warning: #ffc107;
    --warning-light: #fff3cd;
    --warning-dark: #d39e00;
    --danger: #dc3545;
    --danger-light: #f8d7da;
    --danger-dark: #c82333;
    --info: #17a2b8;
    --info-light: #d1ecf1;
    --info-dark: #117a8b;
    --light: #f8f9fa;
    --dark: #343a40;

    /* === SPORTS-SPECIFIC COLORS === */
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
    --live: #00c853;
    --final: #9e9e9e;

    /* === TYPOGRAPHY === */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;

    /* === SPACING SCALE === */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* === BORDER RADIUS === */
    --radius-none: 0;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --border-radius: 8px;

    /* === SHADOWS === */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 25px -5px rgba(0, 45, 114, 0.15), 0 8px 10px -6px rgba(0, 45, 114, 0.1);
    --shadow-glow-primary: 0 0 20px rgba(0, 45, 114, 0.3);
    --shadow-glow-success: 0 0 20px rgba(40, 167, 69, 0.3);
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* === TRANSITIONS === */
    --transition-fast: 150ms;
    --transition-base: 200ms;
    --transition-slow: 300ms;
    --transition-slower: 500ms;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* === Z-INDEX SCALE === */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-100);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.navbar {
    background: var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    text-decoration: none !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: white;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.9);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0.5rem 0 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle:focus + .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--gray-700);
}

.nav-dropdown-menu a:hover {
    background: var(--gray-100);
    text-decoration: none;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--gray-400);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s;
}

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

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

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

.btn-outline {
    background: transparent;
    border-color: currentColor;
    color: white;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

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

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

/* Cards */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.5rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

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

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,45,114,0.1);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    width: 1.125rem;
    height: 1.125rem;
}

.form-text {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.form-error {
    color: var(--danger);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error,
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
}

.table tbody tr:hover {
    background: var(--gray-50);
}

.table-striped tbody tr:nth-child(even) {
    background: var(--gray-50);
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: -0.75rem;
}

.col {
    flex: 1;
    padding: 0.75rem;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-600); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Page Header */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header .subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* Team Badge */
.team-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Bracket Specific Styles */
.bracket-section {
    margin-bottom: 2rem;
}

.division-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.division-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.division-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.division-body {
    padding: 1rem;
}

.team-slot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.team-slot:last-child {
    border-bottom: none;
}

.team-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.75rem;
}

.team-select {
    flex: 1;
}

/* Playoff Bracket */
.playoff-bracket {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
    overflow-x: auto;
}

.bracket-round {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.bracket-matchup {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 0.75rem;
    min-width: 180px;
}

.matchup-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.matchup-teams {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Leaderboard */
.leaderboard-table .rank-cell {
    font-weight: 700;
    color: var(--primary);
}

.leaderboard-table .rank-1 { color: gold; }
.leaderboard-table .rank-2 { color: silver; }
.leaderboard-table .rank-3 { color: #cd7f32; }

/* Standings */
.standings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.standings-league {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.standings-division {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.standings-division .division-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
}

.standings-division.nl .division-header {
    background: var(--secondary);
}

/* Auth Pages */
.auth-container {
    max-width: 400px;
    margin: 2rem auto;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.badge-success { background: var(--success); color: white; }
.badge-warning { background: var(--warning); color: var(--gray-900); }
.badge-danger { background: var(--danger); color: white; }
.badge-info { background: var(--info); color: white; }
.badge-primary { background: var(--primary); color: white; }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ============================================
   13. EXTENDED UTILITIES
   ============================================ */

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Grid */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Extended spacing */
.m-0 { margin: 0; }
.m-auto { margin: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

/* Text utilities */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.tracking-wide { letter-spacing: var(--tracking-wide); }
.tracking-wider { letter-spacing: var(--tracking-wider); }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-warning { color: var(--warning-dark); }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.invisible { visibility: hidden; }
.visible { visibility: visible; }

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

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* Width/Height */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-full { max-width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Border */
.border { border: 1px solid var(--gray-300); }
.border-t { border-top: 1px solid var(--gray-200); }
.border-b { border-bottom: 1px solid var(--gray-200); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }

/* ============================================
   14. ANIMATIONS
   ============================================ */

/* Keyframes */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-20px); }
    70% { transform: translateY(-10px); }
    90% { transform: translateY(-4px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

@keyframes progress {
    from { width: 0%; }
    to { width: var(--progress-value, 100%); }
}

/* Animation utilities */
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
.animate-bounce { animation: bounce 1s ease; }
.animate-shake { animation: shake 0.5s ease; }
.animate-fade-in { animation: fadeIn var(--transition-base) var(--ease-out); }
.animate-fade-in-up { animation: fadeInUp var(--transition-slow) var(--ease-out); }
.animate-fade-in-down { animation: fadeInDown var(--transition-base) var(--ease-out); }
.animate-scale-in { animation: scaleIn var(--transition-base) var(--ease-spring); }

/* Animation delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-500 { animation-delay: 500ms; }

/* Stagger children */
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }

/* Transition utilities */
.transition-none { transition: none; }
.transition-all { transition: all var(--transition-base) var(--ease-out); }
.transition-colors {
    transition: color var(--transition-fast) var(--ease-out),
                background-color var(--transition-fast) var(--ease-out),
                border-color var(--transition-fast) var(--ease-out);
}
.transition-transform { transition: transform var(--transition-base) var(--ease-out); }

/* Interactive effects */
.hover-lift {
    transition: transform var(--transition-base) var(--ease-out),
                box-shadow var(--transition-base) var(--ease-out);
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.press-effect:active {
    transform: scale(0.98);
}

.hover-glow:hover {
    box-shadow: var(--shadow-glow-primary);
}

/* ============================================
   ENHANCED BUTTON STYLES
   ============================================ */

/* Button focus states */
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.4);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.4);
}

.btn-secondary:focus-visible {
    box-shadow: 0 0 0 3px rgba(196, 18, 46, 0.4);
}

.btn-danger:focus-visible {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.4);
}

.btn-success:focus-visible {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.4);
}

/* Ghost button */
.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border-color: transparent;
}

.btn-ghost:hover {
    background: var(--gray-100);
}

/* Icon button */
.btn-icon {
    padding: var(--space-2);
    width: 40px;
    height: 40px;
}

/* Button states */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading button */
.btn-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary.btn-loading::after {
    border-color: white;
    border-right-color: transparent;
}

/* ============================================
   ENHANCED CARD STYLES
   ============================================ */

/* Interactive card */
.card-interactive {
    transition: transform var(--transition-base) var(--ease-out),
                box-shadow var(--transition-base) var(--ease-out);
    cursor: pointer;
}

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

/* Card with accent border */
.card-accent {
    border-top: 4px solid var(--primary);
}

.card-accent-secondary {
    border-top-color: var(--secondary);
}

.card-accent-success {
    border-top-color: var(--success);
}

.card-accent-warning {
    border-top-color: var(--warning);
}

.card-accent-danger {
    border-top-color: var(--danger);
}

/* ============================================
   ENHANCED FORM STYLES
   ============================================ */

/* Form control enhancements */
.form-control:hover:not(:focus):not(:disabled) {
    border-color: var(--gray-400);
}

.form-control:disabled {
    background: var(--gray-100);
    cursor: not-allowed;
}

/* Validation states */
.form-control.is-valid {
    border-color: var(--success);
}

.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Input group */
.input-group {
    display: flex;
    position: relative;
}

.input-group-prepend,
.input-group-append {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
}

.input-group-prepend {
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group-append {
    border-left: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group .form-control {
    border-radius: 0;
}

.input-group .form-control:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.input-group .form-control:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ============================================
   ENHANCED BADGE STYLES
   ============================================ */

/* Outline badges */
.badge-outline-primary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.badge-outline-secondary {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

/* Pill badge */
.badge-pill {
    border-radius: var(--radius-full);
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

/* Live indicator badge */
.badge-live {
    background: var(--live);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.badge-final {
    background: var(--final);
    color: white;
}

/* ============================================
   ENHANCED MODAL STYLES
   ============================================ */

/* Modal with backdrop blur */
.modal-overlay {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity var(--transition-base) var(--ease-out);
    z-index: var(--z-modal-backdrop);
}

.modal-overlay.active {
    opacity: 1;
}

.modal {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
    transition: transform var(--transition-slow) var(--ease-spring),
                opacity var(--transition-base) var(--ease-out);
    z-index: var(--z-modal);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Modal sizes */
.modal-sm { max-width: 400px; }
.modal-lg { max-width: 700px; }
.modal-xl { max-width: 900px; }

.modal-close:hover {
    color: var(--gray-800);
    background: var(--gray-100);
    border-radius: var(--radius-sm);
}

/* ============================================
   12. SPORTS-SPECIFIC COMPONENTS
   ============================================ */

/* === STAT CARDS (ESPN-style) === */
.stat-card-modern {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: var(--space-6);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base) var(--ease-out),
                box-shadow var(--transition-base) var(--ease-out);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.stat-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-card-value {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: var(--primary);
    line-height: var(--leading-none);
    letter-spacing: var(--tracking-tight);
}

.stat-card-label {
    color: var(--gray-600);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    margin-top: var(--space-2);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* Gradient stat card */
.stat-card-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
    color: white;
}

.stat-card-gradient .stat-card-value {
    color: white;
}

.stat-card-gradient .stat-card-label {
    color: rgba(255, 255, 255, 0.8);
}

.stat-card-gradient::before {
    display: none;
}

/* Hero stat */
.hero-stat {
    text-align: center;
    padding: var(--space-8);
}

.hero-stat-value {
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--leading-none);
}

.hero-stat-label {
    font-size: var(--text-lg);
    color: var(--gray-600);
    margin-top: var(--space-2);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

/* Mini stats row */
.mini-stats {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

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

.mini-stat-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--primary);
}

.mini-stat-label {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
}

/* === LEADERBOARD === */
.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--space-4);
    padding: var(--space-8) 0;
}

.podium-place {
    text-align: center;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: white;
    box-shadow: var(--shadow);
    min-width: 120px;
}

.podium-place-1 {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 215, 0, 0.3);
    order: 2;
}

.podium-place-2 {
    order: 1;
}

.podium-place-3 {
    order: 3;
}

.podium-medal {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
}

.podium-name {
    font-weight: var(--font-bold);
    color: var(--gray-900);
}

.podium-score {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    color: var(--primary);
}

/* Leaderboard row */
.leaderboard-row {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    transition: background-color var(--transition-fast) var(--ease-out);
}

.leaderboard-row:hover {
    background: var(--gray-50);
}

.leaderboard-row.is-current-user {
    background: var(--primary-50);
    border-left: 3px solid var(--primary);
}

.leaderboard-rank {
    width: 48px;
    font-weight: var(--font-bold);
    color: var(--gray-600);
}

.leaderboard-rank-1 { color: var(--gold); }
.leaderboard-rank-2 { color: var(--silver); }
.leaderboard-rank-3 { color: var(--bronze); }

.leaderboard-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.leaderboard-score {
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: var(--primary);
}

/* Rank change indicator */
.rank-change {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
}

.rank-change-up { color: var(--success); }
.rank-change-down { color: var(--danger); }
.rank-change-same { color: var(--gray-400); }

/* === ENHANCED DIVISION CARDS === */
.division-card-modern {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow var(--transition-base) var(--ease-out);
}

.division-card-modern:hover {
    box-shadow: var(--shadow-lg);
}

.division-header-modern {
    background: var(--primary);
    color: white;
    padding: var(--space-3) var(--space-4);
    font-weight: var(--font-semibold);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.division-header-modern.nl {
    background: var(--secondary);
}

.division-header-modern::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
}

/* Team slot enhancement */
.team-slot-modern {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-bottom: 1px solid var(--gray-100);
    transition: background-color var(--transition-fast) var(--ease-out);
}

.team-slot-modern:last-child {
    border-bottom: none;
}

.team-slot-modern:hover {
    background: var(--gray-50);
}

.team-rank-modern {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    color: var(--gray-700);
    flex-shrink: 0;
}

.team-rank-modern.rank-1 {
    background: var(--primary);
    color: white;
}

/* === ENHANCED BRACKET === */
.playoff-bracket-modern {
    display: flex;
    gap: var(--space-8);
    padding: var(--space-6);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.bracket-round-modern {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: var(--space-8);
    min-width: 200px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.bracket-round-title {
    text-align: center;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-4);
}

.bracket-matchup-modern {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.matchup-team-modern {
    display: flex;
    align-items: center;
    padding: var(--space-3);
    border-bottom: 1px solid var(--gray-100);
    transition: background-color var(--transition-fast) var(--ease-out);
    cursor: pointer;
}

.matchup-team-modern:last-child {
    border-bottom: none;
}

.matchup-team-modern:hover {
    background: var(--gray-50);
}

.matchup-team-modern.winner {
    background: var(--success-light);
}

.matchup-team-modern.selected {
    background: var(--primary-50);
    border-left: 3px solid var(--primary);
}

.matchup-seed {
    width: 24px;
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    color: var(--gray-500);
}

.matchup-name {
    flex: 1;
    font-weight: var(--font-medium);
}

.matchup-score {
    font-weight: var(--font-bold);
    color: var(--gray-700);
}

/* World Series card */
.world-series-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
}

.world-series-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

/* === WIZARD COMPONENTS === */
.wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

.wizard-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-8);
    padding: 0 var(--space-8);
    position: relative;
}

.wizard-stepper::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: var(--gray-300);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 1;
}

.wizard-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    transition: all var(--transition-base) var(--ease-out);
    position: relative;
}

.wizard-step.active .wizard-step-number {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 45, 114, 0.2);
}

.wizard-step.completed .wizard-step-number {
    background: var(--success);
    color: white;
}

.wizard-step.completed .wizard-step-number::after {
    content: '✓';
}

.wizard-step-label {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--gray-600);
    font-weight: var(--font-medium);
}

.wizard-step.active .wizard-step-label {
    color: var(--primary);
    font-weight: var(--font-semibold);
}

.wizard-step.completed .wizard-step-label {
    color: var(--success);
}

/* Wizard content */
.wizard-content {
    min-height: 400px;
}

.wizard-step-content {
    display: none;
    animation: fadeIn var(--transition-base) var(--ease-out);
}

.wizard-step-content.active {
    display: block;
}

/* Wizard navigation */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--gray-200);
    margin-top: var(--space-8);
}

.wizard-nav-left {
    display: flex;
    gap: var(--space-3);
}

.wizard-nav-right {
    display: flex;
    gap: var(--space-3);
}

/* === COUNTDOWN TIMER === */
.countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--gray-100);
    border-radius: var(--radius-lg);
}

.countdown-timer.warning {
    background: var(--warning-light);
}

.countdown-timer.urgent {
    background: var(--danger-light);
    animation: pulse 2s ease-in-out infinite;
}

.countdown-icon {
    font-size: var(--text-xl);
}

.countdown-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.countdown-value {
    display: flex;
    gap: var(--space-2);
}

.countdown-unit {
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    color: var(--gray-900);
}

.countdown-unit small {
    font-weight: var(--font-normal);
    font-size: var(--text-xs);
    color: var(--gray-500);
}

.countdown-locked {
    font-weight: var(--font-bold);
    color: var(--danger);
    text-transform: uppercase;
}

/* === SKELETON LOADING === */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-heading {
    height: 1.5em;
    width: 40%;
    margin-bottom: var(--space-4);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.skeleton-card {
    height: 200px;
    border-radius: var(--radius-lg);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight var(--transition-slow) var(--ease-spring);
}

.toast-success {
    border-left: 4px solid var(--success);
}

.toast-error {
    border-left: 4px solid var(--danger);
}

.toast-warning {
    border-left: 4px solid var(--warning);
}

.toast-info {
    border-left: 4px solid var(--info);
}

.toast-icon {
    font-size: var(--text-xl);
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: var(--font-semibold);
    color: var(--gray-900);
}

.toast-message {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-1);
    font-size: var(--text-lg);
}

.toast-close:hover {
    color: var(--gray-600);
}

/* ============================================
   15. RESPONSIVE
   ============================================ */

/* Tablet breakpoint */
@media (max-width: 1024px) {
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .podium-place {
        min-width: 100px;
        padding: var(--space-3);
    }

    .podium-place-1 {
        transform: scale(1.05);
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a,
    .nav-dropdown-toggle {
        display: block;
        padding: 0.75rem 0;
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
    }

    .nav-dropdown-menu a {
        color: rgba(255,255,255,0.8);
    }

    /* Grids */
    .division-grid {
        grid-template-columns: 1fr;
    }

    .standings-grid {
        grid-template-columns: 1fr;
    }

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .col-6, .col-4, .col-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero-stat-value {
        font-size: var(--text-4xl);
    }

    .stat-card-value {
        font-size: var(--text-3xl);
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }

    .stat-card-modern {
        padding: var(--space-4);
    }

    .mini-stats {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    /* Podium */
    .podium {
        flex-direction: column;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-4) 0;
    }

    .podium-place {
        order: unset !important;
        width: 100%;
        max-width: 200px;
    }

    .podium-place-1 {
        transform: none;
    }

    /* Wizard */
    .wizard-container {
        padding: 0 var(--space-2);
    }

    .wizard-stepper {
        padding: 0 var(--space-2);
    }

    .wizard-stepper::before {
        left: 40px;
        right: 40px;
    }

    .wizard-step-label {
        font-size: var(--text-xs);
        text-align: center;
    }

    .wizard-nav {
        flex-direction: column;
        gap: var(--space-3);
    }

    .wizard-nav-left,
    .wizard-nav-right {
        width: 100%;
        justify-content: center;
    }

    .wizard-nav .btn {
        flex: 1;
    }

    /* Bracket */
    .playoff-bracket-modern {
        padding: var(--space-4);
        gap: var(--space-4);
    }

    .bracket-round-modern {
        min-width: 160px;
    }

    /* Countdown */
    .countdown-timer {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .countdown-label {
        width: 100%;
    }

    /* Toasts */
    .toast-container {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    /* Modal */
    .modal {
        margin: var(--space-4);
        max-height: calc(100vh - var(--space-8));
    }

    .modal-lg,
    .modal-xl {
        max-width: calc(100vw - var(--space-8));
    }

    /* Buttons */
    .btn-block-mobile {
        width: 100%;
    }
}

/* Small mobile breakpoint */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-3);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .wizard-step-number {
        width: 28px;
        height: 28px;
        font-size: var(--text-xs);
    }

    .wizard-step-label {
        display: none;
    }

    .wizard-step.active .wizard-step-label {
        display: block;
        position: absolute;
        top: 100%;
        white-space: nowrap;
    }

    .podium-medal {
        font-size: var(--text-2xl);
    }

    .podium-score {
        font-size: var(--text-xl);
    }

    .card-body {
        padding: var(--space-4);
    }

    .card-header,
    .card-footer {
        padding: var(--space-3) var(--space-4);
    }
}
