/*
 * Theme Name: Kadiroloji
 * Theme URI: https://kadiroloji.com
 * Description: Yazar kişisel teması - Kitap sayfaları estetiği
 * Author: Kadiroloji
 * Version: 1.0
 * Text Domain: kadiroloji
 */

/* ===================================================
   1. CSS DEĞİŞKENLERİ & TEMEL AYARLAR
   =================================================== */
:root {
  --color-bg: #12121e;
  --color-surface: #1a1a2e;
  --color-card: #1e1e35;
  --color-card-hover: #25253f;
  --color-gold: #c9a84c;
  --color-gold-light: #e5c97e;
  --color-cream: #f0e8d5;
  --color-muted: #8a7e6e;
  --color-border: rgba(201, 168, 76, 0.18);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-gold: 0 4px 30px rgba(201, 168, 76, 0.12);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-cream);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* ===================================================
   2. MİSTİK ARKA PLAN SİSTEMİ
   =================================================== */

/* ── Tek Parça Mistik Arka Plan ───────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('assets/images/mystic_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
}

/* Diğer tüm karmaşık animasyonlar (nebula, sis, uçan sayfalar) performans ve kalite için kaldırıldı. */

.site-wrapper {
  position: relative;
  z-index: 2;
}

/* ===================================================
   3. HEADER & NAVİGASYON
   =================================================== */
.site-header {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--color-border);
  background: rgba(18, 18, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 70px;
}

.header-logo {
  display: flex;
  align-items: center;
  padding: 0 28px;
  border-right: 1px solid var(--color-border);
  min-width: 200px;
  text-decoration: none;
  transition: background var(--transition);
}

.header-logo:hover {
  background: rgba(201, 168, 76, 0.06);
}

.header-logo img {
  max-height: 44px;
  width: auto;
}

.header-logo-text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.header-logo-text span {
  display: block;
  font-size: 0.65rem;
  font-family: var(--font-sans);
  color: var(--color-muted);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 3px;
}

.header-nav-area {
  display: flex;
  flex: 1;
  align-items: stretch;
}

.nav-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-right: 1px solid var(--color-border);
}

.nav-section:last-child {
  border-right: none;
}

.nav-section .nav-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 0;
  padding-right: 16px;
  white-space: nowrap;
  font-weight: 600;
}

.nav-section ul {
  list-style: none;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Son Paylaşımlar carousel — tek satır, sırayla fade */
.nav-carousel ul {
  position: relative;
  display: block;
  min-height: 1.8em;
  flex: 1;
}

.nav-carousel ul li {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  white-space: nowrap;
  pointer-events: none;
}

.nav-carousel ul li.carousel-active {
  opacity: 1;
  pointer-events: auto;
}

.nav-section ul li a {
  color: var(--color-cream);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: block;
  opacity: 0.85;
}

.nav-section ul li a:hover,
.nav-section ul li.current-menu-item a {
  color: var(--color-gold);
  background: rgba(201, 168, 76, 0.1);
  opacity: 1;
}

/* ===================================================
   4. ANA İÇERİK
   =================================================== */
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ===================================================
   5. HERO / ÖNE ÇIKAN YAZI ALANI
   =================================================== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--color-border);
  box-shadow: var(--shadow-gold);
}

.hero-featured {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  min-height: 520px;
  background: var(--color-card);
}

.hero-featured a.thumb-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  z-index: 1;
}

.hero-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-featured:hover img {
  transform: scale(1.04);
}

.hero-featured .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(12, 12, 20, 0.95) 0%, rgba(12, 12, 20, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.hero-featured .post-meta {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  left: 32px;
  right: 32px;
}

.hero-featured .post-date {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-gold);
  margin-bottom: 10px;
  display: block;
}

.hero-featured h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-featured h2 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.hero-featured h2 a:hover {
  color: var(--color-gold);
}

/* Sağ kolon: 2 küçük yazı */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--color-card);
}

.hero-sidebar-post {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--color-border);
  min-height: 260px;
}

.hero-sidebar-post:last-child {
  border-bottom: none;
}

.hero-sidebar-post a.thumb-link {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  z-index: 1;
}

.hero-sidebar-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-sidebar-post:hover img {
  transform: scale(1.05);
}

.hero-sidebar-post .overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(12, 12, 20, 0.95) 0%, rgba(12, 12, 20, 0.2) 100%);
  pointer-events: none;
}

.hero-sidebar-post .post-info {
  position: absolute;
  inset: auto 24px 24px 24px;
  z-index: 3;
  pointer-events: none;
}

.hero-sidebar-post .post-info * {
  pointer-events: auto;
}

.hero-sidebar-post .post-date {
  font-size: 0.68rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  display: block;
}

.hero-sidebar-post h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-cream);
  line-height: 1.35;
}

.hero-sidebar-post h3 a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.hero-sidebar-post h3 a:hover {
  color: var(--color-gold);
}

/* ===================================================
   6. INSTAGRAM BÖLÜMÜ
   =================================================== */
.instagram-section {
  margin-top: 64px;
}

.section-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-cream);
  letter-spacing: 0.02em;
}

.section-title-accent {
  color: var(--color-gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-sans);
  font-weight: 500;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.instagram-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
  /* Sabit yükseklik ile kırpma — sadece video karesi görünsün */
  height: 420px;
}

/* Embed iframe'i yukarı kaydırarak header'ı gizle */
.instagram-card iframe {
  margin-top: -56px !important;
  width: 100% !important;
  min-height: 540px !important;
  border: none !important;
}

/* Blockquote'un kendi padding/margin'ini sıfırla */
.instagram-card .instagram-media {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: unset !important;
}

.instagram-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: var(--shadow-gold), var(--shadow-card);
}

.instagram-card .reel-thumb {
  position: relative;
  aspect-ratio: 9/16;
  width: 100%;
  overflow: hidden;
  background: #0d0d1a;
  flex: 1;
}

.instagram-card .reel-thumb img,
.instagram-card .reel-thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.instagram-card .reel-thumb .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: white;
  font-size: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.instagram-card:hover .play-icon {
  opacity: 1;
}

.instagram-card .reel-info {
  padding: 14px 16px;
  background: var(--color-card);
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reel-date {
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.reel-link {
  font-size: 0.72rem;
  color: var(--color-gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.reel-link:hover {
  color: var(--color-cream);
}

/* ===================================================
   7. FOOTER
   =================================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(12, 12, 20, 0.95);
  backdrop-filter: blur(12px);
  padding: 48px 24px 28px;
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer-brand .site-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--color-gold);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-nav-title,
.footer-contact-title {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav ul li a::before {
  content: '—';
  color: var(--color-gold);
  font-size: 0.6rem;
}

.footer-nav ul li a:hover {
  color: var(--color-cream);
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.83rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition);
}

.footer-contact-links a:hover {
  color: var(--color-gold);
}

.footer-contact-links .contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.footer-contact-links a:hover .contact-icon {
  background: rgba(201, 168, 76, 0.25);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: var(--color-muted);
}

.footer-bottom .copyright-notice {
  line-height: 1.5;
}

/* ===================================================
   8. YARDIMCI & ORTAK BİLEŞENLER
   =================================================== */
img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-gold);
}

.no-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #12122a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
  font-size: 2.5rem;
}

/* Goldline dekorasyon */
.gold-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  vertical-align: middle;
  margin-right: 10px;
}

/* ===================================================
   9. TEKİL YAZI (single.php)
   =================================================== */
.single-post-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 500px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-gold);
}

.single-post-hero img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

.single-post-header {
  margin-bottom: 32px;
}

.single-post-header .post-date-full {
  font-size: 0.72rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 14px;
}

.single-post-header h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.2;
  margin-bottom: 20px;
}

.post-content-area {
  max-width: 780px;
  margin: 0 auto;
}

.post-content-area p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.post-content-area h2,
.post-content-area h3 {
  font-family: var(--font-serif);
  color: var(--color-cream);
  margin: 2.5rem 0 1rem;
}

.post-content-area blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 16px 24px;
  margin: 2rem 0;
  background: rgba(201, 168, 76, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-cream);
}

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.nav-post-link {
  display: block;
  padding: 18px 22px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}

.nav-post-link:hover {
  border-color: rgba(201, 168, 76, 0.4);
  background: var(--color-card-hover);
  transform: translateY(-2px);
}

.nav-post-link .nav-dir {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-gold);
  margin-bottom: 6px;
  display: block;
}

.nav-post-link .nav-title {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  color: var(--color-cream);
  line-height: 1.3;
}

/* ===================================================
   10. RESPONSİVE
   =================================================== */
@media (max-width: 1024px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-featured {
    min-height: 380px;
  }

  .hero-sidebar {
    flex-direction: row;
  }

  .hero-sidebar-post {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }

  .hero-sidebar-post:last-child {
    border-right: none;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    min-height: auto;
  }

  .header-logo {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    min-width: unset;
    padding: 14px 20px;
  }

  .header-nav-area {
    flex-direction: column;
  }

  .nav-section {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .hero-sidebar {
    flex-direction: column;
  }

  .hero-sidebar-post {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .single-post-header h1 {
    font-size: 1.9rem;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .instagram-grid {
    grid-template-columns: 1fr;
  }

  .hero-featured {
    min-height: 280px;
  }

  .hero-featured h2 {
    font-size: 1.4rem;
  }
}