/* =========================================
   1. DEĞİŞKENLER & TASARIM REHBERİ
   ========================================= */
:root {
    --bg-main: #FAFAF8;       
    --bg-card: #FFFFFF;       
    --bg-creative: #F0F0EB;   
    --text-main: #2C2C2A;     
    --text-muted: #5C5C59;    
    --border-color: #D8D8D0;  
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 800px; 
    --radius: 0px;            
}

/* =========================================
   2. GENEL AYARLAR (RESET & LAYOUT)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Okuma Metni Ayarları --- */
p {
    margin-bottom: 1.5rem; /* Paragraflar arası boşluk (yaklaşık 24px) */
}

/* Makale içindeki listeler için de boşluk bırakalım */
ul, ol {
    margin-bottom: 1.5rem;
}

/* Satır yüksekliğini biraz daha açmak isterseniz */
body {
    line-height: 1.7; /* 1.6 yerine 1.7 daha ferah olur */
}


html, body {
    height: 100%; /* Sayfa boyunu %100 yap */
}

body {
    background-color: var(--bg-main);
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    
    /* KRİTİK AYAR: Footer'ı alta itmek için Flex Yapısı */
    display: flex;
    flex-direction: column; 
}

a { text-decoration: none; color: inherit; transition: opacity 0.2s; }
a:hover { opacity: 0.7; }

/* =========================================
   3. YAPISAL SINIFLAR (LAYOUT)
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto; 
    padding: 0 24px;
    background-color: var(--bg-card); 
    border-left: 1px solid var(--border-color); 
    border-right: 1px solid var(--border-color);

    /* KRİTİK EKLEME: Container'ın kendisi büyüyüp boşluğu doldurmalı */
    flex: 1; 
    
    /* İçeriği (Header, Main) düzenli tutmak için */
    display: flex;
    flex-direction: column;
}

main {
    /* Main de container içinde büyümeli */
    flex: 1; 
    padding-bottom: 60px;
}

/* =========================================
   4. HEADER & NAVİGASYON
   ========================================= */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 24px 0;
    margin-bottom: 40px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

/* =========================================
   5. PROFİL & BİYOGRAFİ
   ========================================= */
.profile-section {
    display: flex;
    flex-direction: column; 
    gap: 24px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 40px;
}

.profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(100%); 
}

.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
    line-height: 1.2;
}

.title-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: 1px solid var(--text-main);
}

.btn-primary {
    background-color: var(--text-main);
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
}

/* =========================================
   6. METİN İÇERİKLERİ
   ========================================= */
.content-block {
    margin-bottom: 40px;
    text-align: left; 
}

.content-block h2, 
.content-block h3 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
    color: var(--text-main);
}

.content-block p {
    margin-bottom: 16px;
    color: var(--text-muted);
    text-align: justify; 
}

/* =========================================
   7. YARATICI MOLA (OYUNLAR)
   ========================================= */
.creative-section {
    background-color: var(--bg-creative);
    margin: 40px -24px 0 -24px; 
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.creative-header {
    margin-bottom: 32px;
}

.creative-header h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.games-list {
    display: flex;
    flex-direction: column; 
    gap: 32px;
}

.game-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.game-item:last-child {
    border-bottom: none;
}

.game-logo {
    width: 140px;      
    height: auto;      
    margin-bottom: 16px;
    filter: grayscale(100%); 
    transition: filter 0.4s ease, transform 0.2s ease;
    opacity: 0.9;
}

.game-item:hover .game-logo {
    filter: grayscale(0%); 
    opacity: 1;
    transform: scale(1.02);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: var(--bg-main); 
    padding: 32px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    /* Footer'ın genişlemesini engellemek için shrink 0 */
    flex-shrink: 0;
}

/* =========================================
   9. MASAÜSTÜ İYİLEŞTİRMELERİ
   ========================================= */
@media (min-width: 768px) {
    .profile-section {
        flex-direction: row; 
        align-items: center;
        text-align: left;
    }
    
    .profile-img {
        width: 160px;
        height: 160px;
    }

    .game-item {
        flex-direction: row; 
        gap: 24px;
        align-items: flex-start;
    }

    .game-logo {
        margin-bottom: 0;
        flex-shrink: 0; 
    }
}

/* =========================================
   10. İLETİŞİM BÖLÜMÜ (YENİ)
   ========================================= */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.contact-row {
    display: flex;
    align-items: flex-start; /* İkon ile metni üstten hizala */
    gap: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-row i {
    color: var(--text-main); /* İkonlar koyu renk olsun */
    margin-top: 4px; /* Metinle görsel hizalama */
    width: 20px; /* İkon genişliği sabit olsun ki metinler aynı hizadan başlasın */
}

.contact-row a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.contact-row a:hover {
    border-bottom: 1px solid var(--text-muted); /* Link üzerine gelince altı çizilsin */
}


/* Collapsable Stilleri */
.creative-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.toggle-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
}

.collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin-top 0.3s ease;
}

.collapse-content.active {
    max-height: 1000px; /* İçeriğe göre yeterli bir yükseklik */
    margin-top: 24px;
}

#toggle-icon {
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

#toggle-icon.rotate {
    transform: rotate(180deg);
}

.close-panel-btn {
    background: none;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 5px 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.close-panel-btn:hover {
    color: var(--text-main);
    border-bottom-color: var(--text-main);
}

.close-panel-btn i {
    margin-right: 8px;
    font-size: 0.7rem;
}


/* Kapatma butonu için şu eklemeyi yapın */
.close-panel-btn {
    background: none;
    border: none;
    border-bottom: 1px solid var(--text-muted);
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 15px 0; /* Mobilde parmakla dokunma alanı için artırıldı */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}

/* =========================================
   AKADEMİK ATIF BUTONU (CITATION BUTTON)
   ========================================= */
.citation-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--text-main); /* Sol tarafta akademik vurgu çizgisi */
    padding: 12px 20px;
    margin: 20px 0;
    
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    max-width: 100%; /* Mobilde taşmayı önler */
}

/* Sol taraftaki metin grubu */
.citation-content {
    display: flex;
    flex-direction: column;
}

.citation-title {
    font-family: var(--font-heading); /* Playfair Display */
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.2;
}

.citation-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sağ taraftaki ok ikonu */
.citation-icon {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Hover (Üzerine Gelme) Efektleri */
.citation-btn:hover {
    background-color: var(--bg-creative); /* Hafif sıcak gri zemin */
    transform: translateY(-2px); /* Hafif yukarı kalkma */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.citation-btn:hover .citation-icon {
    color: var(--text-main);
    transform: translateX(5px); /* Ok işaretinin sağa kayması */
}

/* =========================================
   BİREYSEL BAŞVURU REHBERİ STİLLERİ
   ========================================= */

/* Buton Tasarımı */
.guide-toggle-btn {
    width: 100%;
    background: transparent;
    border: none;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.guide-toggle-btn:hover {
    opacity: 0.8;
}

.guide-title-group {
    display: flex;
    flex-direction: column;
}

.guide-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.guide-heading {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-main);
    margin: 0;
    line-height: 1.1;
}

.guide-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: transform 0.4s ease;
    margin-left: 20px;
}

/* İkon Dönme Efekti */
.guide-icon.rotate {
    transform: rotate(180deg);
    color: var(--text-main);
}

/* İçerik Alanı (Gizli/Açık) */
.guide-body {
    max-height: 0;
    overflow: hidden;
    background-color: var(--bg-creative); /* Sıcak gri zemin */
    transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.guide-body.active {
    max-height: 5000px; /* İçeriğin sığması için yüksek değer */
    border-bottom: 1px solid var(--border-color); /* Açılınca altta çizgi */
}

.guide-inner {
    padding: 40px;
    color: var(--text-main);
}

/* Tipografi ve Düzen */
.guide-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 500;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Yan yana kutular */
    gap: 30px;
    margin-top: 30px;
}

.guide-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-card h3 i {
    font-size: 1rem;
    opacity: 0.7;
}

.guide-list {
    list-style: none;
    padding: 0;
}

.guide-list li {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--border-color);
    font-size: 0.95rem;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
    .guide-heading {
        font-size: 1.6rem;
    }
    .guide-inner {
        padding: 20px;
    }
    .guide-grid {
        grid-template-columns: 1fr; /* Mobilde alt alta */
    }
}
/* Bilgi Notu Kartları Arasındaki Boşluk */
.memo-item {
    background-color: var(--bg-card);
    padding: 30px;
    margin-bottom: 40px; /* Kartlar arasındaki boşluğu artırdık */
    border-bottom: 1px solid var(--border-color); /* Ayrıştırıcı ince çizgi */
    transition: all 0.3s ease;
}

.memo-item:last-child {
    border-bottom: none;
}

/* "İncelemeyi Oku" Linkini Butonlaştırma (Vakur ve Sade) */
.memo-read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 0;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--text-main); /* Altı çizili yerine modern alt çizgi */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}

.memo-read-more:hover {
    opacity: 0.7;
}

.hidden-memo {
    display: none !important;
}


/* =========================================
   MAKALE DETAY SAYFASI (Article Lists)
   ========================================= */

/* Listelerin sol girintisini geri kazandırır */
.content-body ul, 
.content-body ol {
    padding-left: 2.5rem; /* Soldan yaklaşık 40px boşluk bırakır (Tab etkisi) */
    margin-bottom: 1.5rem; /* Listeden sonraki paragrafla arayı açar */
}

/* Her bir madde (li) için ayarlar */
.content-body li {
    margin-bottom: 0.8rem; /* Maddeler birbirine yapışmaz, ferah durur */
    padding-left: 0.5rem;  /* Madde imi (nokta) ile yazı arasını biraz açar */
    position: relative;    /* Hizalama kontrolü için */
}

/* Alıntı (Blockquote) Tasarımı - Sitenin gri kutu tarzı */
.content-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: var(--bg-creative); /* Sitenizin sıcak gri tonu */
    border-left: 4px solid var(--text-main);
    font-style: italic;
    color: var(--text-main);
}

/* Sabit Buton Stili */
#fixed-contact-btn {
    /* Change from top: 20px to bottom: 30px */
    top: auto; 
    bottom: 30px; 
    right: 20px;
    
    /* Keep existing styles */
    display: none;
    opacity: 0;
    position: fixed;
    background-color: #1a1a1a;
    color: #FAFAF8;
    padding: 12px 20px;
    border-radius: 50px; /* More modern "pill" shape */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Add shadow for depth */
    cursor: pointer;
    z-index: 99999;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

#fixed-contact-btn:active {
    transform: scale(0.95); /* Click feedback */
}

/* Modal Karartma Ekranı */
.modal-overlay {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(3px); /* Modern akademik dokunuş */
}

/* Kart İçeriği */
.modal-content {
    background: #FAFAF8;
    width: 350px;
    margin: 15% auto;
    padding: 30px;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}