/* =========================================================================
   Tuba Bayraktaroğlu - Resmi Web Sitesi Ortak Tasarım Sistemi (Design System)
   Warm Storybook Editorial & Luxury Literary Design
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400..700;1,6..72,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-cream: #FAF8F5;
  --color-sand: #F3EFE8;
  --color-sand-border: #E5DCCE;
  --color-gold: #C5A059;
  --color-gold-hover: #B38D45;
  --color-terracotta: #B85C38;
  --color-terracotta-dark: #994422;
  --color-forest: #45664E;
  --color-forest-dark: #2E4B38;
  --color-dark: #1E1C1A;
  --color-charcoal: #2D2A27;
  --color-muted: #6B6661;
}

body {
  background-color: var(--color-cream);
  color: var(--color-dark);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.font-serif-title {
  font-family: 'Newsreader', 'Playfair Display', Georgia, serif;
}

.font-playfair {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Glassmorphism Navigation */
.glass-nav {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 220, 206, 0.7);
}

/* Book Cover Elevation & 3D Tilt */
.book-3d-wrap {
  perspective: 1200px;
}

.book-3d {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  transform-style: preserve-3d;
  box-shadow: 
    0 10px 20px -5px rgba(30, 28, 26, 0.15),
    0 4px 6px -2px rgba(30, 28, 26, 0.05),
    -4px 4px 10px rgba(0, 0, 0, 0.08);
  border-radius: 4px;
}

.book-3d:hover {
  transform: translateY(-8px) rotateY(-5deg) scale(1.02);
  box-shadow: 
    0 24px 38px -12px rgba(184, 92, 56, 0.22),
    0 12px 18px -6px rgba(30, 28, 26, 0.1),
    -8px 8px 16px rgba(0, 0, 0, 0.12);
}

/* Soft Organic Card */
.editorial-card {
  background: #FFFFFF;
  border: 1px solid var(--color-sand-border);
  border-radius: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.editorial-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  box-shadow: 0 16px 32px -8px rgba(30, 28, 26, 0.06);
  transform: translateY(-3px);
}

/* Glowing Pulsing Badge */
.pulse-badge {
  animation: warmPulse 4s infinite alternate ease-in-out;
}

@keyframes warmPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.25);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(197, 160, 89, 0);
  }
}

/* Active Nav Indicator */
.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-terracotta);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--color-terracotta);
  font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-cream);
}
::-webkit-scrollbar-thumb {
  background: #D8CEC0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* =========================================================================
   Mobile Drawer & Touch UX
   ========================================================================= */
#mobileMenu {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: top center;
}

#mobileMenu.active {
  display: block !important;
  animation: mobileMenuSlideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes mobileMenuSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Safe Touch Target Sizing */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================================
   Language Pill Switcher
   ========================================================================= */
.lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(243, 239, 232, 0.9);
  border: 1px solid var(--color-sand-border);
  border-radius: 9999px;
  padding: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lang-pill-item {
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--color-muted);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-pill-item.active {
  background: var(--color-terracotta);
  color: #FFFFFF !important;
  box-shadow: 0 2px 6px rgba(184, 92, 56, 0.28);
}

.lang-pill-item:hover:not(.active) {
  color: var(--color-dark);
  background: rgba(229, 220, 206, 0.5);
}

/* =========================================================================
   Blog Editorial & Article Styles
   ========================================================================= */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-terracotta));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s ease-out;
}

.prose-editorial {
  font-size: 1.125rem;
  line-height: 1.85;
  color: #383431;
}

.prose-editorial p {
  margin-bottom: 1.5rem;
}

.prose-editorial h2 {
  font-family: 'Newsreader', 'Playfair Display', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose-editorial h3 {
  font-family: 'Newsreader', 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose-editorial ul, .prose-editorial ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose-editorial ul {
  list-style-type: disc;
}

.prose-editorial ol {
  list-style-type: decimal;
}

.prose-editorial li {
  margin-bottom: 0.6rem;
}

.prose-editorial strong {
  color: var(--color-dark);
  font-weight: 700;
}

.editorial-quote {
  position: relative;
  margin: 2.25rem 0;
  padding: 1.75rem 2rem;
  background: rgba(243, 239, 232, 0.6);
  border-left: 4px solid var(--color-terracotta);
  border-radius: 0 1rem 1rem 0;
  font-family: 'Newsreader', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-dark);
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  background: rgba(197, 160, 89, 0.12);
  color: #8C6A24;
  border: 1px solid rgba(197, 160, 89, 0.25);
  transition: all 0.2s ease;
}

.blog-tag:hover {
  background: rgba(197, 160, 89, 0.2);
  transform: translateY(-1px);
}

