/* ========================================
   BOYAMA OYUNU - ANA SAYFA STİLLERİ
   ======================================== */

/* ========== ROOT VARIABLES ========== */
:root {
    --primary-gradient: linear-gradient(90deg, #FF6B6B, #4ECDC4, #45B7D1, #96CEB4, #FFEAA7, #DDA0DD);
    --bg-gradient: linear-gradient(135deg, #F8F9FF 0%, #E8F4FD 50%, #D1ECF1 100%);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 6px 25px rgba(255, 107, 107, 0.2);
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

/* ========== BODY & LAYOUT ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-dark);
}

/* ========== HEADER ========== */
header {
    background: var(--primary-gradient);
    padding: 15px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: rainbow-glow 3s ease-in-out infinite;
    text-decoration: none;
}

.search-container {
    display: flex;
    align-items: center;
}

.search-box {
    padding: 10px 15px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    width: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.search-box:focus {
    outline: none;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px;
    margin-left: 10px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ========== NAVIGATION MENU ========== */
.nav-categories {
    background: linear-gradient(90deg,
        rgba(255, 107, 107, 0.9),
        rgba(78, 205, 196, 0.9),
        rgba(69, 183, 209, 0.9),
        rgba(150, 206, 180, 0.9),
        rgba(255, 234, 167, 0.9),
        rgba(221, 160, 221, 0.9)
    );
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #2C3E50;
    cursor: pointer;
    margin: 0 auto 15px auto;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    width: fit-content;
    min-width: 200px;
    text-align: center;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.menu-toggle.active {
    background: #2C3E50;
    color: white;
    border-color: #2C3E50;
}

#menuIcon {
    margin-left: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.category-list {
    display: flex;
    gap: 15px;
    width: 100%;
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.category-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #2C3E50;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
}

.category-btn:hover,
.category-btn.active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
    border: 2px solid;
    border-image: var(--primary-gradient) 1;
    color: #1A237E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    font-weight: 900;
}

/* ========== MAIN CONTENT ========== */
.main-container {
    width: 100%;
    padding: 20px;
}

.page-title {
    text-align: left;
    font-size: 2.5rem;
    margin: 30px 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========== OYUN GRID ========== */
.oyun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
}

.oyun-karti {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.oyun-karti::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.oyun-karti:hover::before {
    opacity: 1;
}

.oyun-karti:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
}

.oyun-resmi {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.oyun-baslik {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    color: var(--text-dark);
    background: linear-gradient(45deg, #F8F9FF, #E8F4FD);
}

/* ========== ANIMATIONS ========== */
@keyframes rainbow-glow {
    0%, 100% { text-shadow: 2px 2px 4px rgba(255, 107, 107, 0.5); }
    16% { text-shadow: 2px 2px 4px rgba(78, 205, 196, 0.5); }
    32% { text-shadow: 2px 2px 4px rgba(69, 183, 209, 0.5); }
    48% { text-shadow: 2px 2px 4px rgba(150, 206, 180, 0.5); }
    64% { text-shadow: 2px 2px 4px rgba(255, 234, 167, 0.5); }
    80% { text-shadow: 2px 2px 4px rgba(221, 160, 221, 0.5); }
}

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

.oyun-karti:nth-child(odd) {
    animation: float 6s ease-in-out infinite;
}

.oyun-karti:nth-child(even) {
    animation: float 6s ease-in-out infinite 3s;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }

    .logo {
        font-size: 2rem;
    }

    .search-box {
        width: 250px;
    }

    .nav-categories {
        padding: 15px;
        text-align: center;
    }

    .menu-toggle {
        display: block !important;
        margin: 0 auto 10px auto;
    }

    .category-list {
        display: none;
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        max-height: 300px;
        overflow-y: auto;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 12px;
        margin-top: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.5);
    }

    .category-list.show {
        display: flex !important;
        animation: slideDown 0.3s ease;
    }

    .category-btn {
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 10px;
        text-align: center;
        background: rgba(255, 255, 255, 0.9);
        border: 2px solid rgba(0, 0, 0, 0.1);
        margin: 0;
        color: #2C3E50;
        font-weight: 600;
    }

    .category-btn:hover,
    .category-btn.active {
        background: var(--primary-gradient);
        color: white;
        border-color: transparent;
        transform: scale(1.02);
    }

    .oyun-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .page-title {
        font-size: 2rem;
        margin: 20px 15px;
    }

    .main-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .search-box {
        width: 200px;
    }

    .header-container {
        padding: 0 5px;
    }

    .nav-categories {
        padding: 10px;
    }

    .menu-toggle {
        width: calc(100% - 20px);
        font-size: 15px;
        padding: 10px 15px;
        min-width: auto;
    }

    .category-list {
        max-height: 250px;
        padding: 12px;
        gap: 8px;
    }

    .category-btn {
        padding: 12px 15px;
        font-size: 14px;
    }

    .oyun-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .main-container {
        padding: 5px;
    }

    .page-title {
        margin: 15px 10px;
        font-size: 1.8rem;
    }
}

/* Slide down animasyonu */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 300px;
    }
}

/* ========== BUYUK EKRANLAR ICIN OPTIMIZASYON ========== */
@media (min-width: 1400px) {
    .oyun-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 25px;
        padding: 30px;
    }

    .category-list {
        padding: 0 30px;
    }

    .header-container {
        padding: 0 30px;
    }
}

@media (min-width: 1800px) {
    .oyun-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 30px;
        padding: 40px;
    }
}

/* ========== SCROLL BAR ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #FF5252, #26C6DA, #42A5F5, #66BB6A, #FFEE58, #AB47BC);
}

/* ========== LOADING ANIMATION ========== */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #FF6B6B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* ========================================
   BOYAMA OYUNU - DETAY SAYFASI STİLLERİ
   ======================================== */

/* Detay sayfası body override */
body.oyun-detay {
    display: flex;
    flex-direction: column;
    touch-action: pan-x pan-y pinch-zoom;
    align-items: center;
    background: linear-gradient(135deg, #fceabb 0%, #f8b500 100%);
    overflow-x: hidden;
}

body.oyun-detay .main-container {
    display: flex;
    height: 100%;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    max-width: 1400px;
    padding: 0 10px;
    min-height: 100vh;
    justify-content: flex-start;
}

.toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 95vw;
    position: relative;
}

.toolbar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.color-row {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tools-row {
    padding-top: 5px;
}

.color {
    width: 35px;
    height: 35px;
    border: 3px solid #444;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

#colorPicker {
    width: 70px;
    background: linear-gradient(45deg,
        #ff0000 0%, #ff8000 14%, #ffff00 28%, #80ff00 42%,
        #00ff00 56%, #00ff80 70%, #00ffff 84%, #0080ff 98%, #0000ff 100%);
    background-size: 200% 200%;
    animation: rainbowShift 3s linear infinite;
}

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

.color[data-color="white"] {
    border: 3px solid #ccc;
    box-shadow: inset 0 0 0 1px #ddd;
}

/* Floating shade overlay */
.shade-overlay {
    position: absolute;
    bottom: -5px;
    transform: translateY(100%);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 8px 15px;
}

.shade-popup {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.shade-label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-right: 10px;
}

.shade-container {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
}

.shade-color {
    width: 30px;
    height: 30px;
    border: 2px solid #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.shade-color:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.shade-close {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.shade-close:hover {
    background: #c82333;
    transform: scale(1.1);
}

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.color:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color.active {
    border-color: #000;
    box-shadow: 0 0 0 3px #ffd700;
    transform: scale(1.05);
}

.color::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.color.active::after {
    opacity: 1;
    transform: scale(1);
}

.color.shade-parent {
    position: relative;
}

.color.shade-parent::after {
    content: '\25CF';
    position: absolute;
    top: -3px;
    left: -3px;
    font-size: 10px;
    color: #ffd700;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

#coloringSVG {
    width: 1024px;
    height: 768px;
    max-width: 800px;
    max-height: 70vh;
    border: 3px solid #444;
    background: white;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    user-select: none;
    object-fit: cover;
    touch-action: pan-x pan-y pinch-zoom;
    overflow: hidden;
    transform-origin: center center;
    clip-path: inset(0px);
}

.button {
    padding: 8px 15px;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    background: #6c757d;
    color: white;
    font-size: 20px;
    transition: all 0.2s ease;
    min-width: 45px;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button.active {
    background: #e74c3c;
    box-shadow: 0 0 0 2px #c0392b;
}

.button.save { background: transparent; font-size: 32px; padding: 4px 7.5px; }
.button.save:hover:not(:disabled) { background: rgba(39, 174, 96, 0.1); }
.button.gallery { background: transparent; font-size: 32px; padding: 4px 7.5px; }
.button.gallery:hover:not(:disabled) { background: rgba(142, 68, 173, 0.1); }
.button.share { background: transparent; font-size: 32px; padding: 4px 7.5px; }
.button.share:hover:not(:disabled) { background: rgba(52, 152, 219, 0.1); }
.button.print { background: transparent; font-size: 32px; padding: 4px 7.5px; }
.button.print:hover:not(:disabled) { background: rgba(23, 162, 184, 0.1); }
.button.continue { background: transparent; font-size: 32px; padding: 4px 7.5px; }
.button.continue:hover:not(:disabled) { background: rgba(243, 156, 18, 0.1); }

#eraser { background: transparent; font-size: 32px; padding: 4px 7.5px; }
#eraser:hover:not(:disabled) { background: rgba(233, 30, 99, 0.1); }
#clear { background: transparent; font-size: 32px; padding: 4px 7.5px; }
#clear:hover:not(:disabled) { background: rgba(255, 87, 34, 0.1); }
#download { background: transparent; font-size: 32px; padding: 4px 7.5px; }
#download:hover:not(:disabled) { background: rgba(76, 175, 80, 0.1); }
#undo { background: #ff9800; }
#undo:hover:not(:disabled) { background: #f57c00; }
#redo { background: #ff9800; }
#redo:hover:not(:disabled) { background: #f57c00; }
#fullscreenBtn { background: transparent; font-size: 32px; color: #000; padding: 4px 7.5px; }
#fullscreenBtn:hover:not(:disabled) { background: rgba(103, 58, 183, 0.1); }

.paintable {
    cursor: pointer;
    transition: all 0.1s ease;
    stroke-width: 0.7px;
    touch-action: pinch-zoom pan-x pan-y;
}

.paintable:hover {
    opacity: 0.8;
    stroke: #ff6b6b;
    stroke-width: 0.7px;
    filter: drop-shadow(0 0 5px rgba(255, 107, 107, 0.5));
}

body.oyun-detay h1 {
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px 0 5px 0;
    font-size: 2.2em;
    text-align: center;
}

.sound-icon {
    cursor: pointer;
    font-size: 32px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    min-height: 45px;
}

.sound-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

/* Gallery Styles */
.gallery-container {
    width: 95%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 100;
}

.gallery-container.show {
    display: block;
    animation: slideInUp 0.3s ease;
}

.main-container.gallery-mode .toolbar,
.main-container.gallery-mode svg,
.main-container.gallery-mode .stats {
    display: none;
}

.main-container.gallery-mode h1 {
    opacity: 0.3;
    transform: scale(0.8);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.main-container.gallery-mode .gallery-container {
    margin-top: 20px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    border-radius: 5px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-info {
    padding: 10px 0 0 0;
    text-align: center;
}

.gallery-item-date {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.gallery-item-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.gallery-item-actions button {
    padding: 5px 10px;
    font-size: 12px;
    min-width: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    animation: slideInUp 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close:hover {
    color: #000;
    background: #f0f0f0;
}

/* Save Modal */
.save-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.save-form input {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
}

.save-form input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Share Modal */
.share-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-button:hover {
    background: #f8f9fa;
    border-color: #3498db;
    transform: translateY(-2px);
}

.share-button span {
    font-size: 24px;
}

.stats {
    text-align: center;
    margin: 10px 0;
    color: #666;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2ecc71;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    font-family: 'Comic Sans MS', cursive;
    font-weight: bold;
    transform: translateX(300px);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #e74c3c;
}

.notification.warning {
    background: #f39c12;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Detay sayfasi responsive */
@media (max-width: 600px) {
    body.oyun-detay .toolbar {
        flex-direction: column;
        justify-content: center;
        max-width: 90vw;
        padding: 10px;
    }

    body.oyun-detay .toolbar-row {
        gap: 8px;
    }

    body.oyun-detay .color {
        width: 30px;
        height: 30px;
    }

    body.oyun-detay #colorPicker {
        width: 60px;
    }

    body.oyun-detay .color-row {
        padding-bottom: 6px;
    }

    body.oyun-detay .tools-row {
        padding-top: 3px;
    }

    body.oyun-detay .button {
        font-size: 18px;
        min-width: 40px;
        padding: 6px 12px;
    }

    body.oyun-detay .sound-icon {
        font-size: 28px;
        min-width: 40px;
        min-height: 40px;
        padding: 6px;
    }

    body.oyun-detay h1 {
        font-size: 2em;
    }

    #coloringSVG {
        width: 98vw;
        height: 50vh;
        max-height: 60vh;
        overflow: visible;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
        max-width: none;
    }

    .notification.show {
        transform: translateY(0);
    }
}

@media (min-width: 1200px) {
    #coloringSVG {
        width: 80vw;
        height: 70vh;
        max-width: 1000px;
        max-height: 80vh;
    }
}

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

/* ========== BREADCRUMB ========== */
.breadcrumb {
    padding: 12px 25px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #4ECDC4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #FF6B6B;
    text-decoration: underline;
}

.breadcrumb-sep {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-game {
    text-align: center;
    padding: 8px 15px;
}

/* ========== 404 HATA SAYFASI ========== */
.error-404 {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 40px auto;
}

.error-404-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.error-404 h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
}

.error-404 p {
    color: #666;
    font-size: 16px;
    margin-bottom: 25px;
}

.error-404-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.error-404-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== EMPTY CATEGORY ========== */
.empty-category {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

.empty-category-emoji {
    font-size: 48px;
    margin-bottom: 20px;
}

/* ========== PAGINATION ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 30px 20px;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 14px;
    background: white;
    color: #2C3E50;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-link:hover {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-link.active {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.page-dots {
    color: #999;
    padding: 0 5px;
    font-weight: bold;
}

/* ========== İLGİLİ OYUNLAR ========== */
.ilgili-oyunlar {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
}

.ilgili-oyunlar h2 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.ilgili-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 15px !important;
}

.ilgili-grid .oyun-karti {
    animation: none;
}

/* ========== OYUN DETAY - INLINE STIL TAŞIMA ========== */
.game-logo-link {
    text-decoration: none;
    display: inline;
}

.game-logo-text {
    margin-top: 15px;
    font-size: 22pt;
    display: inline;
}

.svg-placeholder {
    text-align: center;
    padding: 40px;
    margin: 20px;
}

.svg-placeholder-emoji {
    font-size: 64px;
    margin-bottom: 20px;
}

.svg-placeholder-img {
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.svg-placeholder h2 {
    color: #333;
}

.svg-placeholder p {
    color: #666;
    font-size: 16px;
}

/* ========== SAYFA BASINA DON BUTONU ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
