/*
 * SLOTBABA.ONLINE - ANA STİL DOSYASI
 * Optimize edilmiş ve SEO uyumlu
 * 
 * İÇİNDEKİLER:
 * 1. Değişkenler (CSS Variables)
 * 2. Reset & Temel Stiller
 * 3. Layout
 * 4. Header & Navigation
 * 5. Hero Section
 * 6. Section Stilleri
 * 7. Feature Cards
 * 8. Oyun Grid
 * 9. Footer
 * 10. Responsive (Mobil Uyumluluk)
 * 11. Erişilebilirlik (Accessibility)
 * 12. Print Stilleri
 */

/* ==================================================
   1. DEĞİŞKENLER (CSS Variables)
   ================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    /* Renkler */
    --primary-color: #fca311;
    --secondary-color: #14213d;
    --bg-dark: #000000;
    --bg-light: #1e1e1e;
    --text-light: #ffffff;
    --text-gray: #e5e5e5;
    --text-muted: #888888;
    
    /* Geçiş Efektleri */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    
    /* Gölgeler */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.2);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.3);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.4);
    
    /* Kenar Yuvarlatma */
    --radius-sm: 5px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-full: 50%;
    
    /* Boşluklar */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;
    
    /* Z-Index Katmanları */
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-fixed: 1000;
    --z-modal: 1500;
}

/* ==================================================
   2. RESET & TEMEL STİLLER
   ================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Bağlantılar */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* Listeler */
ul, ol {
    list-style: none;
}

/* Görseller */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Form Elemanları */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Seçim Rengi */
::selection {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

/* ==================================================
   3. LAYOUT
   ================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ==================================================
   4. HEADER & NAVİGASYON
   ================================================== */
header {
    background-color: rgba(20, 33, 61, 0.95);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: var(--z-fixed);
    box-shadow: var(--shadow-lg);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header.sticky {
    background-color: rgba(20, 33, 61, 0.98);
    padding: 10px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links li a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::after,
.nav-links li a:focus::after {
    width: 100%;
}

/* CTA Butonu */
.cta-btn {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    padding: 10px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: inline-block;
    text-align: center;
    transition: var(--transition);
}

.cta-btn:hover,
.cta-btn:focus {
    background-color: var(--text-light);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hamburger Menü */
.hamburger {
    display: none;
    font-size: 24px;
    color: var(--text-light);
    padding: 10px;
    cursor: pointer;
}

/* ==================================================
   5. HERO SECTION
   ================================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), 
                url('/img/bg-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.hero-content h1 {
    font-size: clamp(32px, 5vw, 48px);
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    font-weight: 700;
}

.hero-content p {
    font-size: clamp(16px, 2vw, 18px);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ==================================================
   6. SECTİON STİLLERİ
   ================================================== */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    font-size: clamp(28px, 4vw, 36px);
    color: var(--text-light);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

/* Info Box */
.info-box {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    border: 1px solid transparent;
    transition: var(--transition);
}

.info-box:hover {
    border-color: var(--primary-color);
}

.info-text {
    flex: 1;
}

.info-text h3 {
    color: var(--text-light);
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: var(--spacing-md);
}

.info-text p {
    margin-bottom: 15px;
}

.info-image {
    flex: 1;
}

.info-image img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ==================================================
   7. FEATURE CARDS
   ================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 22px;
}

/* ==================================================
   8. OYUN GRİD
   ================================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.game-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 350px;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.game-item:hover img,
.game-item:focus-within img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: var(--spacing-md);
}

.game-overlay h4 {
    color: var(--text-light);
    font-size: 20px;
}

/* Legal Text */
.legal-text {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--spacing-lg);
    line-height: 1.8;
}

/* ==================================================
   9. FOOTER
   ================================================== */
.footer {
    background-color: var(--secondary-color);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    color: var(--text-gray);
    border-top: 3px solid var(--primary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 20px;
}

.footer-col address {
    font-style: normal;
}

.footer-col p {
    margin-bottom: var(--spacing-sm);
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-gray);
    position: relative;
    padding-left: 0;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Sosyal Medya */
.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-light);
    font-size: 20px;
    background-color: rgba(255,255,255,0.1);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.social-links a:hover,
.social-links a:focus {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Copyright */
.copyright {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}

/* ==================================================
   10. RESPONSİVE (Mobil Uyumluluk)
   ================================================== */
@media (max-width: 992px) {
    .info-box {
        flex-direction: column;
    }
    
    .info-text,
    .info-image {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        padding: var(--spacing-lg) 0;
        transition: 0.4s;
        box-shadow: var(--shadow-xl);
        gap: 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .features-grid,
    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-item {
        height: 280px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .cta-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ==================================================
   11. ERİŞİLEBİLİRLİK (Accessibility)
   ================================================== */

/* Focus Göstergeleri */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip Link (Erişilebilirlik için) */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 8px 16px;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ffcc00;
        --text-gray: #ffffff;
    }
    
    .feature-card,
    .info-box {
        border: 2px solid var(--text-light);
    }
}

/* ==================================================
   12. PRİNT STİLLERİ
   ================================================== */
@media print {
    header,
    footer,
    .cta-btn,
    .hamburger,
    .social-links,
    iframe {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        background: none;
        padding: 20px 0;
    }
    
    .section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    a {
        color: black;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 12px;
    }
}
