/* ==========================================
   KIDLIO GAME DETAIL PAGE
   Self-contained styles (works with or without DashboardHome.css)
   ========================================== */

/* Main Content - Sticky footer için padding */
.main-content {
    padding-bottom: 120px;
}

/* ==========================================
   BASE STYLES (for pages without DashboardHome.css)
   ========================================== */

/* main-content ve content-container Style.css'den devralınır - Recommendations ile aynı */

.dashboard-category-page {
    padding: 0;
    width: 100%;
}

.dashboard-category-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 16px;
    min-height: 44px;
}

/* Back Button - temel stiller */
.dashboard-back-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.5) 100%
    );
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #6b78f0;
    transition: all 0.25s ease;
    box-shadow:
        0 4px 12px rgba(107, 120, 240, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    text-decoration: none;
}

.dashboard-back-btn:hover {
    transform: scale(1.08) translateY(-1px);
    box-shadow:
        0 6px 16px rgba(107, 120, 240, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.03);
}

.dashboard-back-btn .back-icon {
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

body.dark .dashboard-back-btn {
    background: linear-gradient(
        145deg,
        rgba(25, 18, 60, 0.55) 0%,
        rgba(15, 10, 45, 0.65) 100%
    );
    border-color: rgba(148, 112, 245, 0.2);
    color: #a78bfa;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark .dashboard-back-btn:hover {
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   GAME DETAIL HEADER (overrides for game page)
   ========================================== */

.dashboard-category-page .dashboard-category-header.game-detail-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 0;
    max-width: 640px;
    margin: 0 auto;
    box-sizing: border-box;
}

.dashboard-category-page .game-detail-header .dashboard-back-btn {
    position: static;
}

.game-header-title {
    flex: 1;
    font-size: 1.35rem;
    font-weight: 700;
    color: #243769;
    text-align: center;
    margin: 0;
    padding: 0 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dark .game-header-title {
    color: rgba(255, 255, 255, 0.95);
}

/* Favori Butonu - dashboard-back-btn ile aynı stil */
.game-fav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.5) 100%
    );
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    box-shadow:
        0 4px 12px rgba(107, 120, 240, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.game-fav-btn:hover {
    transform: scale(1.08) translateY(-1px);
    box-shadow:
        0 6px 16px rgba(107, 120, 240, 0.15),
        0 3px 6px rgba(0, 0, 0, 0.03);
}

.game-fav-btn .favorite-icon {
    font-size: 1.1rem;
    line-height: 1;
}

.game-fav-btn.animate-favorite {
    animation: favoritePulse 0.4s ease;
}

@keyframes favoritePulse {
    0% { transform: scale(1); }
    15% { transform: scale(1.3); }
    30% { transform: scale(1.1); }
    45% { transform: scale(1.25); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

body.dark .game-fav-btn {
    background: linear-gradient(
        145deg,
        rgba(25, 18, 60, 0.55) 0%,
        rgba(15, 10, 45, 0.65) 100%
    );
    border-color: rgba(148, 112, 245, 0.2);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.dark .game-fav-btn:hover {
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.3),
        0 3px 6px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   GAME DETAIL CONTENT
   ========================================== */

.game-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px 20px;
    box-sizing: border-box;
}


/* ==========================================
   GAME SECTIONS
   ========================================== */

.game-section {
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.92) 0%,
        rgba(255, 255, 255, 0.72) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    padding: 16px;
    box-shadow:
        0 8px 32px rgba(107, 120, 240, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.25s ease;
    width: 100%;
    box-sizing: border-box;
}

.game-section:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 40px rgba(107, 120, 240, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Section Header - İkon + Başlık yan yana */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

/* Section Icon */
.section-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: linear-gradient(145deg, rgba(107, 120, 240, 0.12) 0%, rgba(148, 112, 245, 0.08) 100%);
    border: 1px solid rgba(107, 120, 240, 0.15);
}

/* Section Title */
.section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #243769;
    text-align: left;
    margin: 0;
    letter-spacing: -0.01em;
}

/* Section Colors - Icon focused (no left border) */
.section-about .section-icon {
    background: linear-gradient(145deg, rgba(6, 182, 212, 0.25) 0%, rgba(8, 145, 178, 0.18) 100%);
    border-color: rgba(6, 182, 212, 0.35);
}

.section-materials .section-icon {
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.18) 100%);
    border-color: rgba(245, 158, 11, 0.35);
}

.section-instructions .section-icon {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.18) 100%);
    border-color: rgba(16, 185, 129, 0.35);
}

.section-safety .section-icon {
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.25) 0%, rgba(234, 88, 12, 0.18) 100%);
    border-color: rgba(249, 115, 22, 0.35);
}

.section-visuals .section-icon {
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.25) 0%, rgba(2, 132, 199, 0.18) 100%);
    border-color: rgba(14, 165, 233, 0.35);
}

/* Dark Mode - Sections */
body.dark .game-section {
    background: linear-gradient(
        145deg,
        rgba(25, 18, 60, 0.6) 0%,
        rgba(15, 10, 45, 0.75) 100%
    );
    border-color: rgba(148, 112, 245, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

body.dark .section-icon {
    background: linear-gradient(145deg, rgba(129, 140, 248, 0.15) 0%, rgba(148, 112, 245, 0.1) 100%);
    border-color: rgba(129, 140, 248, 0.2);
}

body.dark .section-title {
    color: rgba(255, 255, 255, 0.95);
}

body.dark .section-about { border-left-color: #22d3ee; }
body.dark .section-materials { border-left-color: #fbbf24; }
body.dark .section-instructions { border-left-color: #34d399; }
body.dark .section-safety { border-left-color: #fb923c; }
body.dark .section-visuals { border-left-color: #38bdf8; }

/* ==========================================
   CONTENT TYPOGRAPHY
   ========================================== */

.game-description,
.safety-text {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
    margin: 0;
}

body.dark .game-description,
body.dark .safety-text {
    color: rgba(255, 255, 255, 0.8);
}

/* Materials List */
.materials-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.materials-list li {
    padding: 10px 0 10px 32px;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(107, 120, 240, 0.1);
}

.materials-list li:last-child {
    border-bottom: none;
}

.materials-list li::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
}

body.dark .materials-list li {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 112, 245, 0.15);
}

.no-materials {
    color: #6b7280;
    font-size: 0.9rem;
    text-align: left;
    font-style: italic;
}

body.dark .no-materials {
    color: rgba(255, 255, 255, 0.6);
}

/* Instructions List - Timeline Style */
.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.instructions-list li {
    padding: 14px 0 14px 44px;
    position: relative;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.65;
}

.instructions-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 4px;
    top: 14px;
    width: 26px;
    height: 26px;
    background: linear-gradient(145deg, #818cf8 0%, #6b78f0 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(107, 120, 240, 0.3);
    z-index: 1;
}

/* Timeline connecting line */
.instructions-list li::after {
    content: "";
    position: absolute;
    left: 16px;
    top: 40px;
    width: 2px;
    bottom: 0;
    background: linear-gradient(180deg, rgba(107, 120, 240, 0.5) 0%, rgba(107, 120, 240, 0.1) 100%);
}

.instructions-list li:last-child::after {
    display: none;
}

body.dark .instructions-list li {
    color: rgba(255, 255, 255, 0.8);
}

body.dark .instructions-list li::after {
    background: linear-gradient(180deg, rgba(129, 140, 248, 0.5) 0%, rgba(129, 140, 248, 0.1) 100%);
}

/* Visual Image */
.visual-image-container {
    margin-top: 16px;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
}

.visual-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Visual Suggestions List */
.visuals-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.visuals-list li {
    padding: 10px 0 10px 12px;
    position: relative;
    color: #4b5563;
    font-size: 0.93rem;
    line-height: 1.65;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.visuals-list li:last-child {
    border-bottom: none;
}

.visual-step {
    font-weight: 600;
    color: #0ea5e9;
}

body.dark .visuals-list li {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(56, 189, 248, 0.15);
}

body.dark .visual-step {
    color: #38bdf8;
}

/* ==========================================
   GAME FOOTER (sayfa akışında, orb buton)
   ========================================== */

.game-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 16px 32px;
}

/* ==========================================
   FIXED PILL (orb görünmüyorken ekranın altında)
   ========================================== */

.game-fixed-pill {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 12px 16px 20px;
    pointer-events: none;
}

.game-pill-btn {
    pointer-events: auto;
    position: relative;
    height: 44px;
    padding: 0 32px;
    border: none;
    border-radius: 22px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: white;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Orb ile aynı gradient */
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.4) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(219, 190, 255, 0.95) 0%,
            rgba(186, 156, 245, 0.9) 20%,
            rgba(167, 139, 250, 0.85) 40%,
            rgba(147, 112, 219, 0.9) 60%,
            rgba(186, 135, 200, 0.85) 80%,
            rgba(167, 139, 250, 0.95) 100%
        );

    /* Orb ile aynı 3D cam derinliği */
    box-shadow:
        inset 0 -8px 16px rgba(100, 60, 150, 0.4),
        inset 0 6px 12px rgba(255, 255, 255, 0.25),
        inset 3px 0 10px rgba(255, 200, 220, 0.2),
        inset -3px 0 10px rgba(150, 180, 255, 0.2),
        0 8px 30px rgba(147, 112, 219, 0.5),
        0 4px 15px rgba(107, 120, 240, 0.3);

    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Aura glow - pill şeklinde */
.game-pill-btn::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 32px;
    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(186, 156, 245, 0.5) 0%,
            rgba(167, 139, 250, 0.35) 30%,
            rgba(200, 160, 220, 0.25) 50%,
            rgba(150, 180, 255, 0.15) 70%,
            transparent 100%
        );
    filter: blur(6px);
    z-index: -1;
    pointer-events: none;
    animation: aura-pulse 4s ease-in-out infinite;
}

/* Cam yansıması - pill için */
.game-pill-btn .orb-highlight {
    position: absolute;
    top: 4px;
    left: 16%;
    width: 35%;
    height: 40%;
    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(255, 255, 255, 0.75) 0%,
            rgba(255, 255, 255, 0.4) 40%,
            transparent 70%
        );
    border-radius: 50%;
    pointer-events: none;
    transform: rotate(-10deg);
}

/* Sparklar - pill için (bireysel twinkle) */
.game-pill-btn .orb-sparks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    overflow: hidden;
    pointer-events: none;
}

.game-pill-btn .spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.6);
    animation: pill-spark-twinkle 3s ease-in-out infinite;
}

.game-pill-btn .spark:nth-child(1) { top: 25%; left: 12%; animation-delay: 0s; }
.game-pill-btn .spark:nth-child(2) { top: 65%; left: 30%; width: 2px; height: 2px; animation-delay: 0.6s; }
.game-pill-btn .spark:nth-child(3) { top: 30%; left: 50%; animation-delay: 1.2s; }
.game-pill-btn .spark:nth-child(4) { top: 60%; left: 72%; width: 2px; height: 2px; animation-delay: 1.8s; }
.game-pill-btn .spark:nth-child(5) { top: 35%; left: 88%; animation-delay: 2.4s; }

@keyframes pill-spark-twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Metin - nefes alan */
.game-pill-btn .btn-text-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
    text-shadow:
        0 1px 2px rgba(80, 40, 120, 0.4),
        0 0 15px rgba(255, 255, 255, 0.5);
    animation: text-breathe 3s ease-in-out infinite;
}

/* Hover */
.game-pill-btn:hover {
    transform: scale(1.03);
}

/* Active */
.game-pill-btn:active {
    transform: scale(0.96);
}

.game-pill-btn:active::before {
    opacity: 1;
    filter: blur(10px);
    transform: scale(1.05);
    transition: all 0.15s ease;
}

/* Dark mode */
body.dark .game-pill-btn {
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(180, 150, 230, 0.9) 0%,
            rgba(150, 120, 210, 0.85) 20%,
            rgba(130, 100, 200, 0.8) 40%,
            rgba(110, 80, 180, 0.85) 60%,
            rgba(140, 100, 170, 0.8) 80%,
            rgba(120, 90, 190, 0.9) 100%
        );

    box-shadow:
        inset 0 -8px 16px rgba(60, 30, 100, 0.5),
        inset 0 6px 12px rgba(255, 255, 255, 0.15),
        inset 3px 0 10px rgba(200, 150, 180, 0.15),
        inset -3px 0 10px rgba(120, 150, 220, 0.15),
        0 8px 30px rgba(148, 112, 245, 0.5),
        0 4px 15px rgba(167, 139, 250, 0.3);
}

body.dark .game-pill-btn::before {
    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(150, 120, 210, 0.5) 0%,
            rgba(130, 100, 200, 0.35) 30%,
            rgba(160, 120, 180, 0.25) 50%,
            rgba(120, 150, 220, 0.15) 70%,
            transparent 100%
        );
}

body.dark .game-pill-btn .orb-highlight {
    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(255, 255, 255, 0.55) 0%,
            rgba(255, 255, 255, 0.25) 40%,
            transparent 70%
        );
}

body.dark .game-pill-btn .spark {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 5px 2px rgba(200, 180, 255, 0.5);
}

body.dark .game-pill-btn .btn-text-content {
    text-shadow:
        0 1px 3px rgba(30, 20, 60, 0.5),
        0 0 12px rgba(200, 180, 255, 0.4);
}

/* Helper text under complete button */
.complete-helper-text {
    font-size: 0.8rem;
    color: #4b5563;
    text-align: center;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

body.dark .complete-helper-text {
    color: #d1d5db;
}

/* Game page orb button - daha belirgin */
.game-footer .magic-orb-btn {
    box-shadow:
        inset 0 -15px 30px rgba(100, 60, 150, 0.4),
        inset 0 10px 20px rgba(255, 255, 255, 0.25),
        inset 3px 0 15px rgba(255, 200, 220, 0.2),
        inset -3px 0 15px rgba(150, 180, 255, 0.2),
        0 8px 30px rgba(147, 112, 219, 0.5),
        0 4px 15px rgba(107, 120, 240, 0.3);
}

body.dark .game-footer .magic-orb-btn {
    box-shadow:
        inset 0 -15px 30px rgba(60, 30, 100, 0.5),
        inset 0 10px 20px rgba(255, 255, 255, 0.15),
        inset 3px 0 15px rgba(200, 150, 180, 0.15),
        inset -3px 0 15px rgba(120, 150, 220, 0.15),
        0 8px 30px rgba(148, 112, 245, 0.5),
        0 4px 15px rgba(167, 139, 250, 0.3);
}

.game-play-btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(145deg, #6b78f0 0%, #5b6ae8 50%, #4338ca 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 16px rgba(107, 120, 240, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.game-play-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(107, 120, 240, 0.4),
        0 3px 6px rgba(0, 0, 0, 0.1);
}

.game-play-btn:active {
    transform: translateY(0);
}

.game-play-btn.completed {
    background: linear-gradient(145deg, #10b981 0%, #059669 50%, #047857 100%);
    box-shadow:
        0 4px 16px rgba(16, 185, 129, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-play-btn.completed:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(16, 185, 129, 0.5),
        0 6px 12px rgba(0, 0, 0, 0.15);
}

.game-play-btn:disabled {
    cursor: default;
}

/* Game Complete Orb Button */
.game-footer .game-complete-orb {
    grid-column: unset;
    margin: 0 auto;
}

.game-complete-orb.completed {
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.4) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(134, 239, 172, 0.95) 0%,
            rgba(74, 222, 128, 0.9) 20%,
            rgba(34, 197, 94, 0.85) 40%,
            rgba(22, 163, 74, 0.9) 60%,
            rgba(21, 128, 61, 0.85) 80%,
            rgba(34, 197, 94, 0.95) 100%
        );
    box-shadow:
        inset 0 -15px 30px rgba(22, 101, 52, 0.4),
        inset 0 10px 20px rgba(255, 255, 255, 0.25),
        inset 3px 0 15px rgba(187, 247, 208, 0.2),
        inset -3px 0 15px rgba(134, 239, 172, 0.2),
        0 8px 25px rgba(34, 197, 94, 0.35);
}

.game-complete-orb.completed .btn-text-content {
    font-size: 0.85rem;
    line-height: 1.2;
}

body.dark .game-complete-orb.completed {
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(255, 255, 255, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(74, 222, 128, 0.9) 0%,
            rgba(34, 197, 94, 0.85) 20%,
            rgba(22, 163, 74, 0.8) 40%,
            rgba(21, 128, 61, 0.85) 60%,
            rgba(22, 101, 52, 0.8) 80%,
            rgba(34, 197, 94, 0.9) 100%
        );
    box-shadow:
        inset 0 -15px 30px rgba(5, 46, 22, 0.5),
        inset 0 10px 20px rgba(255, 255, 255, 0.15),
        inset 3px 0 15px rgba(134, 239, 172, 0.15),
        inset -3px 0 15px rgba(74, 222, 128, 0.15),
        0 8px 25px rgba(22, 163, 74, 0.4);
}

/* Konfeti Animasyonu */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall 3s ease-out forwards;
}

.confetti.circle {
    border-radius: 50%;
}

.confetti.square {
    border-radius: 2px;
}

.confetti.star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(-100px) rotate(0deg) scale(1);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(0.5);
    }
}

/* Kutlama mesajı */
.celebration-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 24px;
    padding: 24px 32px;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
    animation: celebrationPop 0.5s ease forwards;
}

.celebration-toast .celebration-emoji {
    font-size: 3rem;
    margin-bottom: 8px;
    display: block;
    animation: celebrationBounce 0.6s ease infinite;
}

.celebration-toast .celebration-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
    margin: 0;
}

.celebration-toast .celebration-subtext {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 4px;
}

@keyframes celebrationPop {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes celebrationBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

body.dark .celebration-toast {
    background: linear-gradient(145deg, rgba(15, 10, 45, 0.98) 0%, rgba(10, 6, 30, 0.95) 100%);
    border-color: rgba(52, 211, 153, 0.3);
}

body.dark .celebration-toast .celebration-text {
    color: #34d399;
}

body.dark .celebration-toast .celebration-subtext {
    color: #9ca3af;
}

.play-icon {
    font-size: 1.1rem;
}


body.dark .game-play-btn {
    background: linear-gradient(145deg, #818cf8 0%, #6b78f0 50%, #5b6ae8 100%);
    box-shadow:
        0 8px 24px rgba(129, 140, 248, 0.35),
        0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   GAME NOT FOUND
   ========================================== */

.game-not-found {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

/* No Results Card - self-contained styles */
.no-results-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.no-results-card:hover {
    transform: translateY(-5px);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #3730A3;
    margin: 0;
    line-height: 1.2;
}

.no-results-desc {
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.5;
    margin: 0;
    max-width: 300px;
}

.no-results-btn {
    margin-top: 16px;
    width: auto;
    padding: 12px 24px;
    border-radius: 16px;
    background: linear-gradient(145deg, #6b78f0 0%, #5b6ae8 100%);
    color: white;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(107, 120, 240, 0.3);
}

.no-results-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(107, 120, 240, 0.4);
}

/* Dark Mode - No Results */
body.dark .no-results-card {
    background: linear-gradient(145deg, rgba(15, 10, 45, 0.6) 0%, rgba(10, 6, 30, 0.6) 100%);
    border-color: rgba(129, 140, 248, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

body.dark .no-results-title {
    color: #E0E7FF;
}

body.dark .no-results-desc {
    color: #9CA3AF;
}

body.dark .no-results-btn {
    background: linear-gradient(145deg, #818cf8 0%, #6b78f0 100%);
}

/* ==========================================
   SKELETON LOADING
   ========================================== */

@keyframes skeletonShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-section {
    pointer-events: none;
}

.skeleton-section:hover {
    transform: none;
}

/* Skeleton base style */
.skeleton-text,
.skeleton-icon,
.skeleton-list-item {
    background: linear-gradient(
        90deg,
        rgba(107, 120, 240, 0.08) 0%,
        rgba(148, 112, 245, 0.15) 50%,
        rgba(107, 120, 240, 0.08) 100%
    );
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* Title skeleton in header */
.skeleton-title-text {
    display: inline-block;
    width: 140px;
    height: 18px;
    border-radius: 6px;
    vertical-align: middle;
}

/* Section icon skeleton */
.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    margin: 0 auto 12px auto;
}

/* Heading skeleton */
.skeleton-heading {
    width: 60%;
    height: 16px;
    margin: 0 auto 16px auto;
}

/* Line skeleton */
.skeleton-line {
    width: 100%;
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-line.short {
    width: 70%;
    margin: 0 auto;
}

/* List skeleton */
.skeleton-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-list-item {
    width: 100%;
    height: 40px;
    border-radius: 10px;
}

.skeleton-list-item.short {
    width: 80%;
}

/* Dark Mode - Skeleton */
body.dark .skeleton-text,
body.dark .skeleton-icon,
body.dark .skeleton-list-item {
    background: linear-gradient(
        90deg,
        rgba(148, 112, 245, 0.1) 0%,
        rgba(167, 139, 250, 0.2) 50%,
        rgba(148, 112, 245, 0.1) 100%
    );
    background-size: 200% 100%;
}

/* ==========================================
   LAZY LOAD IMAGES
   ========================================== */

.game-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-image.loaded {
    opacity: 1;
}

.game-image-placeholder {
    background: linear-gradient(
        145deg,
        rgba(107, 120, 240, 0.08) 0%,
        rgba(148, 112, 245, 0.05) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    min-height: 200px;
}

.game-image-placeholder::before {
    content: "🖼️";
    font-size: 2rem;
    opacity: 0.5;
}

body.dark .game-image-placeholder {
    background: linear-gradient(
        145deg,
        rgba(148, 112, 245, 0.1) 0%,
        rgba(107, 120, 240, 0.05) 100%
    );
}

