@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --brand-primary: #3F3685;
  --brand-primary-dark: #2F266A;
  --brand-primary-light: #5247A8;
  --brand-primary-soft: #F2F0FA;
  --brand-amber: #FFB800;
  --brand-amber-dark: #E09E00;
  --brand-bg: #FBF9F5;
  --brand-bg-warm: #F5F1E9;
  --brand-card: #FFFFFF;
  --brand-border: #EAE6DF;
  --brand-text: #1F2937;
  --brand-muted: #5C6B8D;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--brand-text);
  background-color: var(--brand-bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Evrensel Medya ve Taşma Önleme (Site-Wide Responsive Media) */
img, video, iframe, embed, object, figure, picture {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

img {
  height: auto;
}

figure {
  margin-left: auto !important;
  margin-right: auto !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Kart ve Görsel Hover Efektleri (Tam Birebir Davranış) */
.hover-card-zoom {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
}

.hover-card-zoom:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(63, 54, 133, 0.16);
}

.hover-card-zoom .zoom-image {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hover-card-zoom:hover .zoom-image {
  transform: scale(1.05);
}

.hover-card-zoom:hover .post-card-title {
  color: var(--brand-primary);
}

/* Navigasyon Bağlantıları ve Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 0.75rem;
  box-shadow: 0 14px 28px rgba(63, 54, 133, 0.12);
  padding: 0.5rem 0;
  z-index: 50;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
  background-color: var(--brand-primary-soft);
  color: var(--brand-primary);
  padding-left: 1.5rem;
}

/* Buton Hover Efektleri */
.btn-primary-purple {
  background-color: var(--brand-primary);
  color: #FFFFFF;
  transition: all 0.25s ease;
}

.btn-primary-purple:hover {
  background-color: var(--brand-primary-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(63, 54, 133, 0.28);
}

.btn-amber-accent {
  background-color: var(--brand-amber);
  color: #1F2937;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-amber-accent:hover {
  background-color: var(--brand-amber-dark);
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 184, 0, 0.35);
}

/* Zengin Metin & Detay Sayfası Stilleri (Rich Prose) */
.rich-content {
  line-height: 1.85;
  color: #374151;
  font-size: 1.05rem;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  overflow-x: hidden !important;
}

.rich-content p {
  margin-bottom: 1.4rem;
}

.rich-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-top: 2rem;
  margin-bottom: 0.9rem;
}

.rich-content h3 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-primary-dark);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.rich-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.rich-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.rich-content li {
  margin-bottom: 0.5rem;
}

.rich-content blockquote {
  border-left: 4px solid var(--brand-primary);
  padding: 1rem 1.25rem;
  font-style: italic;
  color: #4B5563;
  margin: 1.75rem 0;
  background-color: var(--brand-primary-soft);
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Tüm WordPress Figure, Caption ve Görsellerinin Taşmasını Kesin Olarak Önleme */
.rich-content figure,
.rich-content .wp-caption,
.rich-content figure.wp-caption,
.rich-content div.wp-caption {
  max-width: 100% !important;
  width: auto !important;
  margin: 2rem auto !important;
  display: block !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.rich-content figure img,
.rich-content .wp-caption img,
.rich-content figure.wp-caption img,
.rich-content img {
  display: block !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  box-sizing: border-box !important;
}

.rich-content figcaption,
.rich-content .wp-caption-text {
  font-size: 0.85rem;
  color: #6B7280;
  margin-top: 0.65rem;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
  padding: 0 0.5rem;
  max-width: 100% !important;
  word-break: break-word !important;
}

.rich-content table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 1.5rem 0;
  display: block;
  overflow-x: auto;
}

/* Embed Konteynerleri (YouTube, X, Instagram vb.) */
.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 1.75rem 0;
  border-radius: 0.75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.social-embed-item {
  margin: 1.75rem 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.social-embed-item .twitter-tweet,
.social-embed-item .instagram-media {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ql-editor .social-embed-item {
  border: 1px dashed #c4b5fd;
  background-color: #faf5ff;
  border-radius: 12px;
  padding: 10px;
  margin: 12px 0;
}

/* Toast Bildirim */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease forwards;
}
