/* Root Variables */
    :root {
        --primary-color: #FFB800;
        --secondary-color: #000000;
        --background-color: #111111;
        --card-color: #1A1A1A;
        --section-color: #222222;
        --text-color: #FFFFFF;
        --text-secondary: #FFB800;
        --text-muted: #888888;
        --border-color: #333333;
        --perfect-grip: #50ff00; /* Bright green for 100% grip */
        --near-perfect-grip: #ffcc00; /* Yellow for near-100% grip */
        --perfect-power: #50ff00; /* Bright green for 100% power */
        --near-perfect-power: #ffcc00; /* Yellow for near-100% power */
    }

    /* Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        line-height: 1.6;
        background-color: var(--background-color);
        color: var(--text-color);
        overflow-y: scroll;
        background-image: linear-gradient(45deg, #111111 25%, #0a0a0a 25%, #0a0a0a 50%, #111111 50%, #111111 75%, #0a0a0a 75%, #0a0a0a 100%);
        background-size: 56.57px 56.57px;
    }

    /* Container */
    .container {
        max-width: 95%;
        margin: 0 auto;
        padding: 1.5rem;
    }

    /* Header */
    header {
        background-color: var(--secondary-color);
        padding: 1.5rem 0;
        margin-bottom: 2rem;
        box-shadow: 0 4px 12px rgba(255, 184, 0, 0.1);
        border-bottom: 2px solid var(--primary-color);
    }

    h1 {
        text-align: center;
        margin-bottom: 1.5rem;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 800;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    /* Game Version Filter */
    .filter-container {
        display: flex;
        justify-content: center;
        margin-bottom: 1.5rem;
    }

    .game-version-filter {
        display: flex;
        background: var(--card-color);
        border-radius: 8px;
        overflow: hidden;
        border: 2px solid var(--primary-color);
    }

    .game-version-btn {
        padding: 0.75rem 1.5rem;
        background: transparent;
        border: none;
        color: var(--text-color);
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        text-decoration: none;
        text-align: center;
        min-width: 80px;
        line-height: 1.2;
    }

    /* Responsive tab text handling */
    .tab-mobile {
        display: none;
    }

    .tab-desktop {
        display: inline;
    }

    .game-version-btn:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 25%;
        height: 50%;
        width: 1px;
        background-color: var(--border-color);
    }

    .game-version-btn.active {
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }

    .game-version-btn:hover:not(.active) {
        background-color: rgba(255, 184, 0, 0.2);
    }

    /* Previous Games Select Dropdown */
    .previous-select {
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    .previous-select option {
        background: var(--card-color);
        color: var(--text-color);
    }

    /* Search */
    .search-container {
        margin: 1.5rem 0;
        display: flex;
        justify-content: center;
    }

    .search-input {
        width: 100%;
        max-width: 500px;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        background: var(--card-color);
        border: 2px solid var(--primary-color);
        border-radius: 6px;
        color: var(--text-color);
        transition: all 0.3s ease;
    }

    .search-input:focus {
        outline: none;
        box-shadow: 0 0 10px rgba(255, 184, 0, 0.3);
    }

    /* Setup Source Filter */
    .setup-source-filter {
        margin: 1rem 0;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }

    .source-filter-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        font-weight: 600;
        background: var(--card-color) !important;
        border: 2px solid var(--border-color) !important;
        border-radius: 6px;
        color: var(--text-color) !important;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-family: inherit;
    }

    .source-filter-btn:hover {
        border-color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .source-filter-btn.active {
        background: var(--primary-color) !important;
        border-color: var(--primary-color) !important;
        color: #000 !important;
        font-weight: 700;
    }

    /* Setup Grid and Cards */
    .setup-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }

    .setup-card {
        background: var(--card-color);
        border-radius: 12px;
        padding: 1.75rem;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        border: 1px solid var(--border-color);
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .setup-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 12px rgba(255, 184, 0, 0.2);
    }

    .setup-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-color);
        border-radius: 12px 12px 0 0;
    }

    /* Setup Header */
    .setup-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .setup-header h2 {
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    /* Setup Sections */
    .setup-section {
        background: var(--section-color);
        border-radius: 10px;
        padding: 1.5rem;
        margin-bottom: 1.25rem;
        border: 1px solid var(--border-color);
        position: relative;
    }

    .setup-section::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 4px;
        height: 100%;
        background: var(--primary-color);
        opacity: 0.5;
        border-radius: 0 10px 10px 0;
    }

    .setup-section-title {
        color: var(--primary-color);
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .setup-item {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .setup-label {
        font-weight: 500;
        color: var(--text-muted);
        font-size: 0.95rem;
        letter-spacing: 0.5px;
        text-transform: uppercase;
    }

    .setup-value {
        color: var(--text-color);
        font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
        font-size: 1.1rem;
        line-height: 1.5;
        letter-spacing: 0.5px;
        background: rgba(255, 255, 255, 0.05);
        padding: 0.75rem 1rem;
        border-radius: 6px;
        border: 1px solid var(--border-color);
    }
	
.setup-value {
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* If the strategy field needs special handling for longer content */
.setup-item .setup-value {
    max-width: 100%;
    line-height: 1.4;
}

    /* No Setups Message */
    .no-setups {
        grid-column: 1 / -1;
        text-align: center;
        padding: 3rem;
        background: var(--card-color);
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }

    .no-setups h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-size: 1.5rem;
    }

    .no-setups p {
        color: var(--text-muted);
        font-size: 1.1rem;
    }

    /* Credits Page Styles */
    .credits-container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    .credits-intro {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .credits-intro h2 {
        color: var(--primary-color);
        font-size: 2.2rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .credits-intro p {
        color: var(--text-muted);
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto;
    }

    .creators-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2.5rem;
    }

    .creator-card {
        background: var(--card-color);
        border-radius: 12px;
        padding: 2rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        border: 1px solid var(--border-color);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .creator-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 16px rgba(255, 184, 0, 0.2);
    }

    .creator-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-color);
        border-radius: 12px 12px 0 0;
    }

    .creator-image {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        margin-bottom: 1.5rem;
        border: 4px solid var(--primary-color);
        box-shadow: 0 4px 12px rgba(255, 184, 0, 0.25);
        overflow: hidden;
        background-color: var(--section-color);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .creator-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .creator-name {
        color: var(--primary-color);
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .creator-role {
        color: var(--text-muted);
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .creator-bio {
        color: var(--text-color);
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* Tyre Windows Page Styles */
    .tyre-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 2rem 1rem;
    }

    /* Table Styles for Tyre Windows */
    .table-container {
        background: var(--card-color);
        border-radius: 12px;
        padding: 2rem;
        margin-bottom: 2rem;
        overflow-x: auto;
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        position: relative;
    }

    .data-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.9rem;
        background: transparent;
    }

    .data-table th {
        background: var(--section-color);
        color: var(--primary-color);
        padding: 1rem 0.75rem;
        text-align: center;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .data-table td {
        padding: 0.75rem;
        text-align: center;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .data-table tbody tr:hover {
        background-color: rgba(255, 184, 0, 0.05);
    }

    /* Temperature column styling */
    .data-table td:first-child {
        background: var(--section-color);
        color: var(--text-secondary);
        font-weight: 600;
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .data-table th:first-child {
        background: var(--section-color);
        position: sticky;
        left: 0;
        z-index: 3;
    }

    /* Circuit Table Specific Styles */
    .circuit-table {
        margin-bottom: 1rem;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        width: 100%;
    }

    .circuit-column {
        background: var(--section-color);
        border-radius: 8px;
        padding: 1rem;
        border: 1px solid var(--border-color);
    }

    .circuit-column h3 {
        color: var(--primary-color);
        text-align: center;
        margin-bottom: 1rem;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 2px solid var(--primary-color);
        padding-bottom: 0.5rem;
    }

    .circuit-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        background: var(--card-color);
        border-radius: 6px;
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .circuit-item:hover {
        background-color: rgba(255, 184, 0, 0.05);
        transform: translateX(3px);
    }

    .circuit-item:last-child {
        margin-bottom: 0;
    }

    .circuit-name {
        color: var(--text-secondary);
        font-weight: 600;
        flex: 1;
    }

    .circuit-compounds {
        color: var(--primary-color);
        font-weight: 500;
        margin-left: 1rem;
    }

    /* Compound highlighting */
    .compound-soft {
        color: #ff3333;
        font-weight: 600;
    }

    .compound-medium {
        color: #ffff33;
        font-weight: 600;
    }

    .compound-hard {
        color: #ffffff;
        font-weight: 600;
    }

    /* Grip value highlighting */
    .perfect-grip {
        background-color: rgba(80, 255, 0, 0.3) !important;
        color: #000000 !important;
        font-weight: 700;
        box-shadow: inset 0 0 0 2px var(--perfect-grip);
    }

    .near-perfect-grip {
        background-color: rgba(255, 204, 0, 0.15) !important;
        color: var(--text-color) !important;
        font-weight: 500;
        box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.4);
    }

    /* Engine Power value highlighting */
    .perfect-power {
        background-color: rgba(80, 255, 0, 0.3) !important;
        color: #000000 !important;
        font-weight: 700;
        box-shadow: inset 0 0 0 2px var(--perfect-power);
    }

    .near-perfect-power {
        background-color: rgba(255, 204, 0, 0.15) !important;
        color: var(--text-color) !important;
        font-weight: 500;
        box-shadow: inset 0 0 0 1px rgba(255, 204, 0, 0.4);
    }

    /* Legend */
    .legend {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
        background: var(--section-color);
        border-radius: 8px;
        padding: 1.5rem;
        margin-top: 2rem;
        border: 1px solid var(--border-color);
    }

    .legend-item {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .legend-color {
        width: 24px;
        height: 24px;
        border-radius: 4px;
        border: 1px solid #333;
    }

    .legend-perfect {
        background-color: rgba(80, 255, 0, 0.3);
        border: 2px solid var(--perfect-grip);
    }

    .legend-near {
        background-color: rgba(255, 204, 0, 0.15);
        border: 1px solid rgba(255, 204, 0, 0.4);
    }

    /* Jump link hover effects */
    .tyre-container a:hover {
        background-color: var(--primary-color) !important;
        color: var(--secondary-color) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(255, 184, 0, 0.3);
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .circuit-table {
            grid-template-columns: repeat(2, 1fr);
            gap: 1.5rem;
        }
    }

    @media (max-width: 768px) {
        .container {
            padding: 1rem;
        }
        
        .setup-grid {
            grid-template-columns: 1fr;
        }

        .setup-item {
            grid-template-columns: 1fr;
            gap: 0.25rem;
        }

        .setup-header h2 {
            font-size: 1.3rem;
        }
        
        .game-version-filter {
            width: 100%;
            flex-wrap: wrap;
        }

        .game-version-btn {
            flex: 1 1 auto;
            padding: 0.6rem 0.4rem;
            font-size: 0.75rem;
            min-width: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Show mobile version of tab text */
        .tab-desktop {
            display: none;
        }

        .tab-mobile {
            display: inline;
            font-size: 0.75rem;
            line-height: 1.1;
        }

        /* Select dropdown mobile styles */
        .previous-select {
            font-size: 0.75rem;
        }

        .creators-grid {
            grid-template-columns: 1fr;
        }

        .circuit-table {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .tyre-container {
            padding: 1rem;
        }

        .data-table {
            font-size: 0.8rem;
        }

        .data-table th,
        .data-table td {
            padding: 0.5rem 0.25rem;
        }
    }