/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(220, 53, 69, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Menu Toggle Buttons */
.menu-toggle {
    position: fixed;
    top: 20px;
    z-index: 1001;
    background: linear-gradient(135deg, #ff6b00, #dc3545);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    color: white;
    font-size: 1.5rem;
}

.left-toggle {
    left: 20px;
}

.right-toggle {
    right: 20px;
    background: linear-gradient(135deg, #dc3545, #8b0000);
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Lateral Menu Styles */
.lateral-menu {
    position: fixed;
    top: 0;
    width: 350px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(45, 45, 45, 0.98) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.left-menu {
    left: -350px;
    border-right: 2px solid rgba(255, 107, 0, 0.3);
}

.right-menu {
    right: -350px;
    border-left: 2px solid rgba(220, 53, 69, 0.3);
}

.left-menu.open {
    left: 0;
}

.right-menu.open {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-header {
    padding: 30px 20px 20px;
    border-bottom: 1px solid rgba(255, 107, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right-menu .menu-header {
    border-bottom-color: rgba(220, 53, 69, 0.3);
}

.menu-header h3 {
    color: #ff6b00;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
}

.right-menu .menu-header h3 {
    color: #dc3545;
}

.menu-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: rgba(255, 107, 0, 0.2);
    color: #ff6b00;
}

.right-menu .menu-close:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.menu-content {
    padding: 20px;
}

.season-item {
    padding: 15px;
    margin-bottom: 10px;
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 107, 0, 0.1);
}

.season-item:hover {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.2);
    transform: translateX(5px);
}

.season-item.active {
    border-color: #ff6b00;
    background: rgba(255, 107, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 107, 0, 0.4);
}

.season-item h4 {
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.season-item p {
    color: #cccccc;
    font-size: 0.9rem;
}

.rules-section {
    padding: 20px;
}

.rules-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.rule-link:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    transform: translateX(-5px);
    color: #ffffff;
}

.season-indicator {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #ffd700;
    margin-top: 5px;
    font-family: 'Rajdhani', sans-serif;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2) 0%, rgba(220, 53, 69, 0.2) 100%);
    border-bottom: 3px solid #ff6b00;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.02) 20px
    );
}

.championship-title {
    position: relative;
    z-index: 2;
}

.heat-logo {
    font-family: 'Orbitron', monospace;
    font-size: 4rem;
    font-weight: 900;
    color: #ff6b00;
    text-shadow: 
        0 0 20px rgba(255, 107, 0, 0.8),
        0 0 40px rgba(255, 107, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.5);
    display: block;
    letter-spacing: 8px;
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-top: 10px;
    letter-spacing: 4px;
}

/* Section Titles */
.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #ff6b00;
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ff6b00, transparent);
}

/* Podium Section */
.podium-section {
    padding: 80px 0;
    background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    margin-top: 50px;
}

.podium-place {
    text-align: center;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

.first-place {
    order: 2;
    animation-delay: 0.2s;
}

.second-place {
    order: 1;
    animation-delay: 0.4s;
}

.third-place {
    order: 3;
    animation-delay: 0.6s;
}

.player-photo-container {
    position: relative;
    margin-bottom: 20px;
}

.player-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.first-place .player-photo {
    width: 180px;
    height: 180px;
    border-color: #ffd700;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.6),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

.second-place .player-photo {
    border-color: #c0c0c0;
    box-shadow: 
        0 0 20px rgba(192, 192, 192, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

.third-place .player-photo {
    border-color: #cd7f32;
    box-shadow: 
        0 0 20px rgba(205, 127, 50, 0.4),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

.player-photo:hover {
    transform: scale(1.1);
}

.position-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: #000;
    animation: pulse 2s infinite;
}

.position-badge.gold {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.position-badge.silver {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.6);
}

.position-badge.bronze {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.6);
}

.crown {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.player-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.first-place .player-name {
    font-size: 2.2rem;
    color: #ffd700;
}

.player-points {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 20px;
}

.podium-base {
    width: 120px;
    height: 80px;
    margin: 0 auto;
    position: relative;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #000;
}

.first-place .podium-base {
    height: 120px;
    width: 140px;
}

.gold-base {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.silver-base {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4);
}

.bronze-base {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    box-shadow: 0 0 20px rgba(205, 127, 50, 0.4);
}

/* Previous Races Section */
.previous-races-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.races-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.race-card {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(220, 53, 69, 0.1) 100%);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 15px;
    padding: 25px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.race-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.race-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b00;
    margin-bottom: 15px;
}

.race-results {
    list-style: none;
}

.race-results li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.race-results li:last-child {
    border-bottom: none;
}

.race-position {
    font-weight: 700;
    color: #ffd700;
    margin-right: 10px;
}

/* Carousel Section */
.carousel-section {
    padding: 80px 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 400px;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 0, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #ff6b00;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: -25px;
}

.next-btn {
    right: -25px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: #ff6b00;
}

/* All Players Section */
.all-players-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.2);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.player-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(220, 53, 69, 0.1) 100%);
    border: 2px solid rgba(255, 107, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    border-color: #ff6b00;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.player-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff6b00;
    margin-bottom: 15px;
}

.player-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.player-card p {
    color: #cccccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .heat-logo {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .podium {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .podium-place {
        order: initial !important;
    }
    
    .first-place {
        margin-bottom: 20px;
    }
    
    .player-photo {
        width: 120px;
        height: 120px;
    }
    
    .first-place .player-photo {
        width: 150px;
        height: 150px;
    }
    
    .races-grid {
        grid-template-columns: 1fr;
    }
    
    .players-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .prev-btn {
        left: -20px;
    }
    
    .next-btn {
        right: -20px;
    }
    
    /* Lateral Menu Mobile Styles */
    .lateral-menu {
        width: 300px;
    }
    
    .left-menu {
        left: -300px;
    }
    
    .right-menu {
        right: -300px;
    }
    
    .menu-toggle {
        top: 15px;
        width: 45px;
        height: 45px;
    }
    
    .menu-toggle span {
        width: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .heat-logo {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .podium-section,
    .previous-races-section,
    .carousel-section,
    .all-players-section {
        padding: 40px 0;
    }
}