/* Şans Oyunları Sayfası - Responsive & Optimized */

/* Performans: will-change ve contain kullan */
.sans-oyunlari-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    contain: layout style paint;
}

.sans-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.sans-header {
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.sans-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 700;
}

.sans-tarih {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    margin: 0;
}

.oyunlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(15px, 3vw, 30px);
    margin-bottom: 40px;
}

.oyun-card {
    background: white;
    border-radius: 15px;
    padding: clamp(15px, 4vw, 25px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform, box-shadow;
    contain: content;
}

.oyun-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.oyun-baslik {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: bold;
    color: #667eea;
    margin-bottom: 8px;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.oyun-alt-baslik {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
    word-break: break-word;
}

.numaralar {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(8px, 2vw, 10px);
    margin-bottom: 25px;
    padding: clamp(10px, 3vw, 15px);
    background: #f8f9fa;
    border-radius: 10px;
}

.numara {
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.numara.plus {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.detay-bilgi {
    border-top: 2px solid #eee;
    padding-top: 20px;
    contain: content;
}

.detay-satir {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.detay-satir:last-child {
    border-bottom: none;
}

.detay-sol,
.detay-sag {
    flex: 1;
    min-width: 0;
}

.detay-baslik {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: #999;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detay-deger {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: bold;
    color: #333;
    word-break: break-word;
}

.loading {
    text-align: center;
    padding: clamp(40px, 10vw, 60px) 20px;
    color: white;
    font-size: clamp(1rem, 2vw, 1.2rem);
    grid-column: 1 / -1;
}

.loading i {
    margin-right: 10px;
}

.error {
    background: #ff6b6b;
    color: white;
    padding: clamp(15px, 3vw, 20px);
    border-radius: 10px;
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    grid-column: 1 / -1;
}

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .sans-container {
        padding: 0 15px;
    }

    .oyunlar-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .sans-oyunlari-page {
        padding: 16px 12px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .sans-container {
        padding: 0;
    }

    .sans-header {
        margin-bottom: 20px;
    }

    .sans-header h1 {
        font-size: 1.4rem;
        margin-bottom: 6px;
    }

    .sans-tarih {
        font-size: 0.85rem;
    }

    .oyunlar-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .oyun-card {
        padding: 12px;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .oyun-baslik {
        font-size: 1.1rem;
        margin-bottom: 6px;
        padding-bottom: 8px;
    }

    .oyun-alt-baslik {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }

    .numaralar {
        gap: 5px;
        padding: 8px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .numara {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        min-width: 38px;
        min-height: 38px;
    }

    .numara.plus {
        font-size: 1.1rem;
    }

    .detay-bilgi {
        border-top: 1px solid #eee;
        padding-top: 12px;
    }

    .detay-satir {
        flex-direction: column;
        padding: 8px 0;
        gap: 6px;
    }

    .detay-satir:last-child {
        border-bottom: none;
    }

    .detay-sol,
    .detay-sag {
        flex: 1;
    }

    .detay-baslik {
        font-size: 0.7rem;
        margin-bottom: 2px;
        color: #999;
    }

    .detay-dever {
        font-size: 0.85rem;
        font-weight: bold;
        color: #333;
    }

    .detay-dever {
        font-size: 0.85rem;
    }
}

/* Small Mobile (max 480px) */
@media (max-width: 480px) {
    .sans-oyunlari-page {
        padding: 12px 10px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .sans-container {
        padding: 0;
    }

    .sans-header {
        margin-bottom: 16px;
        text-align: center;
    }

    .sans-header h1 {
        font-size: 1.2rem;
        margin-bottom: 4px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .sans-header h1 i {
        margin-right: 6px;
    }

    .sans-tarih {
        font-size: 0.8rem;
        opacity: 0.9;
    }

    .oyunlar-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .oyun-card {
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
        background: white;
    }

    .oyun-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }

    .oyun-baslik {
        font-size: 1rem;
        font-weight: bold;
        color: #667eea;
        margin-bottom: 4px;
        border-bottom: 2px solid #667eea;
        padding-bottom: 6px;
    }

    .oyun-alt-baslik {
        font-size: 0.7rem;
        color: #666;
        margin-bottom: 10px;
        font-style: italic;
        word-break: break-word;
    }

    .numaralar {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        padding: 6px;
        margin-bottom: 10px;
        background: #f8f9fa;
        border-radius: 8px;
    }

    .numara {
        width: 34px;
        height: 34px;
        min-width: 34px;
        min-height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border-radius: 50%;
        font-weight: bold;
        font-size: 0.75rem;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
        flex-shrink: 0;
    }

    .numara.plus {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        font-size: 0.95rem;
    }

    .detay-bilgi {
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .detay-satir {
        display: flex;
        flex-direction: column;
        padding: 6px 0;
        border-bottom: 1px solid #f0f0f0;
        gap: 4px;
    }

    .detay-satir:last-child {
        border-bottom: none;
    }

    .detay-sol,
    .detay-sag {
        flex: 1;
        min-width: 0;
    }

    .detay-baslik {
        font-size: 0.65rem;
        color: #999;
        margin-bottom: 1px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        font-weight: 600;
    }

    .detay-dever {
        font-size: 0.8rem;
        font-weight: bold;
        color: #333;
        word-break: break-word;
    }

    .loading {
        padding: 30px 15px;
        font-size: 0.95rem;
    }

    .error {
        padding: 12px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
}

/* Landscape Mode */
@media (max-height: 600px) and (orientation: landscape) {
    .sans-oyunlari-page {
        padding: 12px 15px;
        min-height: auto;
    }

    .sans-header {
        margin-bottom: 12px;
    }

    .sans-header h1 {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }

    .sans-tarih {
        font-size: 0.8rem;
    }

    .oyunlar-grid {
        gap: 10px;
        margin-bottom: 12px;
    }

    .oyun-card {
        padding: 10px;
    }

    .oyun-baslik {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .oyun-alt-baslik {
        font-size: 0.7rem;
        margin-bottom: 8px;
    }

    .numaralar {
        gap: 4px;
        padding: 6px;
        margin-bottom: 8px;
    }

    .numara {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        font-size: 0.7rem;
    }

    .detay-satir {
        padding: 4px 0;
    }

    .detay-baslik {
        font-size: 0.65rem;
        margin-bottom: 1px;
    }

    .detay-dever {
        font-size: 0.75rem;
    }
}

/* Performans: Reduce motion */
@media (prefers-reduced-motion: reduce) {
    .oyun-card {
        transition: none;
    }

    .numara {
        will-change: auto;
    }
}

