/* style.css - FİNAL VERSİYON (Geri Tuşu Fixlendi) */

/* --- 1. FONT TANIMLARI --- */
@font-face { 
    font-family: 'Jersey15'; 
    src: url('/teo/Jersey15.ttf') format('truetype'); 
}

@font-face { 
    font-family: 'bitcount'; 
    src: url('/bitcount.ttf') format('truetype'); 
}

@font-face { 
    font-family: 'EBGaramond'; 
    src: url('/EBGaramond.ttf') format('truetype'); 
}

/* --- 2. GENEL SİTE YAPISI --- */
html { min-height: 100vh; }
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #11001f 0%, #ff0c04 100%);
    font-family: 'bitcount', sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative; 
    display: flex;
    flex-direction: column;
}

#main-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* --- 3. WAVE ARKA PLAN --- */
.wave-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none; z-index: 0;
}
body > *:not(.wave-bg) { position: relative; z-index: 1; }

/* --- 4. GERİ BUTONU (Tıklama Alanı Düzeltildi) --- */
.geri-btn-big {
    position: fixed;
    left: 20px; top: 20px;
    width: 54px;   /* Kare genişlik */
    height: 54px;  /* Kare yükseklik */
    
    background-color: #23234a; /* İç renk */
    border: 2px solid #ff0c04; /* Çerçeve */
    border-radius: 14px;       
    color: #ff0c04;            
    
    padding: 0; 
    cursor: pointer;
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 100;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.geri-btn-big svg {
    display: block;
    stroke: currentColor;
    /* İŞTE SİHİRLİ KOD BURASI: */
    /* İkonun tıklamayı engellemesini önler, tıklama direkt butona geçer */
    pointer-events: none; 
}

.geri-btn-big:hover {
    background-color: #ff0c04;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.5);
}

/* --- 5. SOSYAL LİNKLER --- */
#social-links {
    width: 100%;
    display: flex; gap: 24px; justify-content: center;
    margin: 64px 0 24px 0;
    position: static; z-index: 20;
}
#social-links a { margin: 0; display: inline-block; }
#social-links img {
    width: 32px; height: 32px;
    object-fit: contain; opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
    border-radius: 8px;
}
#social-links img:hover { opacity: 1; transform: scale(1.12); }

/* --- 6. TEORİ LİSTESİ --- */
.teoriler-blog-list { max-width: 1100px; margin: 0 auto; padding: 80px 0 32px 0; }
.blog-teori-list { display: flex; flex-direction: column; gap: 32px; }
.blog-teori-card {
    display: flex; align-items: center;
    background: #23234a; border-radius: 32px;
    box-shadow: 0 2px 12px #11001f22;
    padding: 28px 48px;
    cursor: pointer; transition: box-shadow 0.18s, transform 0.18s;
    min-height: 110px; width: 100%; box-sizing: border-box;
}
.blog-teori-card:hover { box-shadow: 0 6px 18px #11001f44; transform: scale(1.02); }
.blog-teori-card img {
    width: 100px; height: 100px;
    border-radius: 22px; margin-right: 36px;
    background: #fff2; box-shadow: 0 2px 8px #11001f22; object-fit: cover;
}
.blog-teori-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.blog-teori-info h3 {
    font-family: 'Jersey15', 'bitcount', sans-serif;
    color: #ff0c04; font-size: 1.5rem; margin: 0 0 6px 0;
}
.blog-teori-date { color: #fff; font-size: 1rem; opacity: 0.7; }

/* --- 7. TEORİ DETAY SAYFASI --- */
.teori-icerik {
    max-width: 800px; 
    margin: 40px auto 40px auto; 
    padding: 0 32px; 
    text-align: left;
    font-family: 'EBGaramond', 'bitcount', sans-serif; 
    color: #fff; line-height: 1.6; font-size: 1.2rem;
    white-space: pre-wrap;
}
.teori-icerik h1 {
    font-family: 'Jersey15', 'bitcount', sans-serif;
    color: #ff0c04; font-size: 3.5rem;
    text-align: center; margin-bottom: 32px;
    letter-spacing: 2px; line-height: 1.2;
}
.teori-icerik p { margin-bottom: 1.5em; }
.teori-icerik img {
    max-width: 100%; height: auto;
    border-radius: 12px; margin: 20px 0;
}

/* --- 8. MAİL KUTUSU (KOMPAKT VE ORTALI) --- */
.mail-kutusu {
    background-color: #23234a;
    border: 2px solid #ff0c04;
    border-radius: 20px;
    padding: 24px;
    margin: 20px auto 60px auto;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.mail-kutusu h3 {
    font-family: 'Jersey15', sans-serif;
    color: #ff0c04;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

/* BUTON STİLİ (MİLİMETRİK ORTALAMA) */
a.mail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: 1; 
    background-color: #ff0c04;
    color: #ffffff !important;
    font-family: 'bitcount', sans-serif;
    font-size: 1.2rem;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none !important;
    border: 2px solid #ff0c04;
    cursor: pointer;
    transition: all 0.2s;
    width: fit-content; 
}

a.mail-btn:hover {
    background-color: #23234a;
    color: #ff0c04 !important;
    transform: scale(1.05);
}

/* --- 9. MOBİL --- */
@media (max-width: 799px) {
    .geri-btn-big { width: 48px; height: 48px; left: 8px; top: 8px; }
    #social-links { margin: 32px 0 12px 0; }
    .teoriler-blog-list { padding: 18px 0 12px 0; max-width: 100vw; }
    .blog-teori-card { flex-direction: row; padding: 12px 16px; min-height: 72px; border-radius: 18px; }
    .blog-teori-card img { width: 56px; height: 56px; margin-right: 12px; border-radius: 14px; flex-shrink: 0; }
    .blog-teori-info h3 { font-size: 1.1rem; }
    .teori-icerik { padding: 0 20px; font-size: 1rem; }
    .teori-icerik h1 { font-size: 2rem; }
    .mail-kutusu { margin: 20px 16px 60px 16px; padding: 20px; }
}
/* style.css - EN ALTA EKLE */

/* --- ARAMA ÇUBUĞU STİLLERİ --- */
.search-container {
    max-width: 1100px;
    margin: 100px auto 0 auto; /* Üstten boşluk bıraktık ki başlığın altına gelsin */
    padding: 0 16px;
    text-align: center;
    position: relative;
    z-index: 10;
}

#search-input {
    width: 100%;
    max-width: 600px;
    padding: 16px;
    font-family: 'bitcount', sans-serif;
    font-size: 1.5rem;
    color: #ff0c04;
    background-color: #23234a;
    border: 3px solid #ff0c04;
    border-radius: 16px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-transform: uppercase; /* Yazılan her şeyi BÜYÜK HARF yapar */
}

#search-input::placeholder {
    color: #ff0c04;
    opacity: 0.6;
    letter-spacing: 2px;
}

#search-input:focus {
    transform: scale(1.05); /* Tıklayınca hafif büyür */
    box-shadow: 0 0 25px rgba(255, 12, 4, 0.4); /* Neon efekt verir */
    border-color: #fff;
}

/* Mobil için küçük ayar */
@media (max-width: 799px) {
    .search-container {
        margin-top: 80px;
    }
    #search-input {
        font-size: 1.1rem;
        padding: 12px;
    }
}

/* style.css - EN ALTA EKLE (404 Sayfası İçin) */

.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
    padding: 20px;
}

.error-code {
    font-family: 'Jersey15', sans-serif;
    font-size: 8rem;
    color: #ff0c04;
    line-height: 1;
    margin: 0;
    text-shadow: 4px 4px 0px #23234a;
    animation: glitch 1s linear infinite;
}

.error-text {
    font-family: 'bitcount', sans-serif;
    color: #fff;
    font-size: 1.5rem;
    margin: 20px 0 40px 0;
    max-width: 600px;
}

/* Glitch Animasyonu (Yazı titremesi) */
@keyframes glitch {
    2%, 64% { transform: translate(2px,0) skew(0deg); }
    4%, 60% { transform: translate(-2px,0) skew(0deg); }
    62% { transform: translate(0,0) skew(5deg); }
}