:root {
    --primary-color: #2196F3;
    --primary-dark: #1976D2;
    --success-color: #4CAF50;
    --danger-color: #f44336;
    --warning-color: #FFC107;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f8f8f5;
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.5;
    /* Kağıt dokusu - daha az yoğun yuvarlaklar */
    background-image:
        /* Hafif kağıt dokusu - daha az nokta */
        url("data:image/svg+xml,%3Csvg width='400' height='400' viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M44 72c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm192 100c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-172-28c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm252 124c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM136 360c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm224-304c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM48 344c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm112-260c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm92-44c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM128 252c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"),
        /* Kağıt çizgileri */
        linear-gradient(rgba(66, 66, 66, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 66, 66, 0.02) 1px, transparent 1px);
    background-size: 
        400px 400px,
        50px 50px,
        50px 50px;
    background-position: 
        0 0,
        0 0,
        0 0;
}

/* Header Styles */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    flex-wrap: nowrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    justify-content: flex-end;
    min-width: 300px;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    text-decoration: none;
    position: relative;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-title:hover {
    background-color: rgba(0,0,0,0.03);
}

.header-title span {
    color: #444232;
}

.site-logo {
    height: 48px;
    width: auto;
    display: block;
    margin: -4px 0;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.nav-link.active {
    background: #e0f2fe;
    color: #0284c7;
}

/* Search Results Header */
.search-results-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    background: transparent;
    border-radius: 8px;
    margin: 0;
    box-shadow: none;
    flex-wrap: wrap;
}

.mobile-header {
    display: none;
    width: 100%;
    padding: 1rem;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.mobile-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.mobile-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.mobile-search-toggle,
.mobile-filter-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 0.5rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.mobile-search-toggle:hover,
.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.mobile-search-toggle:active,
.mobile-filter-toggle:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.filter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 0.75rem;
    height: 0.75rem;
    background: #ef4444;
    border-radius: 50%;
}

.filter-section-title {
    display: none;
    width: 100%;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin: 1rem 0 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-filter-actions {
    display: none;
    width: 100%;
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    gap: 0.75rem;
}

.apply-filters-btn,
.clear-filters-btn {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    border: none;
}

.apply-filters-btn {
    background: #3b82f6;
    color: white;
}

.apply-filters-btn:hover {
    background: #2563eb;
}

.clear-filters-btn {
    background: #f1f5f9;
    color: #64748b;
}

.clear-filters-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.search-box {
    display: flex;
    gap: 0.25rem;
    min-width: 280px;
    position: relative;
}

.header-right .search-box {
    min-width: 260px;
}

.category-select {
    position: relative;
    min-width: 180px;
}

.category-select select {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    cursor: pointer;
    appearance: none;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    letter-spacing: 0.3px;
}

.category-select::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.category-select:hover::after {
    transform: translateY(-50%) rotate(-180deg);
}

.category-select select:focus {
    outline: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.category-select select:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.category-select select option {
    background: #fff;
    color: #1e293b;
    padding: 10px;
    font-weight: 500;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    margin: 2rem 0;
}

.no-results i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: #64748b;
    font-size: 1rem;
}

.quick-search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    padding-right: 3rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    background: #f1f5f9;
    
    color: #1e293b;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.quick-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.quick-search-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    border: none;
    border: 1px solid #eee;
}

.quick-search-input:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quick-search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.quick-search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.quick-search-button:active {
    transform: translateY(-50%) scale(0.98);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* School Filters */
.school-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
    flex-wrap: wrap;
}

.age-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--badge-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.age-badge-text {
    display: none;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Tooltip Stili */
.custom-tooltip {
    position: fixed;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    max-width: 200px;
    text-align: center;
    transform: translateY(-0px) translateX(-50%);
    letter-spacing: 0.3px;
    margin-top: 0px;
}

.custom-tooltip.visible {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
}

.custom-tooltip::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #2563eb;
}

.custom-tooltip.visible::after {
    opacity: 1;
}

.age-badge::before,
.age-badge::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.age-badge::before {
    inset: -4px;
    border: 2px solid var(--badge-color);
    opacity: 0;
}

.age-badge::after {
    inset: -8px;
    border: 2px solid var(--badge-color);
    opacity: 0;
}

.age-badge:hover {
    transform: translateY(-2px);
}

.age-badge:hover::before {
    opacity: 0.4;
}

.age-badge:hover::after {
    opacity: 0.2;
}

.age-badge.active {
    transform: scale(1.1);
}

.age-badge.active::before {
    opacity: 0.4;
    animation: pulseRing 2s ease-out infinite;
}

.age-badge.active::after {
    opacity: 0.2;
    animation: pulseRing 2s ease-out infinite 0.5s;
}

.age-badge.small {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
}

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

/* Results Info */
/* Maskot ve Konuşma Balonu */
.mascot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
}

.scroll-buttons {
    position: absolute;
    top: -150px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scroll-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #444232;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scroll-button:hover {
    background-color: #5a5643;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.scroll-button:active {
    transform: translateY(0);
    background-color: #363425;
}

.scroll-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.mascot-image {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
    margin-left: 15px;
}

.mascot-image:hover {
    transform: translateY(-5px);
}

.speech-bubble {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    z-index: 1;
   
    animation: fadeIn 0.5s ease;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    left: auto;
    right: -10px;
    bottom: 30px;
    width: 0;
    height: 0;
    border-left: 12px solid white;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;

}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: auto;
    right: -12px;
    bottom: 29px;
    width: 0;
    height: 0;
    border-left: 13px solid #e2e8f0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    z-index: -1;
}

.speech-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    height: 30px;
    width: 30px;
}

.speech-close:hover {
    background: #e84242;
    color: #ffffff;
}

.speech-bubble h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #3b82f6;
    font-weight: 600;
}

.speech-bubble p {
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 1rem 0;
}

.submit-game-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #444232;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.submit-game-link:hover {
    background-color: #5a5643;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.submit-game-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.submit-game-link:hover i {
    transform: translateX(3px);
}

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

.results-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0rem 0;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.5rem 0.75rem;
   
}

.results-count {
    font-size: 0.95rem;
    color: #334155;
    background: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-weight: 500;
    line-height: 1.5;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filter-type {
    color: #6366f1;
    font-weight: 700;
    font-size: 1rem;
}

.filter-separator {
    color: #94a3b8;
    margin: 0 8px;
    font-weight: 400;
    font-size: 1rem;
}

.clear-all-filters {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-all-filters:hover {
    background: #fecaca;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding:  2rem;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
    position: relative;
}

/* Yükleme Animasyonu */
.loading-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    width: 100%;
    flex-direction: column;
    grid-column: 1 / -1;
    min-height: 100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner-container.visible {
    opacity: 1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 1rem;
    color: #64748b;
    font-size: 0.9375rem;
    text-align: center;
}

/* Boş oyun kartı */
.empty-game-card {
    grid-column: 1 / -1;
    height: 50px;
    width: 100%;
}

/* Reklam alanları */
.sidebar-ad {
    position: sticky;
    top: 100px;
    width: 160px;
    min-height: 600px;
    max-height: calc(100vh - 200px); /* Footer'dan aşağı inmemesi için */
    z-index: 90;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff79, #f8fafc80);
    border-radius: 12px;
   
    padding: 15px;
    overflow-y: auto; /* İçerik taşarsa scroll göster */
    margin: 1rem 0;
    border: 2px dashed rgba(203, 213, 225, 0.5);
    transition: all 0.3s ease;
}

.sidebar-ad:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sidebar-ad:empty::before {
    content: var(--ad-area-text, 'REKLAM ALANI');
    font-size: 1.25rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.sidebar-ad:empty::after {
    content: '\f641';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #cbd5e1;
    margin-top: 1rem;
    animation: pulse 2s infinite;
}

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

.page-layout {
    display: flex;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.main-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.left-sidebar, .right-sidebar {
    width: 180px;
    padding: 0 10px;
    position: relative;
}

@media (max-width: 1200px) {
    .left-sidebar, .right-sidebar {
        display: none;
    }
}

.footer-ad {
    width: 100%;
    min-height: 120px;
    margin: 3rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff79, #f8fafc80);
    border-radius: 12px;
    
    padding: 15px;
    border: 2px dashed rgba(203, 213, 225, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: -15px;
}

.footer-ad:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.footer-ad:empty::before {
    content: var(--ad-area-text, 'REKLAM ALANI');
    font-size: 1.5rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 1px;
}

.footer-ad:empty::after {
    content: '\f641';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #cbd5e1;
    
    animation: pulse 2s infinite;
    position: absolute;
    left: 50px;
}

.reklam-alani{
Width:100%;
}



.ad-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(203, 213, 225, 0.5);
}

.ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.ad-card .game-content {
    background-color: #292626;
}

.ad-image {
    position: relative;
    height: 60px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(203, 213, 225, 0.5);
}

.ad-image:empty::after {
    content: '\f0a1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2rem;
    color: #cbd5e1;
    text-align: center;
    animation: pulse 2s infinite;
}

.ad-label {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    height: fit-content;
    width: fit-content !important; 
    border-radius: 5px !important;
    padding: 0.25rem 0.5rem !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ad-label i {
    font-size: 0.75rem;
    animation: pulse 2s infinite;
}

.ad-container {
   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   
}

.ad-container:empty::before {
   content: var(--ad-area-text, 'REKLAM ALANI');
    font-size: 1.125rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 1px;
}


@media (max-width: 1400px) {
    .sidebar-ad {
        width: 120px;
        min-height: 400px;
    }
}

@media (max-width: 1400px) {
    .sidebar-ad {
        display: none;
    }
}

/* Skeleton Loading */
.game-card-skeleton {
    background: #f1f5f9;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    height: 280px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    grid-column: span 2;
}

.game-card-skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.5) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.game-card-skeleton .skeleton-image {
    height: 160px;
    background: #e2e8f0;
}

.game-card-skeleton .skeleton-content {
    padding: 1rem;
}

.game-card-skeleton .skeleton-title {
    height: 1.25rem;
    width: 80%;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.game-card-skeleton .skeleton-categories {
    display: flex;
    gap: 0.5rem;
}

.game-card-skeleton .skeleton-category {
    height: 1rem;
    width: 4rem;
    background: #e2e8f0;
    border-radius: 4px;
}

/* Koordinat sistemi */
.coordinate-row {
    position: absolute;
    left: -2.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    transform: translateY(-50%);
    background: white;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.coordinate-column {
    position: sticky;
    top: 0;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    text-align: center;
    width: calc((100% - 1.5rem * 4) / 5);
    background: white;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    z-index: 10;
}

.coordinate-columns-wrapper {
    display: flex;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: white;
    padding: 0.5rem 0;
    margin: -0.5rem 0 1rem 0;
    z-index: 10;
}

@media (max-width: 1024px) {
    .coordinate-column {
        width: calc((100% - 1.5rem * 2) / 3);
    }
}

@media (max-width: 768px) {
    .coordinate-column {
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 640px) {
    .coordinate-column {
        width: 100%;
    }
    .coordinate-row {
        left: -2rem;
    }
}

.game-card {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    width: 100%; /* Tam genişlik */
    box-sizing: border-box; /* Border ve padding genişliğe dahil */
}

.game-card.featured {
    grid-column: span 4;
}

.game-card:hover .game-image {

    filter: opacity(0.8);
}

/* Tüm kartların içeriğini aynı yükseklikte tut */
.game-image {
    flex: 1;
    min-height: 0;
    position: relative;
    transition: all 0.3s;
}

.game-content {
    padding: 1rem;
}

.game-card[data-locked="true"] {
    position: relative;
    

}
.game-card[data-locked="true"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1px);
    z-index: 1;
    border-radius: 0.75rem;
    }

.game-card[data-locked="true"] .game-image img {
    filter: grayscale(80%);
    opacity: 0.5;
}

.game-card[data-locked="true"]  .game-title {
    filter: blur(2px);
}
.game-card[data-locked="true"]  .game-categories{
 
    
    filter: grayscale(100%);
    backdrop-filter: blur(1px);
    opacity: 0.5;
 
}
.game-card[data-locked="true"]  .game-age-groups{
    filter: grayscale(100%);
    opacity: 0.5;
}


.game-card[data-locked="true"]::after {
    content: '\f023';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
   
    z-index: 2;
    pointer-events: none;
}

.game-card[data-locked="true"] .game-content {
    opacity: 0.7;
}

.game-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    grid-column: span 2; /* Her kart 2 birim */
    display: flex;
    flex-direction: column;
    height: 100%; /* Yüksekliği doldur */
    transition: all 0.3s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.game-card.featured {
    grid-column: span 4; /* Önemli kartlar 4 birim (2 kartlık yer) */
}

/* Önemli oyunların içeriğini yatayda ortala */
.game-card.featured .game-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.game-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2rem;
    height: 2rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.game-image {
    position: relative;
    width: 100%;
    padding-top: 80%; /* 100:80 aspect ratio */
    background: #f8fafc;
}

.game-card.featured .game-image {
    padding-top: 40%; /* Önemli kartlar için yarı yükseklik */
}

.game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 3rem;
}

.game-categories {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    justify-content: flex-end;
    max-width: 60%;
}

.game-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: var(--category-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}

.game-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.game-age-groups {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.375rem;
}

.game-content {
    padding: 1rem;
}

.game-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    padding: 2rem;
    overflow-y: auto;
}

.game-modal.active {
    display: block;
}

.game-modal-content {
    background: white;
    border-radius: 1rem;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.game-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.game-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    padding-bottom: 15px;
}

.game-modal-close {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    background-color: color(srgb 0.8895 0.2176 0.2022);
    color: #fff;
    z-index: 9999999999;
    border-radius: 0 0 0 18px;
    }

.game-modal-close:hover {
    background-color: #ef4444;
}

.game-modal-body {
    display: grid;
    grid-template-columns: 0.7fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.game-detail-image {
    width: 100%;
    height: 340px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: relative;
}

.game-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 30%, transparent 70%, rgba(0,0,0,0.5));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem;
}

.image-overlay .game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.image-overlay .game-category {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    background: var(--category-color);
    color: white;
    font-weight: 500;
}

.image-overlay .game-platforms {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.image-overlay .game-platforms i {
    font-size: 1rem;
    color: #1f2937;
}

.image-overlay .game-age-groups {
    display: flex;
    gap: 1rem;
}

.image-overlay .game-age-groups i {
    font-size: 1rem;
   
}

.game-info {
    display: flex;
    
    align-items: end;
    flex-wrap: wrap;
    justify-content: end;
}

.game-description {
    font-size: 0.9rem;
    line-height: 1.75;
    color: #334155;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.game-description::-webkit-scrollbar {
    width: 6px;
}

.game-description::-webkit-scrollbar-track {
    background: transparent;
}

.game-description::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.game-description::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

.game-meta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meta-section {
    margin-bottom: 2rem;
}

.meta-section h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.game-platforms {
    display: flex;
    gap: 1.5rem;
}

.game-platforms i {
    font-size: 1.5rem;
    color: #94a3b8;
    transition: all 0.2s;
}

.game-platforms i[title="PC"] {
    color: #3b82f6;
}

.game-platforms i[title="Tablet"] {
    color: #8b5cf6;
}

.game-platforms i[title="Mobil"] {
    color: #ec4899;
}

.game-links {
    margin-top: 1.5rem;
}

.links-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.links-container {
    display: grid;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    grid-template-columns: repeat(2, 1fr);
    }
.game-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #64748b;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    background: #f1f5f9;
}

.game-link:hover {
    background: #e2e8f0;
}

.game-link i {
    font-size: 1rem;
}

.game-link[href*="google"],
.game-link[href*="apple"] {
    background: #1f2937;
    color: white;
}

.game-link[href*="google"]:hover,
.game-link[href*="apple"]:hover {
    background: #111827;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.25rem;
  margin-top: 10px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 1rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2),
                0 10px 15px -3px rgba(37, 99, 235, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3),
                0 12px 17px -3px rgba(37, 99, 235, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.play-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(37, 99, 235, 0.2),
                0 4px 6px -2px rgba(37, 99, 235, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.play-button i {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.sub-games-section {
    grid-column: span 2;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.section-title {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-button {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.slider-button:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
}

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

.sub-games-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.sub-games-list.slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.3s ease;
    width: max-content;
    min-width: 100%;
}

/* Sub Games Section */
.sub-games-section {
    margin-top: 2rem;
}

/* Sub Games Slider */
.sub-games-carousel {
    position: relative;
    width: 100%;
    margin: 0 -0.5rem;
    padding: 0.5rem;
}

.sub-game-item {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    margin: 0.5rem;
}

/* Owl Carousel Custom Nav Styles */
.owl-nav {
    position: absolute;
    top: 0;
    /* transform: translateY(-50%); */
    width: 50px;
    pointer-events: none;
    margin-top: -2.25rem;
    right: 0;
    }
    .owl-prev, .owl-next {
        /* position: absolute; */
        width: 2.5rem !important;
        height: 2.5rem !important;
        background: #f1f5f9 !important;
        border-radius: 0.5rem !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #64748b !important;
        pointer-events: auto;
        transition: all 0.2s ease;
        margin: 0 !important;
        /* right: 0; */
        /* display: block !important; */
        position: absolute;
        }

.owl-prev {
    left: -1.25rem;
}

.owl-next {
    right: -1.25rem;
}

.owl-prev:hover,
.owl-next:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.owl-prev.disabled,
.owl-next.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Hide default Owl nav buttons */
.owl-nav button span {
    display: none;
}

.sub-game-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.sub-game-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #f8fafc;
    overflow: hidden;
}

.sub-game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-game-content {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sub-game-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
}

.sub-game-content h5 {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-link {
    color: #64748b;
    transition: all 0.2s ease;
}

.sub-game-item:hover .play-link {
    color: #2563eb;
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .sub-game-item {
        flex: 0 0 260px; /* Mobilde biraz daha küçük */
        width: 260px;
    }
    
    .slider-track {
        gap: 0.75rem;
    }
}

/* Slider Controls */
.slider-controls {
    display: flex;
    gap: 0.5rem;
}

.slider-button {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider-button:hover:not(:disabled) {
    background: #e2e8f0;
    color: #1e293b;
}

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

.modal-ad-container {
    width: 100%;
    grid-column: span 2;
}


/* Modal reklam alanı */
.modal-ad {
    width: 100%;
    min-height: 80px;
    margin: 1rem 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff79, #f8fafc80);
    border-radius: 12px;
    padding: 15px;
    border: 2px dashed rgba(203, 213, 225, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 0rem;

    
}




.modal-ad:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}



.modal-ad:empty::before {
    content: var(--ad-area-text, 'REKLAM ALANI');
    font-size: 1.5rem;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 1px;
}

.modal-ad:empty::after {
    content: '\f641';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 3rem;
    color: #cbd5e1;
    
    animation: pulse 2s infinite;
    position: absolute;
    left: 50px;
}


/* Sub Game Item Styles */
.sub-game-item {
    display: block;
    text-decoration: none;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    height: 100%;
    transition: all 0.2s ease;
}

.sub-game-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.sub-game-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #f8fafc;
    overflow: hidden;
}

.sub-game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-game-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.sub-game-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
}

.sub-game-content h5 {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-link {
    color: #64748b;
    transition: all 0.2s ease;
}

.sub-game-item:hover .play-link {
    color: #2563eb;
    transform: translateX(2px);
}

@media (max-width: 1400px) {
    .sub-games-list {
        grid-template-columns: repeat(4, 1fr);
    }
    .sub-games-list.slider .sub-game-item {
        flex: 0 0 calc(25% - 0.75rem);
        max-width: calc(25% - 0.75rem);
    }
}

@media (max-width: 1200px) {
    .sub-games-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .sub-games-list.slider .sub-game-item {
        flex: 0 0 calc(33.333% - 0.667rem);
        max-width: calc(33.333% - 0.667rem);
    }
}

@media (max-width: 768px) {
    .sub-games-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .sub-games-list.slider .sub-game-item {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }
}

.sub-game-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.sub-game-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sub-game-image {
    position: relative;
    width: 100%;
    padding-top: 45.25%; /* 16:9 aspect ratio */
    background: #f8fafc;
    overflow: hidden;
}

.sub-game-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-game-image .no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}

.sub-game-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
}

.sub-game-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.sub-game-content h5 {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-link {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s;
}

.sub-game-item:hover .play-link {
    color: #2563eb;
    transform: translateX(2px);
}

@media (max-width: 1024px) {
    .sub-games-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .game-modal {
        width: 100%;
        padding: 1rem;
    }

    .game-modal-content {
        margin: 1rem;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }

    .game-modal-body {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .game-modal-sol {
        width: 100%;
    }

    .game-info {
        width: 100%;
    }

    .game-detail-image {
        height: 250px;
    }

    .image-overlay {
        padding: 0.75rem;
    }

    .image-overlay .game-platforms {
        padding: 0.375rem;
        gap: 0.375rem;
    }

    .image-overlay .game-platforms i {
        font-size: 0.875rem;
    }

    .game-description {
        max-height: 200px;
        width: 100%;
    }

    .play-button {
        width: 100%;
        margin-top: 1rem;
    }

    /* Alt oyunlar için düzenlemeler */
    .sub-games-section {
        width: 100%;
        margin-top: 1.5rem;
    }

   
}

@media (max-width: 640px) {
    .container {
     
         padding: 0;
    }

    .game-modal {
        padding: 0;
        width: 100%
    }

    .game-modal-content {
        margin: 0;
        width: 100%;
        min-height: 100vh;
        height: auto;
        border-radius: 0;
    }

    .game-modal-body {
        padding: 1rem;
        gap: 1rem;
    }

    .game-detail-image {
        height: 200px;
        border-radius: 0.5rem;
    }

    .game-modal-title {
        font-size: 1.125rem;
        padding: 0.75rem 0;
    }

    .section-header {
        margin-bottom: 1rem;
    }
    
    /* Dikey telefon pozisyonu için özel düzenlemeler */
    @media (orientation: portrait) {
        .game-modal-body {
            display: flex;
            flex-direction: column;
        }
        
        .game-info {
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .game-description {
            max-height: 30vh;
            overflow-y: auto;
            flex: 1;
            margin-bottom: 1rem;
            font-size: 0.875rem;
        }
        
        .play-button {
            width: 100%;
            margin-top: auto;
            position: sticky;
            bottom: 0;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        }
    }
    
    /* Yatay telefon pozisyonu için mevcut stiller */
    @media (orientation: landscape) {
        .game-description {
            max-height: 150px;
            font-size: 0.875rem;
        }
    }

    .play-button {
        padding: 0.875rem;
        font-size: 1rem;
        margin: 0.75rem 0;
    }

    .play-button i {
        font-size: 1.125rem;
    }


/* Alt oyunlar için düzenlemeler */
.sub-games-section {
    margin-top: 1rem;
}

    .sub-games-carousel {
        margin: 0 -1rem;
        padding: 0 1rem;
    }

    

    .sub-game-item {
        margin: 0.25rem;
    }

    .sub-game-content {
        padding: 0.75rem;
    }

    .sub-game-number {
        font-size: 0.75rem;
    }

    .sub-game-content h5 {
        font-size: 0.8125rem;
    }
}


/* Responsive Design */
/* Desktop ve üstü */
@media (min-width: 1281px) {
    .games-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    .game-card {
        grid-column: span 2;
    }
    .game-card.featured {
        grid-column: span 4;
    }
}

/* Tablet yatay */
@media (min-width: 1025px) and (max-width: 1280px) {
    .games-grid {
        grid-template-columns: repeat(9, 1fr);
    }
    .game-card {
        grid-column: span 3;
    }
    .game-card.featured {
        grid-column: span 6;
    }
}

/* Tablet dikey büyük */
@media (min-width: 300px) and (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.25rem;
    }
    .game-card {
        grid-column: span 2; /* Her satırda 3 kart */
    }
    .game-card.featured {
        grid-column: span 4; /* Featured kartlar 2/3 genişlik */
    }
    
    /* Tablet için hamburger menü */
    .header-right {
        justify-content: flex-end;
        min-width: auto;
        gap: 0.75rem;
    }
    
    .header .container {
        padding: 0 1rem;
    }
    
    .mobile-search-toggle,
    .mobile-filter-toggle {
        display: flex;
    }
    
    .search-results-header {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1000;
        overflow-y: auto;
        padding: 0;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        animation: slideIn 0.3s ease;
    }
    
    .search-results-header.active {
        display: flex;
    }
    
    .mobile-header {
        display: flex;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .search-box {
       
        margin: 0 1rem;
        min-width: auto;
    }
    
    .category-select {
        width: calc(100% - 2rem);
        margin: 1rem;
        min-width: auto;
    }
    
    .school-filters {
        margin: 0 1rem;
        justify-content: flex-start;
        width: calc(100% - 2rem);
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .filter-section-title {
        display: block;
    }
    
    .mobile-filter-actions {
        display: flex;
        position: sticky;
        bottom: 0;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
}

/* Tablet dikey küçük */
@media (min-width: 641px) and (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    .game-card {
        grid-column: span 2; /* Her satırda 2 kart */
    }
    .game-card.featured {
        grid-column: span 4; /* Featured kartlar tam genişlik */
    }

    .search-results-header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .search-box {
        min-width: 250px;
    }

    .results-info {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #1e293b;
    color: #f8fafc;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #f8fafc;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-section {
    min-width: 160px;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.9375rem;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.875rem;
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    transition: all 0.2s;
}

.social-link:hover {
    background-color: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

/* Mobil */
@media (max-width: 640px) {
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* İki kolon, minimum 0 genişlik */
        gap: 0.75rem;
        padding: 1rem;
    }
    .game-card {
        grid-column: span 1; /* Her kart yarım genişlik */
        width: 100%; /* Tam genişlik */
        max-width: 100%; /* Maksimum genişlik sınırı */
        margin-left: 0;
        margin-right: 0;
    }
    .game-card.featured {
        grid-column: span 2; /* Featured kartlar tam genişlik */
    }

    /* Kart içeriğini mobil için optimize et */
    .game-card {
        margin-bottom: 0.5rem;
    }

    .game-image {
        height: 140px; /* Mobilde daha küçük görsel */
    }

    .game-content {
        padding: 0.75rem 0.5rem;
    }

    .game-title {
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .game-number {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
    
    .game-category {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
    
    .age-badge.small {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.75rem;
    }
    
    /* Footer mobil stiller */
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


@media (max-width: 640px) {
    .header {
        padding: 1rem;
    }

    .header-left {
        gap: 1rem;
    }

    .header-title {
        font-size: 1.25rem;
    }
    
    /* Hamburger menü stilleri */
    .mobile-search-toggle,
    .mobile-filter-toggle {
        display: flex;
    }
    
    .search-results-header {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1000;
        overflow-y: auto;
        padding: 0;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        animation: slideIn 0.3s ease;
    }
    
    .search-results-header.active {
        display: flex;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .search-box {
        width: calc(100% - 2rem);
        margin: 0 1rem;
    }
    
    .category-select {
        width: calc(100% - 2rem);
        margin: 1rem;
    }
    
    .school-filters {
        margin: 0 1rem;
        justify-content: flex-start;
        width: calc(100% - 2rem);
    }
    
    .filter-section-title {
        display: block;
    }
    
    .mobile-filter-actions {
        display: flex;
        padding: 1rem;
    }
    
    .age-badge {
        width: auto;
        height: auto;
        border-radius: 2rem;
        padding: 0.5rem 1rem;
    }
    
    .age-badge-text {
        display: inline-block;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1rem;
    }

    .site-footer{
        padding: 1rem;
    }
    .search-results-header{
       padding: 1rem;
    }
    
    @keyframes slideIn {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}
