/* ============================================================
   LUNAPARK - ÇOCUKLAR İÇİN RENKLİ, ENERJİK & AYDINLIK TEMA
   ============================================================ */

body {
    background-color: #f0f7ff;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.18), transparent 35%),
        radial-gradient(circle at 85% 25%, rgba(251, 191, 36, 0.2), transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(168, 85, 247, 0.1), transparent 45%);
    background-attachment: fixed;
    color: #1e293b;
    font-family: 'Fredoka', 'Outfit', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
    background: #fec006;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
}
::-webkit-scrollbar-thumb:hover {
    background: #e5a500;
}

/* Hide scrollbar for category slider */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================================
   3D LUNAPARK LOGO (GÖKKUŞAĞI / RAINBOW 3D STİLİ)
   ============================================================ */
.lunapark-3d-text {
    font-family: 'Fredoka', sans-serif;
    font-weight: 900;
    background: linear-gradient(135deg, 
        #ff1493 0%, 
        #ff4500 14%, 
        #ffa500 28%, 
        #00c853 44%, 
        #00b0ff 58%, 
        #3d5afe 72%, 
        #8a2be2 86%, 
        #ff007f 100%);
    background-size: 220% 220%;
    animation: rainbowShift 14s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3.5px #ffffff;
    filter: drop-shadow(0 4px 0 #b71c1c)
            drop-shadow(0 7px 0 #7b1fa2)
            drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
    letter-spacing: -1px;
    display: inline-block;
}

@media (min-width: 640px) {
    .lunapark-3d-text {
        -webkit-text-stroke: 5px #ffffff;
        filter: drop-shadow(0 5px 0 #b71c1c)
                drop-shadow(0 9px 0 #7b1fa2)
                drop-shadow(0 16px 24px rgba(0, 0, 0, 0.45));
    }
}

.rainbow-text {
    background: linear-gradient(135deg, 
        #ff1493 0%, 
        #ff4500 16%, 
        #ffa500 33%, 
        #00c853 50%, 
        #00b0ff 66%, 
        #3d5afe 83%, 
        #8a2be2 100%);
    background-size: 200% 200%;
    animation: rainbowShift 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rainbow-badge {
    background: linear-gradient(135deg, 
        #ff1493 0%, 
        #ff4500 16%, 
        #ffa500 33%, 
        #00c853 50%, 
        #00b0ff 66%, 
        #3d5afe 83%, 
        #8a2be2 100%);
    background-size: 200% 200%;
    animation: rainbowShift 6s ease infinite;
}

.rainbow-logo-glow {
    filter: drop-shadow(0 0 12px rgba(255, 20, 147, 0.45))
            drop-shadow(0 0 20px rgba(0, 176, 255, 0.4));
}

/* ============================================================
   KRALOYUN MEŞHUR SARI KATEGORİ MENÜSÜ
/* ============================================================
   LUNAPARK NEŞELİ ÇOCUK GÖKKUŞAĞI (RAINBOW) KATEGORİ MENÜSÜ
   ============================================================ */
.kral-bar-bg {
    background: linear-gradient(135deg, 
        #ff1493 0%, 
        #ff4500 14%, 
        #ffa500 28%, 
        #00c853 44%, 
        #00b0ff 58%, 
        #3d5afe 72%, 
        #8a2be2 86%, 
        #ff007f 100%);
    background-size: 220% 220%;
    animation: rainbowShift 14s ease infinite;
    border-top: 3px solid rgba(255, 255, 255, 0.7);
    border-bottom: 3px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.kral-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    border-radius: 9999px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    font-family: 'Fredoka', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
}

.kral-nav-item:hover {
    background-color: #ffffff;
    color: #0f172a;
    text-shadow: none;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kral-nav-item.active {
    background: #ffffff;
    color: #0f172a;
    text-shadow: none;
    border-color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.kral-nav-item.active .nav-text {
    color: #0f172a;
}

.kral-nav-item .icon-wrap {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.nav-divider {
    width: 2px;
    height: 1.5rem;
    background-color: rgba(255, 255, 255, 0.45);
    margin: 0 0.15rem;
    flex-shrink: 0;
    border-radius: 9999px;
}

/* ============================================================
   BEYAZ & FERAH OYUN KARTLARI (KIDS PLAYFUL CARDS)
   ============================================================ */
.content-visibility-auto {
    content-visibility: auto;
    contain-intrinsic-size: 260px;
}

.game-card {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    will-change: transform;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.game-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: #f59e0b;
    box-shadow: 0 16px 30px -8px rgba(245, 158, 11, 0.3), 0 8px 16px -8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.game-card.is-locked:hover {
    border-color: #f59e0b;
    box-shadow: 0 16px 30px -8px rgba(245, 158, 11, 0.35);
}

.game-card .thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #e2e8f0;
}

.game-card .thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .thumb-img {
    transform: scale(1.08);
}

.game-card .play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.game-card .play-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #fec006;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transform: scale(0.8);
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.game-card:hover .play-badge {
    transform: scale(1);
}

.game-card.is-locked .play-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}

/* Action button in player view */
.action-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.action-btn:hover {
    background-color: #fffbeb;
    color: #b45309;
    border-color: #f59e0b;
    transform: scale(1.05);
}

/* Cinema mode active */
body.cinema-mode #playerView {
    position: relative;
    z-index: 35;
}

body.cinema-mode #cinemaOverlay {
    display: block;
}

/* ========================================== */
/* PODIUM & LEADERBOARD CREATIVE STYLING      */
/* ========================================== */
@keyframes crown-float {
    0%, 100% {
        transform: translateY(0) rotate(-4deg) scale(1);
    }
    50% {
        transform: translateY(-8px) rotate(4deg) scale(1.1);
    }
}

.crown-float {
    animation: crown-float 2.5s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes gold-halo {
    0%, 100% {
        box-shadow: 0 0 0 3px #fef08a, 0 10px 25px rgba(245, 158, 11, 0.45);
    }
    50% {
        box-shadow: 0 0 0 5px #fde047, 0 14px 30px rgba(245, 158, 11, 0.7);
    }
}

.gold-halo {
    animation: gold-halo 2.2s infinite ease-in-out;
}

/* 3D Podium Stepped Blocks */
.podium-block-gold {
    background: linear-gradient(180deg, #fef08a 0%, #facc15 35%, #eab308 70%, #ca8a04 100%);
    box-shadow: 0 10px 25px -5px rgba(234, 179, 8, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.8), inset 0 -3px 6px rgba(161, 98, 7, 0.5);
    border-top: 3px solid #ffffff;
}

.podium-block-silver {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 35%, #cbd5e1 70%, #94a3b8 100%);
    box-shadow: 0 8px 20px -5px rgba(148, 163, 184, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.9), inset 0 -3px 6px rgba(71, 85, 105, 0.4);
    border-top: 3px solid #ffffff;
}

.podium-block-bronze {
    background: linear-gradient(180deg, #fed7aa 0%, #fb923c 35%, #ea580c 70%, #9a3412 100%);
    box-shadow: 0 8px 20px -5px rgba(234, 88, 12, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.7), inset 0 -3px 6px rgba(154, 52, 18, 0.5);
    border-top: 3px solid #ffedd5;
}

/* Promo Card Visual Skin */
.promo-card-skin {
    background-image: url('assets/promo_card.jpg');
    background-size: cover;
    background-position: center right;
    position: relative;
}

/* ========================================== */
/* ANTI-COPY & CODE PROTECTION LAYER          */
/* ========================================== */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

img, a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* ========================================== */
/* CUSTOM LANGUAGE DROPDOWN SCROLLBAR & LOCK  */
/* ========================================== */
.custom-lang-scroll {
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 #f0f9ff;
}

.custom-lang-scroll::-webkit-scrollbar {
    width: 6px;
}

.custom-lang-scroll::-webkit-scrollbar-track {
    background: #f0f9ff;
    border-radius: 9999px;
    margin: 4px 0;
}

.custom-lang-scroll::-webkit-scrollbar-thumb {
    background: #38bdf8;
    border-radius: 9999px;
}

.custom-lang-scroll::-webkit-scrollbar-thumb:hover {
    background: #0284c7;
}

/* ============================================================
   LUNAPARK NEŞELİ ÇOCUK GÖKKUŞAĞI (RAINBOW) FOOTER PALETİ
   ============================================================ */
.rainbow-footer {
    background: linear-gradient(135deg, 
        #ff1493 0%, 
        #ff4500 14%, 
        #ffa500 28%, 
        #00c853 44%, 
        #00b0ff 58%, 
        #3d5afe 72%, 
        #8a2be2 86%, 
        #ff007f 100%);
    background-size: 220% 220%;
    animation: rainbowShift 14s ease infinite;
    position: relative;
    border-top: 5px solid #ffea00;
    box-shadow: 0 -8px 32px rgba(255, 69, 0, 0.25);
}

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

@media (prefers-reduced-motion: reduce) {
    .rainbow-footer {
        animation: none;
    }
}

.rainbow-glass {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.rainbow-glass:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.6);
}

.rainbow-link {
    color: rgba(255, 255, 255, 0.92);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.rainbow-link:hover {
    color: #ffffff;
    transform: translateX(4px);
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

/* ============================================================
   LUNAPARK NEŞELİ ÇOCUK GÖKKUŞAĞI (RAINBOW) KARTLAR
   ============================================================ */
.rainbow-card {
    background: linear-gradient(135deg, 
        #ff1493 0%, 
        #ff4500 14%, 
        #ffa500 28%, 
        #00c853 44%, 
        #00b0ff 58%, 
        #3d5afe 72%, 
        #8a2be2 86%, 
        #ff007f 100%);
    background-size: 220% 220%;
    animation: rainbowShift 14s ease infinite;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
    .rainbow-card {
        animation: none;
    }
}

/* ============================================================
   LUNAPARK ANİMASYONLU GÖKKUŞAĞI KENARLIK (RAINBOW BORDER BOX)
   ============================================================ */
.rainbow-border-box {
    background: linear-gradient(135deg, 
        #ff1493 0%, 
        #ff4500 14%, 
        #ffa500 28%, 
        #00c853 44%, 
        #00b0ff 58%, 
        #3d5afe 72%, 
        #8a2be2 86%, 
        #ff007f 100%);
    background-size: 220% 220%;
    animation: rainbowShift 14s ease infinite;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rainbow-border-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(255, 69, 0, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .rainbow-border-box {
        animation: none;
    }
}

/* ============================================================
   FIXED DAHA... (MORE) DROPDOWN MENU
   ============================================================ */
#moreNavMenu {
    position: fixed !important;
    z-index: 9999 !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   ADMIN PANEL GÖKKUŞAĞI (RAINBOW) ARKA PLAN
   ============================================================ */
.admin-rainbow-bg {
    background: linear-gradient(135deg, 
        #ff1493 0%, 
        #ff4500 14%, 
        #ffa500 28%, 
        #00c853 44%, 
        #00b0ff 58%, 
        #3d5afe 72%, 
        #8a2be2 86%, 
        #ff007f 100%);
    background-size: 220% 220%;
    animation: rainbowShift 14s ease infinite;
    background-attachment: fixed;
    min-height: 100vh;
}

@media (prefers-reduced-motion: reduce) {
    .admin-rainbow-bg {
        animation: none;
    }
}

/* ============================================================
   RESPONSIVE GAME PLAYER & MOBILE OPTIMIZATIONS
   ============================================================ */
@media (max-width: 768px) {
    #playerView {
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        margin-bottom: 1.5rem;
    }
    #playerView > div {
        border-radius: 1.25rem;
        border-width: 2px;
    }
    #gameFrameContainer {
        aspect-ratio: auto !important;
        width: 100% !important;
        height: 72vh !important;
        min-height: 480px !important;
        max-height: 82vh !important;
        touch-action: none;
        overscroll-behavior: contain;
    }
    #gameIframe {
        width: 100% !important;
        height: 100% !important;
        touch-action: none;
    }
}

/* Fullscreen mode across all devices */
#gameFrameContainer:fullscreen,
#gameFrameContainer:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    aspect-ratio: auto !important;
    background: #000 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#gameFrameContainer:fullscreen iframe,
#gameFrameContainer:-webkit-full-screen iframe {
    width: 100vw !important;
    height: 100vh !important;
    border: 0 !important;
}

#gameFrameContainer:fullscreen #fsFloatingCloseBtn,
#gameFrameContainer:-webkit-full-screen #fsFloatingCloseBtn {
    display: flex !important;
}

/* iOS Safari Fallback Fullscreen */
#gameFrameContainer.ios-mobile-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    z-index: 999999 !important;
    border-radius: 0 !important;
    aspect-ratio: auto !important;
    background: #000 !important;
}

#gameFrameContainer.ios-mobile-fullscreen iframe {
    width: 100vw !important;
    height: 100vh !important;
    border: 0 !important;
}

#gameFrameContainer.ios-mobile-fullscreen #fsFloatingCloseBtn {
    display: flex !important;
}

/* ============================================================
   CONTENT PROTECTION & ANTI-COPY SYSTEM
   ============================================================ */
body, .game-card, .kral-bar-bg, header, footer, #playerView {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}






