html {
  scroll-behavior: smooth; /* Olayı çözen kod bu: Kayarak gitmesini sağlar */
}

/* Tıkladığında başlık, siyah menünün altında kalmasın diye üstten pay bırakıyoruz */
#anasayfa, #dergi, #hakkimizda, #iletisim {
  scroll-margin-top: 100px; 
}
:root {
  --saman: #F3E8C8;
  --dark: #1f1f1f;
  --accent: #C89B5C;
  --text-muted: #555;
  --border-soft: #e2ded8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  color: #2b2b2b;
  background: var(--saman);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0.03) 0px,
    rgba(0,0,0,0.03) 1px,
    transparent 1px,
    transparent 28px
  );
}

/* ================= HEADER & NAV ================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px; /* Navbar yüksekliği SABİT */
  
  display: flex;
  align-items: center;
  
  padding: 0 64px; 
  background: var(--dark);
  color: #fff;
  transition: .4s;
  
  /* Logunun dışarı taşabilmesi için */
  overflow: visible; 
}

/* Scroll edilince navbar biraz daha incelsin */
header.scrolled {
  height: 60px;
  padding: 0 64px;
}

/* ================= LOGO (ORTALI VE DENGELİ) ================= */
header img {
  height: 140px; 
  width: auto;
  
  position: absolute;
  top: 50%; /* Dikeyde ortala */
  transform: translateY(-50%); /* Tam merkezlemek için yukarı çeker */
  left: 64px;
  
  z-index: 1001;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2));
  pointer-events: auto;
}

/* Aşağı kaydırınca logo biraz küçülsün */
header.scrolled img {
  height: 90px;
}

/* ================= MENÜ HİZALAMA ================= */
nav {
  margin-left: auto; 
  display: flex;
  gap: 32px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: .3s;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto; 
}

/* ================= HERO & INTRO ================= */
.hero { max-width: 1100px; margin: auto; text-align: center; padding: 120px 24px 80px; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.2rem; margin-bottom: 24px; }
.hero p { max-width: 800px; margin: auto; font-size: 1.15rem; opacity: .85; }

.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; padding: 80px 64px; }
.intro-box { background: rgba(255,255,255,.65); backdrop-filter: blur(6px); padding: 40px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.intro-box i { font-size: 2rem; color: var(--accent); margin-bottom: 16px; }
.intro-box h3 { font-family: 'Playfair Display', serif; margin-bottom: 12px; }

/* ================= FLIPBOOK ALANI ================= */

/* !!! DÜZELTME: Bu kısım silindiği için site kaymıştı, geri ekledim !!! */
/* style.css içinde bul ve bununla değiştir */

.flipbook-section {
    /* ESKİSİ: padding: 20px 0 50px; idi */
    padding: 10px 0 10px; /* Üstten ve alttan sadece 10px boşluk bıraktık */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    
    /* Eğer "ekrana tam sığsın, scroll çıkmasın" istiyorsan bunu açabilirsin: */
    /* height: calc(100vh - 80px); */ 
}

/* style.css içinde bul ve bununla değiştir */

.book-wrapper {
    position: relative;
    width: 95vw;
    max-width: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
    
    /* ESKİSİ: margin-bottom: 30px; idi */
    margin-bottom: 10px; /* Dergi ile alttaki butonları birbirine yaklaştırdık */
}

.book-wrapper.ready { opacity: 1; }

#flipbook-container {
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.page-item {
    overflow: hidden;
    /* DÜZELTME: Beyaz şeritleri kaldırmak için transparent yaptık */
    background-color: transparent; 
}

.page-item img {
    width: 100%;
    height: 100%;
    /* DÜZELTME: Resmi tam yaymak için fill yaptık */
    object-fit: fill; 
}

/* --- SOLDAKİ İPUCU YAZISI --- */
/* ================= SOLDAKİ İPUCU YAZISI (ANİMASYONLU) ================= */

/* 1. Önce animasyonları (hareketleri) tanımlayalım */

/* Yazının hafifçe parlayıp sönmesi için (Işıltı efekti) */
@keyframes textShimmer {
    0%, 100% {
        color: var(--dark);
        text-shadow: none;
    }
    50% {
        /* Yazı rengi altın rengine dönsün ve hafif gölge yapsın */
        color: var(--accent); 
        text-shadow: 0 0 8px rgba(200, 155, 92, 0.3);
    }
}

/* Ok işaretinin sağa gidip gelmesi için */
@keyframes arrowBounce {
    0%, 100% {
        transform: translateX(0); /* Başlangıç noktası */
    }
    50% {
        transform: translateX(10px); /* 10px sağa git */
    }
}


/* 2. Şimdi bu animasyonları elementlere uygulayalım */

.intro-hint {
    position: absolute;
    left: 2%;
    bottom: 10%; /* Biraz daha yukarı aldım, daha iyi görünür */
    max-width: 220px;
    
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; /* Yazıyı bir tık büyüttüm */
    line-height: 1.4;
    
    pointer-events: none;
    z-index: 10; /* Kitabın veya gölgelerin altında kalmasın */
    
    display: none; /* Mobilde gizli */
}

/* Mobilde değilsek (masaüstü) göster */
@media (min-width: 1024px) {
    .intro-hint { display: block; }
}

/* Yazının kendisi (p etiketi) ışıltı animasyonunu alsın */
.intro-hint p {
    font-weight: 600;
    /* "textShimmer" animasyonunu 3 saniyede bir sonsuza kadar tekrarla */
    animation: textShimmer 3s ease-in-out infinite;
}

/* Yazının sonundaki ok işareti (::after) zıplama animasyonunu alsın */
.intro-hint::after {
    content: "→"; /* Ok işareti */
    display: inline-block; /* Hareketi görebilmek için inline-block şart */
    margin-left: 12px;
    font-size: 1.3rem;
    color: var(--accent); /* Ok her zaman altın rengi olsun */
    
    /* "arrowBounce" animasyonunu 1 saniyede bir hızlıca tekrarla */
    animation: arrowBounce 1s ease-in-out infinite;
}

/* --- KONTROLLER --- */
.flip-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: rgba(255,255,255,0.4);
    padding: 10px 30px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.flip-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
    transition: color 0.3s, transform 0.2s;
}

.flip-btn:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.page-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--dark);
    font-family: 'Inter', sans-serif;
}

.page-indicator input {
    width: 50px;
    padding: 5px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    text-align: center;
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255,255,255,0.8);
    color: var(--dark);
}

.page-indicator input:focus {
    outline: none;
    border-color: var(--accent);
}

/* ================= ABOUT & FOOTER ================= */
.about { max-width: 900px; margin: 120px auto; padding: 64px; background: rgba(255,255,255,.7); border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.08); text-align: center; }
.about h2 { font-family: 'Playfair Display', serif; font-size: 2.4rem; margin-bottom: 24px; }

footer { background: var(--dark); color: #ccc; padding: 32px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; font-size: .85rem; }
footer a { color: var(--accent); text-decoration: none; }
.footer-left { display: flex; gap: 16px; align-items: center; }
.footer-left i { color: var(--accent); }
.footer-bottom { grid-column: 1/-1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; display: flex; justify-content: space-between; }

/* ================= MOBİL (Tek bir yerde toplandı) ================= */
@media(max-width:900px){
    /* Header & Nav */
    header { padding: 0 32px; height: 70px; }
    header.scrolled { padding: 0 32px; }
    
    header img {
      left: 32px;
      height: 60px; /* Mobilde ortalı ve küçük */
    }
    header.scrolled img {
      height: 60px;
    }
    
    nav {
      position: absolute;
      top: 70px; 
      right: 0;
      background: var(--dark);
      flex-direction: column;
      width: 100%;
      display: none;
      margin-left: 0;
      padding-bottom: 20px;
    }
    
    nav.active { display: flex; }
    nav a { padding: 16px 64px; }
    .menu-toggle { display: block; }

    /* Layout */
    .intro { padding: 64px 24px; }
    footer { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    .intro-hint { display: none; }
}
/* ================= GÖRSELİN TAM OTURMASI (KESİN ÇÖZÜM) ================= */

/* Resmin içinde bulunduğu kutu */
.story-section .story-visual {
    width: 100% !important;
    height: 480px !important; /* Yüksekliği buradan kontrol edebilirsin */
    border-radius: 22px !important;
    overflow: hidden !important;
    display: block !important;
    position: relative !important;
    background-color: #000; /* Resim yüklenene kadar boşluk siyah görünsün */
}

/* Kutu içindeki resim */
.story-section .story-visual img {
    width: 100% !important;
    height: 100% !important;
    /* 🔥 object-fit: cover resmi kutuya yayar, boşluk bırakmaz */
    object-fit: cover !important; 
    object-position: center !important;
    display: block !important;
}

/* Sosyal medya ikonları için küçük bir dokunuş */
.footer-icon {
    font-size: 1.5rem;
    color: #fff;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-icon:hover {
    color: #d2bf7a; /* Üzerine gelince saman rengi olur */
}

/* Mobil uyum */
@media (max-width: 900px) {
    .story-section .story-visual {
        height: 300px !important;
    }
}