/* ========================================
   UNIFIED GAME PAGE STYLES
   Orange-Red Theme - Consistent with Main Site
   Colors: #FF6B6B (Coral Red) & #FF8E53 (Orange)
   ======================================== */

/* ===== GLOBAL RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    font-family: '__Nunito_c77b14', '__Nunito_Fallback_c77b14', Arial, sans-serif;
    background: linear-gradient(135deg, #0C0D14 0%, #1a1b2e 100%);
    color: #F9FAFF;
    min-height: 100vh;
    scroll-behavior: smooth;
}

/* ===== GAME CONTROL BUTTONS ===== */
.controlla {
    border-radius: 25px !important;
    width: 50% !important;
    margin: 5% !important;
    padding: 3% !important;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
    border: none !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.controlla:hover {
    background: linear-gradient(135deg, #FF8E53, #FF6B6B) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4) !important;
}

.controlla:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4) !important;
}

/* ===== HEADER STYLING ===== */
.css-1geg79l {
    background: rgba(12, 13, 20, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 107, 107, 0.2) !important;
}

/* ===== LOGO FULL OPACITY ===== */
.css-1vhz41m,
.css-v5k1q0,
.css-15nij48,
.css-1vhz41m img,
.css-v5k1q0 img {
    opacity: 1 !important;
}

.css-1vhz41m > div,
.css-v5k1q0 > div {
    opacity: 1 !important;
}

/* ===== ALL BUTTONS - ORANGE-RED THEME ===== */
button,
.btn,
.button,
input[type="button"],
input[type="submit"],
.game-button {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    border: 2px solid #FF6B6B !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
}

button:hover,
.btn:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.game-button:hover {
    background: linear-gradient(135deg, #FF8E53, #FF6B6B) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3) !important;
}

/* ===== GAME CONTAINER - COOL GLOWING EFFECT ===== */
.game-container,
#game-container,
.game-frame,
#gameFrame,
iframe[id*="game"],
iframe[class*="game"] {
    border-radius: 16px !important;
    overflow: hidden !important;
    border: 3px solid transparent !important;
    background: linear-gradient(#0C0D14, #0C0D14) padding-box,
                linear-gradient(135deg, #FF6B6B, #FF8E53, #FF6B6B) border-box !important;
    box-shadow: 
        0 0 20px rgba(255, 107, 107, 0.4),
        0 0 40px rgba(255, 142, 83, 0.3),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 60px rgba(255, 107, 107, 0.1) !important;
    position: relative !important;
    animation: pulseGlow 3s ease-in-out infinite !important;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 107, 107, 0.4),
            0 0 40px rgba(255, 142, 83, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.3),
            inset 0 0 60px rgba(255, 107, 107, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 107, 107, 0.6),
            0 0 60px rgba(255, 142, 83, 0.5),
            0 12px 40px rgba(0, 0, 0, 0.4),
            inset 0 0 80px rgba(255, 107, 107, 0.15);
    }
}

/* Add animated gradient border effect */
.game-container::before,
#game-container::before,
.game-frame::before,
#gameFrame::before {
    content: '' !important;
    position: absolute !important;
    top: -3px !important;
    left: -3px !important;
    right: -3px !important;
    bottom: -3px !important;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53, #FF6B6B, #FF8E53) !important;
    border-radius: 16px !important;
    z-index: -1 !important;
    background-size: 300% 300% !important;
    animation: gradientShift 4s ease infinite !important;
    filter: blur(8px) !important;
    opacity: 0.7 !important;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===== GAME INFO SECTIONS ===== */
.game-info,
.game-description,
.game-details,
.game-about,
.description-container {
    background: rgba(55, 57, 82, 0.6) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    border: 1px solid rgba(255, 107, 107, 0.2) !important;
    backdrop-filter: blur(10px) !important;
}

/* ===== HEADINGS - ORANGE-RED GRADIENT ===== */
h1, h2, h3 {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ===== LINKS - ORANGE-RED THEME ===== */
a {
    color: #FF8E53 !important;
    transition: color 0.3s ease !important;
}

a:hover {
    color: #FF6B6B !important;
}

/* ===== GAME CONTROLS ===== */
.game-controls,
.controls {
    background: rgba(55, 57, 82, 0.8) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin: 16px 0 !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
}

/* ===== FULLSCREEN BUTTON ===== */
.fullscreen-btn,
button[aria-label*="fullscreen"],
button[aria-label*="Fullscreen"] {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    color: #fff !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.fullscreen-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4) !important;
}

/* ===== RATING/STARS ===== */
.rating,
.stars,
.game-rating {
    color: #FF8E53 !important;
}

/* ===== TAGS ===== */
.tag,
.game-tag,
.category-tag {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 142, 83, 0.2)) !important;
    border: 1px solid rgba(255, 107, 107, 0.4) !important;
    color: #FF6B6B !important;
    border-radius: 6px !important;
    padding: 4px 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.tag:hover,
.game-tag:hover,
.category-tag:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 142, 83, 0.3)) !important;
    transform: translateY(-1px) !important;
}

/* ===== RELATED GAMES SECTION ===== */
.related-games,
.similar-games,
.recommended-games {
    margin-top: 40px !important;
}

.related-games h2,
.similar-games h2,
.recommended-games h2 {
    color: #FF6B6B !important;
    margin-bottom: 20px !important;
}

/* ===== GAME CARDS ===== */
.game-card {
    background: rgba(55, 57, 82, 0.6) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
}

.game-card:hover {
    transform: translateY(-8px) !important;
    border-color: #FF6B6B !important;
    box-shadow: 0 12px 24px rgba(255, 107, 107, 0.3) !important;
}

/* ===== LOADING SCREEN ===== */
.loading,
.loader,
.game-loading {
    border: 4px solid rgba(255, 107, 107, 0.2) !important;
    border-top: 4px solid #FF6B6B !important;
    border-radius: 50% !important;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track {
    background: rgba(55, 57, 82, 0.3) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    border-radius: 4px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #FF8E53, #FF6B6B) !important;
}

/* ===== FOCUS STATES ===== */
*:focus-visible {
    outline: 2px solid #FF6B6B !important;
    outline-offset: 2px !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .controlla {
        width: 80% !important;
        padding: 4% !important;
        font-size: 14px !important;
    }
    
    .game-info,
    .game-description,
    .game-details {
        padding: 16px !important;
        margin: 16px 0 !important;
    }
}

/* ===== PROFESSIONAL ENHANCEMENTS ===== */
.game-page-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* ===== SIDEBAR ACTIVE STATES ===== */
.Sidebar_active__8_VjJ {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 142, 83, 0.15)) !important;
    border-left: 4px solid #FF6B6B !important;
}

/* ===== GAME THUMBNAILS - MATCHING INDEX PAGE ===== */
.GameThumb_gameThumbLinkDesktop__LB7NJ {
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: block;
    background: rgba(55, 57, 82, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.GameThumb_gameThumbLinkDesktop__LB7NJ:hover {
    transform: translateY(-8px);
    border-color: #FF6B6B;
    box-shadow: 0 12px 24px rgba(255, 107, 107, 0.3);
}

.GameThumb_gameThumbImage__isqyS {
    transition: transform 0.3s ease;
    border-radius: 12px 12px 0 0;
    width: 100%;
    height: auto;
    display: block;
}

.GameThumb_gameThumbLinkDesktop__LB7NJ:hover .GameThumb_gameThumbImage__isqyS {
    transform: scale(1.05);
}

/* ===== GAME TITLE CONTAINER - TRANSPARENT WITH ORANGE-RED BLUR ===== */
.GameThumb_gameThumbTitleContainer__4f8BU {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255, 107, 107, 0.85), rgba(255, 142, 83, 0.65));
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.GameThumb_gameThumbLinkDesktop__LB7NJ:hover .GameThumb_gameThumbTitleContainer__4f8BU {
    opacity: 0.7;
}

/* ===== CAROUSEL SECTIONS ===== */
.Carousel_simpleCarouselContainer__jOmRF {
    margin-bottom: 32px;
    padding: 0 16px;
    background: transparent;
}

.Carousel_carouselTitleContainerDiv__Ci82c {
    margin-bottom: 16px;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== SECTION TITLES - ORANGE-RED GRADIENT ===== */
.Carousel_carouselTitle__kXgiB {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ===== VIEW MORE LINKS ===== */
.Carousel_carouselTitleLink__Ldlwt {
    color: #FF6B6B;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 142, 83, 0.2));
    border: 2px solid rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
}

.Carousel_carouselTitleLink__Ldlwt:hover {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* ===== NAVIGATION ARROWS - ORANGE-RED ===== */
.GameCarousel_primeCarouselArrow__BmHOa {
    background: rgba(55, 57, 82, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 48px !important;
    height: 48px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.GameCarousel_primeCarouselArrow__BmHOa:hover {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53) !important;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.GameCarousel_primeCarouselArrow__BmHOa:active {
    transform: scale(0.95);
}

/* ===== SEARCH BAR ===== */
.css-174kd1d {
    height: 36px !important;
    font-size: 14px !important;
    padding-left: 12px !important;
    background-color: rgba(55, 57, 82, 0.6) !important;
    border: 1px solid rgba(255, 107, 107, 0.3) !important;
    border-radius: 18px !important;
    opacity: 1 !important;
}

.css-174kd1d:focus {
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2) !important;
    background-color: rgba(55, 57, 82, 0.8) !important;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
    background: rgb(48, 49, 61) !important;
    color: white;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-results div:hover {
    background: rgba(255, 107, 107, 0.2) !important;
}

/* ===== CATEGORY ICONS ===== */
.css-nb4mi8,
.css-inysc7 {
    background: rgba(55, 57, 82, 0.4);
    border-radius: 12px;
    padding: 12px;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 107, 107, 0.1);
}

.css-nb4mi8:hover,
.css-inysc7:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #FF6B6B;
    transform: translateY(-2px);
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.GameThumb_gameThumbImage__isqyS {
    will-change: transform;
}

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

/* ===== HOVER EFFECTS FOR TOUCH DEVICES ===== */
@media (hover: none) {
    .GameThumb_gameThumbLinkDesktop__LB7NJ:hover {
        transform: none;
    }
    
    .GameThumb_gameThumbLinkDesktop__LB7NJ:active {
        transform: scale(0.98);
    }
}
