/* ========================================
   UEFA CHAMPIONS LEAGUE SIMULATOR
   Premium Sports Analytics Interface
   ======================================== */

:root {
    /* Color System */
    --color-bg-primary: #0a0e1a;
    --color-bg-secondary: #12172b;
    --color-bg-tertiary: #1a2137;
    --color-bg-elevated: #1e2740;

    --color-accent-primary: #00d9ff;
    --color-accent-secondary: #0080ff;
    --color-accent-glow: rgba(0, 217, 255, 0.2);

    --color-text-primary: #ffffff;
    --color-text-secondary: #a8b3cf;
    --color-text-muted: #6b7694;

    --color-success: #00ff88;
    --color-warning: #ffb800;
    --color-danger: #ff3366;

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-bright: rgba(0, 217, 255, 0.3);

    /* Difficulty Colors */
    --color-easy: #00ff88;
    --color-easy-bg: rgba(0, 255, 136, 0.15);
    --color-medium: #ffb800;
    --color-medium-bg: rgba(255, 184, 0, 0.15);
    --color-hard: #ff3366;
    --color-hard-bg: rgba(255, 51, 102, 0.15);

    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Sora', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    /* Spacing */
    --spacing-unit: 8px;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--color-accent-glow);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

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

body {
    font-family: var(--font-body);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Starfield Background */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(0, 217, 255, 0.3), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(0, 128, 255, 0.2), transparent),
        radial-gradient(1px 1px at 33% 80%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: twinkle 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.ambient-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(0, 217, 255, 0.05) 0%,
        transparent 50%
    );
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow 8s ease-in-out infinite;
}

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

.main-wrapper {
    position: relative;
    min-height: 100vh;
}

/* ========================================
   NAVIGATION
   ======================================== */

.top-nav {
    background: linear-gradient(
        135deg,
        rgba(18, 23, 43, 0.95) 0%,
        rgba(26, 33, 55, 0.95) 100%
    );
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border-bright);
    box-shadow: var(--shadow-lg), 0 0 40px var(--color-accent-glow);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ucl-logo {
    animation: rotate-slow 20s linear infinite;
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--color-success);
    border-radius: 20px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 10px var(--color-success);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success);
    letter-spacing: 2px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

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

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem;
    background: linear-gradient(
        135deg,
        rgba(18, 23, 43, 0.6) 0%,
        rgba(26, 33, 55, 0.6) 100%
    );
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff, var(--color-accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-reset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--color-danger), #cc0044);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 51, 102, 0.4);
}

.btn-reset:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 1.2rem;
    animation: spin-on-hover 0.6s ease-in-out;
}

.btn-reset:hover .btn-icon {
    animation: spin 0.6s ease-in-out;
}

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

/* ========================================
   TABLE CONTAINER
   ======================================== */

.table-container {
    background: linear-gradient(
        135deg,
        rgba(18, 23, 43, 0.4) 0%,
        rgba(26, 33, 55, 0.4) 100%
    );
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.table-wrapper {
    overflow-x: auto;
}

/* Custom Scrollbar */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: var(--color-bg-secondary);
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-accent-primary);
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-secondary);
}

/* ========================================
   STANDINGS TABLE
   ======================================== */

.standings-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
}

/* Table Header */
.standings-table thead {
    background: linear-gradient(
        135deg,
        rgba(0, 217, 255, 0.15) 0%,
        rgba(0, 128, 255, 0.15) 100%
    );
    border-bottom: 2px solid var(--color-accent-primary);
}

.standings-table thead th {
    padding: 1rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: 1.5px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-border-bright);
    position: sticky;
    top: 0;
    z-index: 5;
    background: inherit;
}

.th-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.th-label-row {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.th-label {
    color: var(--color-accent-primary);
}

.th-hint {
    font-size: 0.6rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

/* Column Sizing */
.col-pos { width: 60px; }
.col-team { min-width: 160px; }
.col-previous { min-width: 200px; }
.col-remaining { min-width: 200px; }
.col-stat { width: 70px; text-align: center; }
.col-stat-avg { min-width: 110px; }
.col-compact { width: 50px; text-align: center; }
.col-points { width: 70px; text-align: center; }
.col-actions { width: 100px; text-align: center; }

/* Table Body */
.standings-table tbody tr {
    background: rgba(26, 33, 55, 0.3);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
    animation: fadeInRow 0.5s ease-out backwards;
}

.standings-table tbody tr:nth-child(8) {
    border-bottom: 3px solid var(--color-diff-green);
    box-shadow: 0 4px 0 rgba(43, 209, 116, 0.35);
}

.standings-table tbody tr:nth-child(24) {
    border-bottom: 3px solid var(--color-diff-red);
    box-shadow: 0 4px 0 rgba(233, 62, 58, 0.35);
}

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

.standings-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.standings-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.standings-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.standings-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.standings-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.standings-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.standings-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.standings-table tbody tr:nth-child(8) { animation-delay: 0.4s; }

.standings-table tbody tr:hover {
    background: rgba(0, 217, 255, 0.1);
    border-left: 3px solid var(--color-accent-primary);
    transform: translateX(3px);
    box-shadow: inset 0 0 20px rgba(0, 217, 255, 0.1);
}

.standings-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
}

/* Position Column */
.position-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-accent-primary);
    text-align: center;
}

/* Team Name */
.team-cell {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-primary);
}

.opponents-cell,
.remaining-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.previous-avg,
.remaining-avg {
    text-align: center;
    font-weight: 700;
    border: 1px solid var(--color-border);
}

.sortable {
    cursor: pointer;
    position: relative;
}

.sort-icon {
    font-size: 0.85rem;
    opacity: 0.5;
    line-height: 1;
}

.sorted-asc,
.sorted-desc {
    opacity: 0.9;
}

.gd-cell {
    text-align: center;
    font-weight: 700;
}

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

/* ========================================
   DIFFICULTY COLORS
   ======================================== */

.difficulty-easy,
.difficulty-medium,
.difficulty-hard {
    background: linear-gradient(
        90deg,
        rgba(0, 255, 136, 0.85) 0%,
        rgba(0, 255, 136, 0.35) 30%,
        rgba(0, 255, 136, 0.05) 45%,
        transparent 50%,
        rgba(255, 51, 102, 0.05) 55%,
        rgba(255, 51, 102, 0.35) 70%,
        rgba(255, 51, 102, 0.85) 100%
    ) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* ========================================
   OPPONENT BADGES
   ======================================== */

.opponent-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.4rem;
    margin: 0.15rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.opponent-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.opponent-logo,
.team-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    border: 1px solid var(--color-border);
    padding: 2px;
    box-shadow: var(--shadow-sm);
}

.team-logo {
    width: 30px;
    height: 30px;
}

.opponent-placeholder,
.team-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--color-border);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.venue-indicator {
    font-size: 0.65rem;
    opacity: 0.7;
    font-weight: 500;
}

/* Fixture Badges */
.fixture-clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.fixture-clickable::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left var(--transition-base);
}

.fixture-clickable:hover::before {
    left: 100%;
}

.fixture-clickable:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.opponent-code {
    font-family: var(--font-mono);
}

.team-cell-content {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.team-name {
    font-weight: 700;
}

/* Simulated Badge */
.simulated {
    border-style: dashed !important;
    opacity: 0.8;
    animation: pulse-subtle 2s ease-in-out infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ========================================
   STATS STYLING
   ======================================== */

.text-success {
    color: var(--color-success) !important;
    font-weight: 600;
}

.text-danger {
    color: var(--color-danger) !important;
    font-weight: 600;
}

/* Points Column - Highlight */
.points-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-accent-primary);
    text-shadow: 0 0 10px var(--color-accent-glow);
    text-align: center;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-sm:hover {
    background: var(--color-accent-primary);
    color: var(--color-bg-primary);
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-sm:active {
    transform: translateY(0);
}

/* ========================================
   MODAL
   ======================================== */

/* Modal Backdrop */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.85) !important;
    z-index: 1040 !important;
    pointer-events: none !important;
}

.modal-backdrop.show {
    opacity: 0.85 !important;
}

/* Modal itself */
.modal {
    z-index: 9999 !important;
}

.modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Modal Dialog */
.modal-dialog {
    position: relative;
    z-index: 10000 !important;
    margin: 1.75rem auto;
}

.modal-content.fixture-modal {
    background: linear-gradient(
        135deg,
        rgb(18, 23, 43) 0%,
        rgb(26, 33, 55) 100%
    );
    border: 2px solid var(--color-accent-primary);
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(0, 217, 255, 0.5), 0 20px 60px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 10001 !important;
}

.modal-header {
    border-bottom: 2px solid var(--color-accent-primary);
    padding: 1.5rem 2rem;
    background: linear-gradient(
        135deg,
        rgba(0, 217, 255, 0.2) 0%,
        rgba(0, 128, 255, 0.2) 100%
    );
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--color-accent-primary);
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.btn-close-modal:hover {
    background: var(--color-danger);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* Modal Content Styles */
#modal-content h5 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
}

.mode-toggle {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.form-check-input {
    width: 50px;
    height: 26px;
    background-color: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 10px var(--color-accent-glow);
}

.form-check-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-left: 0.5rem;
}

/* Result Buttons */
.result-btn {
    width: 100%;
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.result-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.result-btn:active {
    transform: translateY(0);
}

.result-btn-win {
    background: linear-gradient(135deg, var(--color-success), #00cc66);
    color: var(--color-bg-primary);
}

.result-btn-win:hover {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 255, 136, 0.4);
}

.result-btn-draw {
    background: linear-gradient(135deg, var(--color-warning), #cc9200);
    color: var(--color-bg-primary);
}

.result-btn-draw:hover {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 184, 0, 0.4);
}

.result-btn-loss {
    background: linear-gradient(135deg, var(--color-danger), #cc0044);
    color: white;
}

.result-btn-loss:hover {
    box-shadow: var(--shadow-lg), 0 0 20px rgba(255, 51, 102, 0.4);
}

/* Score Input Group */
.score-input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

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

.score-input {
    width: 80px;
    height: 60px;
    padding: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: var(--color-accent-primary);
    background: var(--color-bg-tertiary);
    border: 2px solid var(--color-border-bright);
    border-radius: 8px;
    transition: all var(--transition-base);
}

.score-input:focus {
    outline: none;
    border-color: var(--color-accent-primary);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

/* Submit Button in Modal */
.btn-primary {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: var(--color-bg-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 20px var(--color-accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ========================================
   LOADING STATES
   ======================================== */

.htmx-swapping {
    opacity: 0.5;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.htmx-request {
    position: relative;
}

.htmx-request::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-accent-primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes highlight {
    0% {
        background-color: rgba(0, 217, 255, 0.3);
    }
    100% {
        background-color: transparent;
    }
}

.position-changed {
    animation: highlight 1.5s ease;
}

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

@media (max-width: 1200px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .brand-title {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .page-subtitle {
        font-size: 0.75rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .standings-table {
        font-size: 0.75rem;
    }

    .opponent-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.4rem;
    }

    /* Hide action column on mobile to save space */
    .standings-table th.col-actions,
    .standings-table td.actions-cell {
        display: none;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
    }

    .modal-content.fixture-modal {
        border-radius: 0;
        min-height: 100vh;
    }
}

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

.fw-bold {
    font-weight: 700;
}

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

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}
