/* ============================================
   KIDS FUN THEME - Meraklı Kaşif
   Colorful & Playful Design for Children
   ============================================ */

/* Colorful Variables */
:root {
    /* Rainbow Palette for Kids */
    --kid-pink: #ff6b9d;
    --kid-pink-light: #ffa5c3;
    --kid-blue: #4ecdc4;
    --kid-blue-dark: #2eb8ae;
    --kid-yellow: #ffe66d;
    --kid-orange: #ff9f43;
    --kid-purple: #a55eea;
    --kid-green: #26de81;
    --kid-red: #fc5c65;
    
    /* Fun Gradients */
    --gradient-rainbow: linear-gradient(135deg, #ff6b9d 0%, #4ecdc4 50%, #ffe66d 100%);
    --gradient-party: linear-gradient(135deg, #ff6b9d 0%, #a55eea 50%, #4ecdc4 100%);
    --gradient-sunset: linear-gradient(135deg, #ff9f43 0%, #ff6b9d 50%, #a55eea 100%);
    --gradient-ocean: linear-gradient(135deg, #4ecdc4 0%, #44a3aa 100%);
    --gradient-candy: linear-gradient(135deg, #ff6b9d 0%, #ffe66d 100%);
    --gradient-sky: linear-gradient(180deg, #87ceeb 0%, #4ecdc4 100%);
    
    /* Background */
    --bg-overlay: rgba(30, 30, 60, 0.85);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #e8e8e8;
    --text-muted: #b8b8b8;
    
    /* Fun Shadows */
    --shadow-fun: 0 8px 25px rgba(255, 107, 157, 0.3);
    --shadow-pop: 0 10px 30px rgba(78, 205, 196, 0.4);
    --shadow-rainbow: 0 10px 40px rgba(255, 107, 157, 0.3), 0 5px 15px rgba(78, 205, 196, 0.3);
    
    /* Radius */
    --radius-fun: 20px;
    --radius-pop: 30px;
    --radius-bubble: 50%;
}

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background */
.background1 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -30;
    user-select: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    z-index: -29;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--kid-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--kid-pink);
}

/* ============================================
   HEADER - Fun & Colorful
   ============================================ */

.header {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.9) 0%, rgba(165, 94, 234, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--kid-yellow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.headerInner {
    background: transparent !important;
    margin: 0 !important;
}

/* Logo */
.logo-main {
    width: 280px;
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.4));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-main:hover {
    transform: scale(1.1) rotate(-3deg);
}

/* Search */
.headSearchFlex {
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.headSearchFlex:focus-within {
    border-color: var(--kid-yellow) !important;
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 230, 109, 0.5);
    transform: scale(1.02);
}

.searchTop {
    background: transparent;
    border: none !important;
    color: white;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
}

.searchTop::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.searchBtnTop {
    background: var(--kid-yellow) !important;
    color: #333 !important;
    border: none !important;
    border-radius: 0 50px 50px 0 !important;
    padding: 0 28px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.searchBtnTop:hover {
    background: var(--kid-orange) !important;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 159, 67, 0.5);
}

/* Navigation */
.headerNav {
    background: var(--gradient-party) !important;
    border-radius: 50px !important;
    padding: 12px 0 !important;
    box-shadow: var(--shadow-rainbow);
}

.mainUl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.mainUl li {
    border: none !important;
}

.main-link {
    padding: 8px 14px !important;
    color: white !important;
    font-weight: 700;
    font-size: 12px !important;
    border-radius: 20px !important;
    margin: 0 3px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.mainUl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.mainUl li {
    border: none !important;
}

.main-link {
    padding: 12px 24px !important;
    color: white !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 25px !important;
    margin: 0 6px !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.main-link::before {
    content: '🎮';
    position: absolute;
    left: -30px;
    transition: left 0.3s;
}

.main-link:hover::before {
    left: 8px;
}

.main-link:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    color: white !important;
    padding-left: 35px !important;
}

.main-link img {
    height: 22px;
    margin-right: 8px;
}

/* Buttons - Extra Fun */
.headLogBtn {
    display: flex;
    align-items: center;
    padding: 8px 16px !important;
    background: var(--gradient-candy) !important;
    border-radius: 50px !important;
    margin-left: 10px !important;
    color: #333 !important;
    font-weight: 700;
    font-size: 12px !important;
    border: 2px solid white !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    white-space: nowrap;
}

.headLogBtn:hover {
    transform: translateY(-5px) scale(1.1) rotate(-2deg);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.5);
    color: white !important;
}

.headLogBtn i {
    margin-right: 10px;
    font-size: 16px;
}

/* Theme Toggle */
.theme_buttom {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-light-btn,
.theme-dark-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
}

.theme-light-btn:hover,
.theme-dark-btn:hover {
    background: var(--kid-yellow);
    color: #333;
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 5px 20px rgba(255, 230, 109, 0.5);
}

.activeTheme {
    background: var(--kid-yellow) !important;
    color: #333 !important;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 230, 109, 0.6);
}

/* ============================================
   MAIN CONTENT - Playful
   ============================================ */

.homeMainBody {
    padding: 40px 0 60px;
}

/* Game Grid - Bigger & Colorful */
.game-block-outer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 30px 0;
}

/* Game Card - Super Fun */
.gameBox-single {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    border: 3px solid transparent !important;
    border-radius: var(--radius-fun) !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    aspect-ratio: 1;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.gameBox-single::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-fun);
    padding: 3px;
    background: var(--gradient-rainbow);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.gameBox-single:hover::before {
    opacity: 1;
}

.gameBox-single:hover {
    transform: translateY(-20px) scale(1.08) rotate(2deg);
    box-shadow: 0 25px 50px rgba(255, 107, 157, 0.4), 0 15px 30px rgba(78, 205, 196, 0.3);
    z-index: 100;
    border-color: var(--kid-pink) !important;
}

.game-single-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gameBox-single:hover .game-single-thumb {
    transform: scale(1.25);
}

/* Playful Overlay */
.game-hov-back {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gameBox-single:hover .game-hov-back {
    opacity: 1;
}

.game-name {
    color: white !important;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    margin: 0;
    transform: translateY(30px);
    transition: all 0.3s ease;
    text-shadow: 0 3px 10px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
}

.gameBox-single:hover .game-name {
    transform: translateY(0);
}

/* Fun Badge */
.game-tooltip1 {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: var(--gradient-party);
    padding: 8px 16px;
    border-radius: 25px;
    box-shadow: 0 5px 20px rgba(165, 94, 234, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tooltip-txt1 {
    color: white;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   HEADINGS - Extra Colorful
   ============================================ */

.heading-block {
    background: var(--gradient-rainbow) !important;
    border-radius: var(--radius-fun) !important;
    padding: 24px 32px !important;
    color: white !important;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border: 3px solid white;
}

.heading-block::before {
    content: '⭐';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    animation: star-spin 3s linear infinite;
}

@keyframes star-spin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.heading-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: white;
}

.heading-block h2 {
    color: white !important;
    font-size: 26px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 3px 10px rgba(0,0,0,0.3);
    padding-left: 40px;
}

/* ============================================
   SECONDARY GAME LIST
   ============================================ */

.game-block-outer2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.gameBox-single1 {
    position: relative;
    display: flex;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-fun);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gameBox-single1:hover {
    transform: translateX(20px) scale(1.02);
    border-color: var(--kid-pink);
    box-shadow: var(--shadow-fun);
}

.gamesingle1Thumb {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-right: 20px;
    border: 3px solid var(--kid-blue);
}

/* ============================================
   FOOTER - Fun
   ============================================ */

.footer {
    background: linear-gradient(180deg, #1a1a3a 0%, #2d1b4e 100%);
    padding: 60px 0 40px;
    margin-top: 80px;
    border-top: 5px solid var(--kid-pink);
}

.footlinksflex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.footlinksflex a {
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

.footlinksflex a:hover {
    background: var(--gradient-party);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    border-color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .headerInner {
        margin: 0 10px !important;
    }
    
    .logo-main {
        width: 220px;
    }
    
    .hide992 {
        display: none !important;
    }
    
    .barsBtn {
        display: block !important;
        color: white;
        font-size: 28px;
    }
    
    .game-block-outer {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .heading-block {
        padding: 20px 24px !important;
    }
    
    .heading-block h2 {
        font-size: 20px;
        padding-left: 35px;
    }
    
    .heading-block::before {
        font-size: 24px;
        left: 10px;
    }
    
    .game-block-outer {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 15px 0;
    }
    
    .gameBox-single {
        border-radius: 15px !important;
    }
    
    .main-link {
        padding: 10px 18px !important;
        font-size: 13px;
    }
    
    .logo-main {
        width: 180px;
    }
}

/* ============================================
   ANIMATIONS - Super Fun
   ============================================ */

@keyframes pop-in {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes rainbow-glow {
    0% { box-shadow: 0 0 20px var(--kid-pink); }
    25% { box-shadow: 0 0 20px var(--kid-blue); }
    50% { box-shadow: 0 0 20px var(--kid-yellow); }
    75% { box-shadow: 0 0 20px var(--kid-purple); }
    100% { box-shadow: 0 0 20px var(--kid-pink); }
}

/* Entry Animation */
.gameBox-single {
    animation: pop-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

.game-block-outer .gameBox-single:nth-child(1) { animation-delay: 0.05s; }
.game-block-outer .gameBox-single:nth-child(2) { animation-delay: 0.1s; }
.game-block-outer .gameBox-single:nth-child(3) { animation-delay: 0.15s; }
.game-block-outer .gameBox-single:nth-child(4) { animation-delay: 0.2s; }
.game-block-outer .gameBox-single:nth-child(5) { animation-delay: 0.25s; }
.game-block-outer .gameBox-single:nth-child(6) { animation-delay: 0.3s; }
.game-block-outer .gameBox-single:nth-child(7) { animation-delay: 0.35s; }
.game-block-outer .gameBox-single:nth-child(8) { animation-delay: 0.4s; }

/* Fun cursor */
body {
    cursor: default;
}

a, button {
    cursor: pointer;
}

/* Selection */
::selection {
    background: var(--kid-pink);
    color: white;
}
