/* ============================================
   Ebru Tuay — Site Styles
   Palette is defined as CSS variables below so it
   can be swapped later once real branding is ready.
   ============================================ */

:root {
  --color-bg: #F6F3E7;        /* warm parchment/cream background */
  --color-bg-alt: #E4E9D6;    /* soft moss/sage tint for alternating sections */
  --color-primary: #4B6B45;   /* deep forest green — grounded, natural */
  --color-primary-dark: #33492F;
  --color-accent: #B97A4B;    /* warm clay/terracotta — earthy accent */
  --color-text: #2E2B24;      /* warm bark brown-black */
  --color-text-light: #6B6355;
  --color-white: #FFFFFF;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(46, 43, 36, 0.10);
  --max-width: 960px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; color: var(--color-accent); }

.subsection {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(51,49,46,0.1);
}

.subsection-block {
  margin-top: 22px;
}

.subsection-block:first-of-type {
  margin-top: 18px;
}

.subsection-block .video-grid {
  margin-top: 16px;
}

p { margin: 0 0 1em; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Hakkımda (about) photo + text layout ---------- */
.about-grid {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.about-photo-wrap {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow);
  border: 4px solid var(--color-white);
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.about-photo-wrap.photo-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.8rem;
  padding: 16px;
}

.about-text {
  flex: 1 1 auto;
  min-width: 0;
}

.bio-block {
  max-width: 720px;
  margin-top: 28px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
  max-width: 960px;
  align-items: start;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

@media (max-width: 640px) {
  .about-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
}

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--color-white);
  border-bottom: 1px solid rgba(51,49,46,0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-accent);
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 24px 76px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(75, 107, 69, 0.09), transparent 62%), var(--color-bg);
  position: relative;
  overflow: hidden;
}

.corner-flowers {
  position: absolute;
  width: 170px;
  height: 170px;
  pointer-events: none;
  opacity: 0.55;
  z-index: 0;
}

.corner-flowers.top-left {
  top: -18px;
  left: -18px;
  transform: rotate(-8deg);
}

.corner-flowers.bottom-right {
  bottom: -18px;
  right: -18px;
  transform: rotate(172deg);
}

.corner-flowers.top-right {
  top: -18px;
  right: -18px;
  transform: scaleX(-1) rotate(-8deg);
}

.corner-flowers.bottom-left {
  bottom: -18px;
  left: -18px;
  transform: scaleX(-1) rotate(172deg);
}

.hero .container,
.section-flowers > .container {
  position: relative;
  z-index: 1;
}

.section-flowers {
  position: relative;
  overflow: hidden;
}

@media (max-width: 560px) {
  .corner-flowers { width: 110px; height: 110px; }
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero p.lead {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 1.15rem;
  color: var(--color-text-light);
}

/* ---------- Sections ---------- */
section {
  padding: 68px 0;
}

section.alt {
  background: var(--color-bg-alt);
  border-radius: 56px 56px 0 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 32px;
  align-items: start;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.card p {
  color: var(--color-text-light);
  margin: 0;
  font-size: 0.98rem;
}

.card-photos {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  align-items: flex-start;
  /* Destek görseli; bölüm başlığını ezmeyecek ölçüde tutuluyor.
     (Önceden genişlik sınırsızdı ve "Konuşmalar ve Gösteriler"
     içindeki TEDx fotoğrafı ~630px'e kadar büyüyordu.) */
  max-width: 360px;
}

.card-photos img {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 100px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(185, 122, 75, 0.35);
}

.btn.secondary {
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
}

.btn.secondary:hover {
  box-shadow: 0 8px 18px rgba(75, 107, 69, 0.25);
}

/* ---------- Books ---------- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

/* Kitaplarım: üç kitap her zaman tek sırada, kapaklar küçültülmüş. */
.book-grid--row {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.book-grid--row .book-cover-wrap {
  height: 190px;
  padding: 14px;
}

@media (max-width: 560px) {
  .book-grid--row {
    grid-template-columns: 1fr;
  }
  .book-grid--row .book-cover-wrap {
    height: 260px;
  }
}

.book-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.book-cover-wrap {
  width: 100%;
  height: 320px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 22px;
}

.book-cover {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(46, 43, 36, 0.22);
}

.book-cover-wrap.cover-failed::after {
  content: "Kapak görseli yüklenemedi";
  color: var(--color-text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 0 20px;
}

.book-info {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-info h3 {
  margin-bottom: 2px;
}

/* Satın alma bağlantısı: buton değil, "Satın alınabilir" rozetinin hemen
   altında küçük bir metin bağlantısı. */
.book-buy-link {
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  margin: 8px 0 0;
}

.book-buy-link:hover {
  text-decoration: underline;
}

/* ---------- Videos ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

/* TEDx Konuşmaları: üç video her zaman yan yana. */
#videolar .video-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 640px) {
  #videolar .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
  padding: 20px;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: var(--color-bg-alt);
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(46, 43, 36, 0.7);
  color: var(--color-white);
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  padding: 0 0 0 4px;
}

.video-play-btn:hover {
  background: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card h3 {
  margin-bottom: 4px;
}

.poster-thumb-wrap {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-alt);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.spotify-embed-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 360px;
}

.spotify-embed-wrap iframe {
  display: block;
  border: 0;
}

/* Podcastler bölümündeki kartlar Videolar bölümündekiyle aynı .video-card
   yapısını kullanıyor, ama TEDx videoları kadar büyük görünmelerine gerek
   yok — bu yüzden sadece #podcastlar içindeki gridi küçültüyoruz.
   #videolar bu kuralın dışında kalıyor, boyutu değişmiyor. */
/* Bu bölümdeki video kartları sabit ve küçük bir boyutta tutuluyor.
   Önceden max değer "1fr" olduğu için, içinde tek video olan alt
   bölümler (Vizgo Eğitim, Migros TV, Doğan Cüceloğlu programı) o tek
   kartı satırın tamamına yayıyordu — yani devasa görünüyorlardı. Artık
   sütun genişliği en fazla 180px; kart sayısı ne olursa olsun hepsi
   aynı küçük boyutta kalıyor, sola yaslanıyor. */
#podcastlar .video-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
  gap: 14px;
  justify-content: start;
}

#podcastlar .video-card {
  padding: 10px;
}

#podcastlar .video-embed,
#podcastlar .video-placeholder {
  margin-bottom: 10px;
}

#podcastlar .video-play-btn {
  width: 42px;
  height: 42px;
  font-size: 1rem;
}

#podcastlar .video-card h3 {
  font-size: 1rem;
}

#podcastlar .video-card p {
  font-size: 0.82rem !important;
}

/* ---------- Kurumlar (organizations) — akan logo şeridi ---------- */
.org-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0;
}

/* Kenarlarda yumuşak solma efekti. Daha önce mask-image ile yapılıyordu ama
   iOS Safari, maskeli kapsayıcının içindeki animasyonlu şeridi yeniden
   boyamıyor ve akış donuyordu. Onun yerine iki kenara zemin renginden
   saydama giden birer örtü koyuyoruz. */
.org-marquee::before,
.org-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 1;
  pointer-events: none;
}
.org-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg-alt), transparent);
}
.org-marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg-alt), transparent);
}

.org-marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: org-marquee-scroll 55s linear infinite;
  /* iOS Safari, kenar solması (mask-image) olan bir kapsayıcının içindeki
     animasyonlu çocuğu yeniden boyamayı bırakıyor; şerit ilk karede
     donuyordu. translate3d + will-change ile şeridi kendi GPU katmanına
     alınca akış tekrar çalışıyor. */
  will-change: transform;
}

/* Fareyle üzerine gelince durur, okunabilsin diye */
.org-marquee:hover .org-marquee-track {
  animation-play-state: paused;
}

.org-marquee-logo {
  flex: 0 0 auto;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.org-marquee-logo img {
  max-height: 48px;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

/* Beyaz/açık renkli logolar krem zeminde kaybolmasın diye koyu bir kutu */
.org-marquee-logo.dark-bg {
  background: var(--color-primary-dark);
  border-radius: 10px;
  padding: 8px 14px;
}

@keyframes org-marquee-scroll {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Hareket azaltma tercihi olan kullanıcılar için sarılmış statik dizilim */
@media (prefers-reduced-motion: reduce) {
  .org-marquee::before,
  .org-marquee::after {
    display: none;
  }
  .org-marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
    gap: 32px 40px;
  }
}

.org-snapshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 280px));
  gap: 16px;
  justify-content: center;
  max-width: 620px;
  margin: 24px auto 0;
}

.org-snapshot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.org-snapshot img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* ---------- Contact ---------- */
.contact-form-wrap {
  max-width: 520px;
  margin: 24px auto 0;
}

@media (max-width: 720px) {
  /* Menü 6 maddeli; dar ekranda tek satıra sığmıyordu ve sayfayı yatay
     kaydırılabilir yapıyordu (Hakkımda solda, İletişim sağda kesiliyordu).
     Artık ortalanıp birden fazla satıra sarıyor. */
  nav.main-nav { width: 100%; }
  nav.main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }
  .nav-wrap { flex-direction: column; gap: 12px; }
  h1 { font-size: 2rem; }
}

form.contact-form label {
  display: block;
  font-weight: 700;
  margin: 16px 0 6px;
  font-size: 0.92rem;
  color: var(--color-primary-dark);
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(51,49,46,0.15);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-white);
}

form.contact-form textarea { min-height: 120px; resize: vertical; }

/* Gönderimden sonra gösterilen onay mesajı */
.form-confirmation {
  margin-top: 16px;
  background: rgba(75, 107, 69, 0.15);
  color: var(--color-primary-dark);
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- Blog ---------- */
.post-list {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  max-width: 680px;
}

.blog-post {
  padding: 34px 0;
  border-top: 1px solid rgba(51, 49, 46, 0.12);
}

.blog-post:first-child {
  border-top: none;
  padding-top: 10px;
}

.blog-post h2 {
  margin-bottom: 8px;
}

.blog-post .post-meta {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-accent);
  margin-bottom: 18px;
}

.blog-post p {
  color: var(--color-text);
}

.blog-post p:last-child {
  margin-bottom: 0;
}

.blog-post img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 8px 0 20px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  text-align: center;
  padding: 36px 24px;
  color: var(--color-text-light);
  font-size: 0.88rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

