/* Design System */
:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-primary: #3b82f6;
    --accent-hover: #2563eb;
    --border-color: #333;
    --success: #10b981;
    --spacing-md: 16px;
    --radius-md: 8px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    width: 100vw;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-primary);
    margin: 0;
}

/* Layout Compontnets */
.container {
    max-width: 1400px;
    /* Wide container for table */
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.intro {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Background set inline or via specific class, overlay handled below */
}

.intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, var(--bg-primary) 100%);
    z-index: 1;
}

.intro-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.intro h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.intro p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

button {
    font-family: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Primary Button (Hero) */
.intro button {
    background-color: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.intro button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Fixture Groups */
.fixture-group {
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.fixture-group h3 {
    background-color: var(--bg-tertiary);
    padding: 16px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.fixture-group h3:hover {
    background-color: #333;
}

.fixture-group.expanded .fixture-table {
    display: table;
}

/* Fixture Table */
.fixture-table {
    display: none;
    /* Default state matching existing logic */
    width: 100%;
    border-collapse: collapse;
}

.fixture-table th,
.fixture-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.fixture-table th {
    background-color: var(--bg-primary);
    /* Header contrast */
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    user-select: none;
}

.fixture-table th:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.fixture-table img {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-right: 8px;
    object-fit: contain;
}

/* Data Cells */
.fixture-table td {
    font-size: 0.95rem;
    vertical-align: middle;
}

/* Show/Hide Buttons */
.fixture-table button {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    margin-left: 8px;
}

.fixture-table button:hover {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Show All Buttons (in Header) */
.show-hide-all-btn {
    background-color: transparent !important;
    border: 1px solid var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    font-size: 0.7rem !important;
    padding: 4px 8px !important;
    margin-left: 8px;
}

.show-hide-all-btn:hover {
    background-color: var(--accent-primary) !important;
    color: white !important;
}

/* Spoiler / Hidden Content */
.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.3s forwards;
    display: inline-block;
}

.fade-out {
    animation: fadeOut 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(4px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .fixture-table th,
    .fixture-table td {
        padding: 12px 8px;
    }

    .intro h1 {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes pulse-fire {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.4), 0 0 20px rgba(239, 68, 68, 0.2);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.7), 0 0 30px rgba(239, 68, 68, 0.4);
        transform: scale(1.05);
    }
}

.animate-pulse-fire {
    animation: pulse-fire 2s infinite ease-in-out;
}

/* Tooltip */
.tooltip-trigger {
    position: relative;
    cursor: help;
}

.tooltip-content {
    visibility: hidden;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1e293b;
    /* slate-800 */
    color: #f1f5f9;
    /* slate-100 */
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 100;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid #475569;
    /* slate-600 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #475569 transparent transparent transparent;
}

.tooltip-trigger:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
}