/* =========================================
   GENEL AYARLAR VE PROJE TASARIM DİLİ
   ========================================= */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #1f1114; /* Görseldeki koyu bordo/kahve arka plan */
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   KILAVUZ ÇİZGİLER VE MASKELER (TAŞMAYI ÖNLEYEN YAPI)
   Çizgileri artık şeffaf değil, altını örten bloklar yaptık.
   ========================================= */
.line-v {
    position: fixed;
    left: 0;
    top: 0;
    width: 50px; /* Soldan 50px'i kapatır */
    height: 100vh;
    background-color: #1f1114; /* Arka plan rengiyle aynı, maskeler */
    border-right: 2px solid #3d1d22; /* Sağ tarafı dikey çizgimiz olur */
    z-index: 900;
    pointer-events: none;
}

.line-h-top {
    position: fixed;
    top: 85px;
    left: 0;
    width: 100vw;
    height: 2px;
    background-color: #3d1d22;
    z-index: 999;
    pointer-events: none;
}

/* KRİTİK DEĞİŞİKLİK: Alt Taşma Maskesi */
.line-h-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 85px; /* Ekranın altından 85px'lik alanı tamamen kapatır */
    background-color: #1f1114; /* Scroll olan içerik bu bloğun arkasında kalır görünmez */
    border-top: 2px solid #3d1d22; /* Kırmızı çizgiyi üst kenarlık olarak veririz */
    z-index: 900;
    pointer-events: none;
}

/* SAYFA BÖLÜMLERİ GENEL AYARLARI */
.page-section {
    /* Padding bottom değerini 160px yaptık ki en alttaki elemanlar maskenin ardında sıkışmasın */
    padding: 120px 80px 160px 80px; 
    box-sizing: border-box;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
}

/* =========================================
   NAVBAR (ÜST MENÜ)
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px 0 80px;
    height: 85px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    background-color: #1f1114;
}

.logo {
    font-size: 34px; 
    letter-spacing: 1px; 
    color: #ffffff;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 800; 
    margin-bottom: 5px; 
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 45px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff; /* Artık varsayılan hali BEYAZ */
    font-size: 18px;
    transition: color 0.2s;
}

.nav-links a:hover, .active-link {
    color: #ccb9bc !important; /* Fare ile üzerine gelince (hover) PEMBE/KIRIK BEYAZ olacak */
}

/* =========================================
   ANASAYFA (LANDING SCREEN)
   ========================================= */
#landing-screen {
    display: flex;
    align-items: center;
}

.landing-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* YAZI ALANININ SIKIŞMASINI ENGELLİYORUZ */
.intro-text {
    font-size: 26px;
    line-height: 1.6;
    flex: 0 0 450px; /* Kritik Kod: Yazı alanına 450px'lik korumalı bir alan verir, ezilmesini önler */
    max-width: 100%;
}

.intro-text p { 
    margin: 0 0 15px 0; 
}

.start-link {
    background: none;
    border: none;
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: 38px;
    letter-spacing: 1px;
    color: #ffffff;
    cursor: pointer;
    margin-top: 40px;
    padding: 0;
    position: relative;
    display: inline-block;
    white-space: nowrap; /* Kritik Kod: Buton yazısının ("OYNAMAYA BAŞLA") alt alta inmesini kesin olarak engeller */
}

.red-underline {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
}

/* =========================================
   ANASAYFA GÖRSEL ALANI (MASAÜSTÜ)
   ========================================= */
.hero-image-container {
    flex: 1; 
    display: flex;
    justify-content: flex-end; /* Resmi kapsayıcının en sağına yaslar */
    align-items: center;
    position: relative;
    min-width: 0; 
    padding-right: 40px; /* Kırmızı dikey çizgiye çarpmaması için hafif bir güvenlik boşluğu */
}

.hero-image-container img {
    width: 100%;
    max-width: 900px; /* Büyüme sınırını biraz daha açtık */
    max-height: 80vh; 
    object-fit: contain; 
    object-position: right center; /* Görselin içindeki boşlukları sağa ittirir */
    mix-blend-mode: lighten; /* Siyah arka planı yok eder */
    
    /* KRİTİK KOD: Resmi %30 büyütür ama büyümeyi "SAĞ ORTA" noktasından başlatır. 
       Böylece resim sağdan ekran dışına taşmaz, sola doğru (yazıya doğru) büyür. */
    transform: scale(1.3); 
    transform-origin: right center; 
}

/* =========================================
   KURALLAR SAYFASI
   ========================================= */
.rule-block {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.rule-num {
    font-size: 32px;
    color: #ca6a2a;
    min-width: 50px;
}

.rule-body h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #ca6a2a;
}

.rule-body p {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #ffffff;
}

.rule-body .sub-text {
    color: #bfaeaf;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
}

.rules-cards-example {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.example-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.example-row img {
    width: 80px;
    height: auto;
    border: 1px solid #3d1d22;
}

.example-desc {
    font-size: 14px;
    color: #bfaeaf;
    margin-left: 15px;
}

/* =========================================
   KARTLAR SAYFASI
   ========================================= */
.section-title {
    color: #ca6a2a;
    font-size: 24px;
    margin-bottom: 30px;
    border-bottom: 1px solid #3d1d22;
    padding-bottom: 10px;
}

.cards-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 20px;
}

.cards-showcase-grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 140px);
    gap: 20px;
    border: 4px solid #3b82f6; 
    padding: 15px;
    display: inline-grid;
}

.cards-showcase-grid img, .cards-showcase-grid-9 img {
    width: 100%;
    height: auto;
    cursor: zoom-in;
    transition: transform 0.2s;
}

.cards-showcase-grid img:hover, .cards-showcase-grid-9 img:hover {
    transform: scale(1.05);
}

/* Kartların Altındaki Açıklama Metinleri */
.cards-description {
    color: #bfaeaf; 
    font-size: 18px;
    line-height: 1.6;
    margin-top: 25px;
    font-weight: 500;
    max-width: 900px; 
}

/* =========================================
   SSS (SIKÇA SORULAN SORULAR) SAYFASI
   ========================================= */
.faq-container {
    max-width: 800px;
}

.faq-item {
    margin-bottom: 40px;
}

.faq-q {
    color: #ca6a2a;
    font-size: 20px;
    margin-bottom: 10px;
}

.faq-a {
    color: #bfaeaf;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
}

/* =========================================
   OYUN OYNAMA EKRANI (GAME MODULE)
   ========================================= */
#game-screen {
    display: none;
    justify-content: center;
    align-items: flex-start;
}

.game-content-left {
    width: 100%;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-top-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stat-box {
    background: white;
    border: 2px solid #1a1a1a;
    padding: 10px 30px;
    box-shadow: 4px 4px 0 #ca6a2a;
    text-align: center;
    color: #1a1a1a;
}

.stat-box h2 { margin: 0; color: #ca6a2a; font-size: 32px; }
.stat-box span { font-size: 11px; font-weight: 900; color: #555; }

.main-card {
    background: white;
    border: 2px solid #1a1a1a;
    width: 100%;
    padding: 25px;
    box-shadow: 12px 12px 0 #1a1a1a;
    text-align: center;
    box-sizing: border-box;
    color: #1a1a1a;
}

#image-container {
    width: 100%;
    height: 380px; 
    background: #fdfdfd;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#hint-img { max-width: 100%; max-height: 100%; object-fit: contain; }

.text-area { 
    margin-top: 20px; 
    font-size: 20px; 
    border-top: 2px solid #1a1a1a; 
    padding-top: 15px;
    word-wrap: break-word;
    max-height: 120px;
    overflow-y: auto; 
}

.button-group { 
    margin-top: 25px; 
    display: flex; 
    gap: 15px; 
    flex-wrap: wrap; 
    justify-content: center;
}

.button-group button, .btn-outline {
    font-family: 'Jost', sans-serif; 
    font-weight: 700; 
    padding: 12px 25px;
    border: 2px solid #1a1a1a; 
    box-shadow: 4px 4px 0 #1a1a1a; 
    cursor: pointer; 
    text-transform: uppercase;
    transition: transform 0.05s, box-shadow 0.05s;
}

.button-group button:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #1a1a1a;
}

.btn-dark { background: #1a1a1a; color: white; }
.btn-red { background: #ca6a2a; color: white; }
.btn-light { background: white; color: #1a1a1a; }
.btn-outline { background: transparent; color: white; border-color: white; box-shadow: none; }

.collection-panel {
    margin-top: 35px; 
    background: white; 
    color: #1a1a1a; 
    padding: 20px; 
    width: 100%; 
    box-shadow: 8px 8px 0 #1a1a1a; 
    box-sizing: border-box;
}

.collected-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); 
    gap: 10px; 
}

.mini-card { 
    width: 100%; 
    border: 1px solid #1a1a1a; 
    cursor: zoom-in; 
}

/* =========================================
   BÜYÜTÜLMÜŞ GÖRSEL PENCERESİ (MODAL)
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 5000; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.95);
}

.modal-content {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 90%; 
    max-width: 450px;
}

#modal-img { 
    max-width: 100%; 
    max-height: 70vh; 
    border: 4px solid white; 
}

#modal-caption { 
    color: white; 
    margin-top: 15px; 
    font-size: 18px; 
    text-transform: uppercase; 
}

.close-modal { 
    position: absolute; 
    top: -50px; 
    right: 0; 
    color: white; 
    font-size: 40px; 
    cursor: pointer; 
}

/* =========================================
   MOBİL RESPONSIVE DÜZENLEMESİ (DÜZELTİLMİŞ)
   ========================================= */
@media (max-width: 768px) {
    /* Üst Menü (Navbar) Düzeltmesi */
    .navbar { 
        padding: 15px 20px; 
        flex-direction: column; /* Logoyu üste, linkleri alta alır */
        height: auto; 
        gap: 15px;
        justify-content: center;
    }
    
    .logo {
        font-size: 26px; /* Mobilde ekranı taşırmaması için biraz küçülür */
        margin-bottom: 0;
    }

    .nav-links { 
        gap: 15px; 
        flex-wrap: wrap; /* Ekrana sığmazsa alt satıra atar, üst üste bindirmez */
        justify-content: center;
        width: 100%;
    }
    
    .nav-links a {
        font-size: 15px; /* Menü yazıları mobilde küçültüldü */
    }
    
    /* Sayfa İçerik Boşlukları (Menü büyüdüğü için üstten daha fazla boşluk verdik) */
    .page-section { 
        padding: 130px 20px 60px 20px; 
    } 
    
    /* Masaüstü Çizgileri Mobilde Gizlenir */
    .line-v, .line-h-bottom, .line-h-top { 
        display: none; 
    }
    
    /* Anasayfa (Landing) Düzeltmeleri */
    .landing-container { 
        flex-direction: column; 
        text-align: center; 
        gap: 30px;
    }
    
    .intro-text {
        font-size: 20px; /* Giriş yazısı boyutu telefona uyarlandı */
        max-width: 100%;
    }
    
    .start-link {
        font-size: 24px; /* Buton yazısı ikiye bölünmesin diye küçültüldü */
        margin-top: 10px;
    }
    
    /* =========================================
       MOBİL GÖRSEL AYARLARI
       ========================================= */
    .hero-image-container {
        justify-content: center; /* Mobilde resmi tekrar tam ortaya alır */
        padding-right: 0; /* Mobilde sağ boşluğa gerek yok */
        margin-top: 20px; /* Yazıyla arasına biraz boşluk koyar */
    }
    
    .hero-image-container img {
        object-position: center center; /* Görseli kendi kutusu içinde ortalar */
        transform: scale(1.1); /* Mobilde çok devasa olmaması için hafif büyütme yeterlidir */
        transform-origin: center center; /* Büyümeyi merkezden yapar */
        max-width: 95%; /* Ekrana sığmasını garanti eder */
    }

    /* Kurallar Sayfası */
    .rule-block { 
        flex-direction: column; 
        gap: 5px; 
    }
    
    .rule-num {
        font-size: 28px;
        margin-bottom: -5px;
    }

    /* Kartlar Sayfası */
    .cards-showcase-grid-9 { 
        grid-template-columns: repeat(3, 1fr); 
        width: 100%; 
        padding: 10px;
        gap: 10px;
        box-sizing: border-box;
    }

    /* Oyun Ekranı */
    #image-container { 
        height: 280px; 
    }
    
    .text-area {
        font-size: 18px;
    }
    
    .button-group button {
        padding: 10px 15px;
        font-size: 14px; /* Butonlar yan yana sığabilsin diye küçüldü */
    }
}