/* ==========================================================================
   Polat Emence — Amethyst Tasarım Sistemi (Faz 2)
   Bölümler: fontlar → token'lar → temel → başlık ölçeği → bağlantılar →
   butonlar → footer → odak → tema anahtarı → galeri → hareket
   ========================================================================== */

/* Manrope 600 latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope 600 latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Manrope 700 latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Manrope 700 latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 400 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter 400 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 500 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter 500 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 600 latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter 600 latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono 400 latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibmplexmono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 400 latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibmplexmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono 500 latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibmplexmono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* IBM Plex Mono 500 latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibmplexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Turkish-only fast path; all original Latin/extended faces remain as fallback. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/pm-manrope-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/pm-manrope-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pm-inter-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/pm-inter-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/pm-inter-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pm-ibmplexmono-400-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/pm-ibmplexmono-500-tr.woff2') format('woff2');
  unicode-range: U+011E-011F, U+0130, U+015E-015F;
}
/* --------------------------------------------------------------------------
   1) Token'lar — onaylanan Amethyst paleti. Tüm bileşenler yalnızca bu
   değişkenlerden ve Astra global paleti eşlemesinden renk alır.
   -------------------------------------------------------------------------- */
:root,
[data-theme="light"] {
  --pm-bg: #F9F7FC;
  --pm-surface: #FFFFFF;
  --pm-surface-alt: #F1EBF8;
  --pm-text: #24192F;
  --pm-muted: #62566D;
  --pm-accent: #713DB8;
  --pm-accent-hover: #592A99;
  --pm-border: #E5DDEC;
  --pm-on-accent: #FFFFFF;
  --pm-footer-bg: #24192F;
  --pm-footer-text: #F6F1FA;
  --pm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --pm-font-head: 'Manrope', 'Inter', sans-serif;
  --pm-font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  color-scheme: light;

  /* Astra global paleti → Amethyst eşlemesi (varlığı kullanan tüm
     Astra/Spectra bileşenleri otomatik olarak yeni renge geçer) */
  --ast-global-color-0: #713DB8;
  --ast-global-color-1: #592A99;
  --ast-global-color-2: #24192F;
  --ast-global-color-3: #62566D;
  --ast-global-color-4: #F9F7FC;
  --ast-global-color-5: #FFFFFF;
  --ast-global-color-6: #F1EBF8;
  --ast-global-color-7: #151019;
}

[data-theme="dark"] {
  --pm-bg: #151019;
  --pm-surface: #211828;
  --pm-surface-alt: #2C2035;
  --pm-text: #F6F1FA;
  --pm-muted: #C6B8CF;
  --pm-accent: #CDA2FF;
  --pm-accent-hover: #DEBEFF;
  --pm-border: #403047;
  --pm-on-accent: #151019;
  --pm-footer-bg: #211828;
  --pm-footer-text: #F6F1FA;
  color-scheme: dark;

  --ast-global-color-0: #CDA2FF;
  --ast-global-color-1: #DEBEFF;
  --ast-global-color-2: #F6F1FA;
  --ast-global-color-3: #C6B8CF;
  --ast-global-color-4: #151019;
  --ast-global-color-5: #211828;
  --ast-global-color-6: #2C2035;
  --ast-global-color-7: #F6F1FA;
}

/* --------------------------------------------------------------------------
   2) Temel
   -------------------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--pm-bg);
  color: var(--pm-text);
  font-family: var(--pm-font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--pm-font-head);
  color: var(--pm-text);
  line-height: 1.15;
}
code, kbd, pre, samp, .pm-mono { font-family: var(--pm-font-mono); }
::selection { background: var(--pm-accent); color: var(--pm-on-accent); }

/* --------------------------------------------------------------------------
   3) Başlık ölçeği — clamp() ile responsive; mobilde taşma engellenir
   -------------------------------------------------------------------------- */
/* Hero başlığı (eski Spectra section bloğunun içindeki H1) */
html body .wp-block-uagb-section .uagb-block-539c2837 .uagb-heading-text {
  font-size: clamp(2.625rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}
/* Bölüm başlıkları (Spectra advanced-heading; hero hariç) */
html body .entry-content .uagb-heading-text {
  font-size: clamp(1.75rem, 3.2vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 700;
}
/* Kart başlıkları (info-box) */
html body .entry-content .uagb-ifb-title {
  font-family: var(--pm-font-head);
  font-weight: 600;
  font-size: 1.375rem;
}
/* Başlık altı açıklama satırı */
html body .entry-content .uagb-heading-desc {
  color: var(--pm-muted);
  font-size: 1.0625rem;
}
/* Core başlıklar */
html body .entry-content h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
html body .entry-content h3 { font-size: 1.375rem; }
html body .entry-content h4, html body .entry-content h5, html body .entry-content h6 { font-size: 1.125rem; }

/* --------------------------------------------------------------------------
   4) Bağlantılar — accent; kart örtüleri ve butonlar hariç
   -------------------------------------------------------------------------- */
html body .entry-content a:not(.uagb-infobox-link-wrap):not(.wp-block-button__link):not(.uagb-buttons-repeater):not(.uagb-buttons__outer-wrap a) {
  color: var(--pm-accent);
  text-decoration-color: var(--pm-border);
}
html body .entry-content a:not(.uagb-infobox-link-wrap):not(.wp-block-button__link):not(.uagb-buttons-repeater):hover {
  color: var(--pm-accent-hover);
  text-decoration-color: var(--pm-accent-hover);
}
/* Menü */
html .main-header-menu .menu-link { color: var(--pm-text); }
html .main-header-menu .menu-item:hover > .menu-link,
html .main-header-menu .menu-item:focus > .menu-link,
html .main-header-menu .current-menu-item > .menu-link,
html .main-header-menu .menu-item.current-menu-ancestor > .menu-link { color: var(--pm-accent); }
/* Alt menüler (dropdown) — dark modda yüzey rengi */
html .main-header-menu .sub-menu,
html .ast-header-break-point .ast-desktop-header .main-header-menu .sub-menu { background: var(--pm-surface); }
html .main-header-menu .sub-menu .menu-item .menu-link { color: var(--pm-text); }

/* --------------------------------------------------------------------------
   5) Butonlar — metin her zaman --on-accent (dark'ta açık mor üstünde koyu metin)
   -------------------------------------------------------------------------- */
html body .wp-block-button .wp-block-button__link,
html body .ast-button,
html body .ast-custom-button,
html body .button:not(.wp-block-button__link),
html body input#submit,
html body .uagb-buttons-repeater { color: var(--pm-on-accent); }
html body .wp-block-button .wp-block-button__link:hover,
html body .ast-button:hover,
html body .ast-custom-button:hover,
html body .button:hover,
html body input#submit:hover,
html body .uagb-buttons-repeater:hover { color: var(--pm-on-accent); }

/* --------------------------------------------------------------------------
   6) Footer — iki modda da koyu yüzey, açık metin
   -------------------------------------------------------------------------- */
html body .site-footer { background: var(--pm-footer-bg); color: var(--pm-footer-text); }
html body .site-footer .ast-footer-copyright { color: var(--pm-footer-text); }
html body .site-footer .textwidget a { color: var(--pm-footer-text); }
html body .site-footer .textwidget a:hover { color: var(--pm-accent); }

/* --------------------------------------------------------------------------
   7) Görünür odak (focus-visible) — accent halkası
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.uagb-infobox-link-wrap:focus-visible {
  outline: 2px solid var(--pm-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   8) Tema anahtarı (header'da JS ile eklenir)
   -------------------------------------------------------------------------- */
.pm-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 0 14px;
  padding: 0;
  border: 1px solid var(--pm-border);
  border-radius: 999px;
  background: var(--pm-surface);
  color: var(--pm-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.pm-theme-toggle:hover { border-color: var(--pm-accent); color: var(--pm-accent); }
.pm-theme-toggle:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; }
.pm-theme-toggle svg { width: 20px; height: 20px; display: block; }
.pm-theme-toggle .pm-icon-sun { display: none; }
[data-theme="dark"] .pm-theme-toggle .pm-icon-sun { display: block; }
[data-theme="dark"] .pm-theme-toggle .pm-icon-moon { display: none; }

/* --------------------------------------------------------------------------
   9) Spectra galerisi — 16:9 en-boy (afişler 1024×576) → boyut rezervasyonu (CLS)
   -------------------------------------------------------------------------- */
html body .spectra-image-gallery__media img { aspect-ratio: 16 / 9; object-fit: cover; }

/* --------------------------------------------------------------------------
   10) Tema geçişi + hareket azaltma
   -------------------------------------------------------------------------- */
body,
.site-footer,
.ast-desktop-header,
.ast-mobile-header,
.ast-mobile-popup-drawer {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   11) Buton renkleri (v1.0.4)
   a) Spectra/WP butonlari: metin her zaman --on-accent. !important zorunlu -
      Astra, (0,4,0) ozellikli color:#ffffff kurallariyla siralamayi geciyor.
   b) Header Mail Gonder: outline (saydam) tarz -> accent kenarlik + accent metin,
      hover: accent dolgu + on-accent metin. WCAG: light 6.45, dark 9.11.
   -------------------------------------------------------------------------- */
html body .entry-content .uagb-buttons-repeater,
html body .entry-content .wp-block-button .wp-block-button__link {
  color: var(--pm-on-accent) !important;
}
html body .entry-content .uagb-buttons-repeater:hover,
html body .entry-content .uagb-buttons-repeater:focus,
html body .entry-content .wp-block-button .wp-block-button__link:hover,
html body .entry-content .wp-block-button .wp-block-button__link:focus {
  color: var(--pm-on-accent) !important;
}
html body .site-header .ast-custom-button-link {
  color: var(--pm-accent);
  border-color: var(--pm-accent);
}
html body .site-header .ast-custom-button-link:hover,
html body .site-header .ast-custom-button-link:focus {
  color: var(--pm-on-accent);
  background: var(--pm-accent);
  border-color: var(--pm-accent);
}

/* --------------------------------------------------------------------------
   12) Spectra blok-başına sabitlenmiş metin renkleri → token (v1.0.5)
   Spectra bazı info-box'larda subHeadingColor:#4c4c4c gibi blok-başına
   kural üretir. Tüm açıklama metinleri --pm-muted ile standardize edilir.
   WCAG: light 6.43:1, dark 9.96:1 (ölçüldü).
   -------------------------------------------------------------------------- */
html body .entry-content .uagb-ifb-desc,
html body .entry-content .uagb-heading-desc,
html body .entry-content .uagb-testimonial__description,
html body .entry-content .uagb-testimonial__title {
  color: var(--pm-muted);
}
html body .entry-content .uagb-testimonial__title {
  color: var(--pm-text);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13) Hero alt satırı (v1.0.6) — e4b50038 artık başlık değil (span);
   bölüm başlığı clamp'inden muaf tutulur, kendi ölçeğini kullanır.
   -------------------------------------------------------------------------- */
html body .entry-content .uagb-block-e4b50038 .uagb-heading-text {
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--pm-muted);
  font-family: var(--pm-font-head);
}

/* --------------------------------------------------------------------------
   14) Sabit genişlikli Spectra görsel blokları (v1.0.7) — Portfolyom'daki
   uagb/image blokları width:350px üretiyordu; dar ekranlarda taşmayarak
   kapsayıcıya sığması sağlanır.
   -------------------------------------------------------------------------- */
html body .entry-content .wp-block-uagb-image {
  max-width: 100% !important;
  width: auto !important;
}
html body .entry-content .wp-block-uagb-image img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   FAZ 3 BLOKLARI (v1.1.0) — eyebrow, kart sistemi, teknoloji etiketleri,
   kategori filtreleri, lightbox
   ========================================================================== */

/* 15) Eyebrow — IBM Plex Mono teknik aksan */
.pm-eyebrow {
  font-family: var(--pm-font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pm-accent);
  margin-bottom: 12px;
}

/* 16) Teknoloji etiketleri (chips) */
.pm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pm-chips .pm-chip {
  font-family: var(--pm-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--pm-border);
  background: var(--pm-surface);
  color: var(--pm-muted);
  white-space: nowrap;
}

/* 17) Kart sistemi — tutarlı proje/görsel kartları */
.pm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.pm-card {
  display: flex;
  flex-direction: column;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--pm-text);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.pm-card:hover, .pm-card:focus-visible {
  border-color: var(--pm-accent);
  box-shadow: 0 8px 24px rgba(36, 25, 47, 0.08);
  transform: translateY(-2px);
}
.pm-card .pm-card-media { position: relative; overflow: hidden; }
.pm-card .pm-card-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pm-card .pm-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pm-card .pm-card-kicker {
  font-family: var(--pm-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pm-accent);
}
.pm-card .pm-card-title { font-family: var(--pm-font-head); font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--pm-text); }
.pm-card .pm-card-desc { font-size: 0.9375rem; line-height: 1.6; color: var(--pm-muted); flex: 1; }
.pm-card .pm-card-link {
  font-family: var(--pm-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--pm-accent);
  margin-top: 6px;
}
.pm-card:hover .pm-card-link { color: var(--pm-accent-hover); }

/* 18) Kategori filtreleri */
.pm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 34px; }
.pm-filters .pm-filter {
  font-family: var(--pm-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--pm-border);
  background: var(--pm-surface);
  color: var(--pm-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 38px;
}
.pm-filters .pm-filter:hover { border-color: var(--pm-accent); color: var(--pm-accent); }
.pm-filters .pm-filter[aria-pressed="true"] {
  background: var(--pm-accent);
  border-color: var(--pm-accent);
  color: var(--pm-on-accent);
}
.pm-filters .pm-filter:focus-visible { outline: 2px solid var(--pm-accent); outline-offset: 2px; }
.pm-card[hidden] { display: none; }

/* 19) Lightbox — erişilebilir, mobil uyumlu */
.pm-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(21, 16, 25, 0.92);
  display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px;
  padding: 40px 24px 20px;
  animation: pm-lb-in 0.18s ease;
}
.pm-lightbox img {
  position: absolute; inset: 0; margin: auto;
  min-width: 0; min-height: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  width: auto; height: auto;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}
.pm-lightbox .pm-lb-image-area {
  grid-row: 1; grid-column: 1; position: relative; min-width: 0; min-height: 0;
}
.pm-lightbox .pm-lb-close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 250, 0.35);
  background: rgba(21, 16, 25, 0.6);
  color: #F6F1FA;
  font-size: 20px; line-height: 1;
  cursor: pointer;
}
.pm-lightbox .pm-lb-close:hover, .pm-lightbox .pm-lb-close:focus-visible { border-color: #CDA2FF; color: #CDA2FF; outline: none; box-shadow: 0 0 0 2px rgba(205, 162, 255, 0.5); }
.pm-lightbox .pm-lb-caption {
  grid-row: 2; margin: 0;
  text-align: center; color: #C6B8CF;
  font-family: var(--pm-font-mono); font-size: 0.8125rem;
  padding: 0 24px;
}
.pm-lightbox img[hidden], .pm-lightbox [hidden] { display: none; }
.pm-lightbox .pm-lb-status {
  position: absolute; left: 24px; right: 24px; top: 50%; transform: translateY(-50%);
  text-align: center; color: #F6F1FA;
}
.pm-lightbox .pm-lb-original { display: inline-block; margin-top: 12px; color: #CDA2FF; text-decoration: underline; }
.pm-lightbox .pm-lb-original:focus-visible { outline: 2px solid #CDA2FF; outline-offset: 4px; }
.pm-site-skip {
  position: absolute; top: 8px; left: 12px; z-index: 100000;
  padding: 12px 18px; background: var(--pm-surface); color: var(--pm-text);
  border: 2px solid var(--pm-accent); clip-path: inset(50%);
}
.pm-site-skip:focus { clip-path: none; }
#pm-site-start:focus { outline: none; }
@keyframes pm-lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pm-lightbox { animation: none; } .pm-card { transition: none; } }

/* ==========================================================================
   FAZ 3 ANA SAYFA BLOKLARI (v1.1.1)
   ========================================================================== */

/* 20) Özellik kartı — DAÜTT için yatay düzen */
.pm-feature {
  display: flex; align-items: stretch; gap: 28px;
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 14px; overflow: hidden;
  text-decoration: none; color: var(--pm-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pm-feature:hover, .pm-feature:focus-visible { border-color: var(--pm-accent); box-shadow: 0 10px 30px rgba(36, 25, 47, 0.08); }
.pm-feature .pm-feature-media { flex: 0 0 44%; position: relative; overflow: hidden; background: var(--pm-surface-alt); }
.pm-feature .pm-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-feature .pm-feature-body { flex: 1; padding: 30px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.pm-feature .pm-card-title { font-family: var(--pm-font-head); font-size: 1.5rem; font-weight: 700; color: var(--pm-text); }
.pm-feature .pm-card-desc { font-size: 1rem; line-height: 1.65; color: var(--pm-muted); }
.pm-feature .pm-card-link { font-family: var(--pm-font-mono); font-size: 0.8125rem; font-weight: 500; color: var(--pm-accent); margin-top: 4px; }
.pm-feature:hover .pm-card-link { color: var(--pm-accent-hover); }
@media (max-width: 767px) {
  .pm-feature { flex-direction: column; }
  .pm-feature .pm-feature-media { flex: 0 0 auto; }
  .pm-feature .pm-feature-media img { aspect-ratio: 16 / 9; }
  .pm-feature .pm-feature-body { padding: 24px 22px; }
}

/* 21) Referans kartları */
.pm-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pm-quote {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.pm-quote .pm-quote-mark { color: var(--pm-accent); font-family: var(--pm-font-head); font-size: 2.2rem; line-height: 0.6; font-weight: 700; }
.pm-quote .pm-quote-text { font-size: 0.9375rem; line-height: 1.65; color: var(--pm-muted); flex: 1; }
.pm-quote .pm-quote-person { display: flex; align-items: center; gap: 12px; }
.pm-quote .pm-quote-person img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; }
.pm-quote .pm-quote-name { font-family: var(--pm-font-head); font-weight: 600; font-size: 0.9375rem; color: var(--pm-text); }
.pm-quote .pm-quote-role { font-family: var(--pm-font-mono); font-size: 0.6875rem; letter-spacing: 0.05em; color: var(--pm-muted); margin-top: 2px; }

/* 22) Poster mini-ızgarası (Sahne bölümü) */
.pm-poster-grid { display: flex; gap: 14px; flex-wrap: wrap; }
.pm-poster-grid img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--pm-border); display: block; }
@media (max-width: 545px) { .pm-poster-grid img { width: calc(50% - 8px); } }

/* 23) CTA satırı */
.pm-cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 26px; }
.pm-cta-row .wp-block-button__link,
.pm-cta-row a.pm-cta-btn {
  display: inline-flex; align-items: center;
  background: var(--pm-accent);
  color: var(--pm-on-accent) !important;
  padding: 13px 26px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--pm-font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  transition: background-color 0.2s ease;
}
.pm-cta-row a.pm-cta-btn:hover { background: var(--pm-accent-hover); }
.pm-cta-row a.pm-cta-secondary {
  display: inline-flex; align-items: center;
  border: 1px solid var(--pm-border);
  background: var(--pm-surface);
  color: var(--pm-text) !important;
  padding: 13px 26px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 1rem; line-height: 1;
}
.pm-cta-row a.pm-cta-secondary:hover { border-color: var(--pm-accent); color: var(--pm-accent) !important; }
.pm-cta-note { font-family: var(--pm-font-mono); font-size: 0.8125rem; color: var(--pm-muted); margin-top: 18px; }

/* 24) Bölüm girişi metni */
.pm-section-intro { font-size: 1rem; color: var(--pm-muted); max-width: 720px; line-height: 1.7; margin-top: -6px; }

/* 25) Detay sayfası figure */
.pm-figure { margin: 8px 0 14px; display: flex; flex-direction: column; align-items: flex-start; }

/* --------------------------------------------------------------------------
   26) Faz 5 QA düzeltmeleri (v1.2.3)
   a) Tiyatro oyun kartları (uagb/columns, blok: 73ab2c20, dd9b9a08, 76b1505f,
      c926d1ff, 7b3b9be2) Spectra kolon overlay'lerinde sabit beyaz zemin var;
      dark modda yüzey token'ına bağlanır (light'a dokunmaz).
   b) Hero alt satırı (e4b50038) — blok-başına sabit metin rengi kuralı geçersiz
      kalıyordu; !important ile token'a bağlanır.
   c) Hero buton İÇ metni (.uagb-button__link) — Spectra iç div'e doğrudan
      color:#ffffff basıyor; miras yetmiyor, doğrudan token'a bağlanır.
   -------------------------------------------------------------------------- */
[data-theme="dark"] .uagb-block-73ab2c20 .uagb-column__overlay,
[data-theme="dark"] .uagb-block-dd9b9a08 .uagb-column__overlay,
[data-theme="dark"] .uagb-block-76b1505f .uagb-column__overlay,
[data-theme="dark"] .uagb-block-c926d1ff .uagb-column__overlay,
[data-theme="dark"] .uagb-block-7b3b9be2 .uagb-column__overlay {
  background-color: var(--pm-surface);
}
html body .entry-content .uagb-block-e4b50038 .uagb-heading-text {
  color: var(--pm-muted) !important;
}
html body .entry-content .uagb-buttons-repeater .uagb-button__link,
html body .entry-content .uagb-buttons-repeater .uagb-button__link:hover,
html body .entry-content .uagb-buttons-repeater .uagb-button__link:focus {
  color: var(--pm-on-accent) !important;
}

/* Reserve the legacy page headers' actual height through normal flow.
   Transparent styling stays intact; wrapping and loaded fonts need no fixed
   height, padding estimate, resize observer, or generated Spectra CSS edit. */
body.home.page-id-1201.ast-theme-transparent-header #masthead,
body.page-id-3203.ast-theme-transparent-header #masthead,
body.page-id-3171.ast-theme-transparent-header #masthead,
body.page-id-1205.ast-theme-transparent-header #masthead,
body.page-id-1207.ast-theme-transparent-header #masthead {
  position: relative;
}

/* These two legacy title blocks already follow the header. Remove their old
   overlay offset and fixed title height, keeping intrinsic text reflow. */
body.page-id-1205 .entry-content > .uagb-block-ae64ec9c,
body.page-id-1207 .entry-content > .uagb-block-343e39c0 {
  margin-block: 0 !important; /* Spectra's saved margins are important. */
  min-height: 0;
  padding-block: 24px;
}
body.page-id-1207 .entry-content > .uagb-block-a00e26a2 {
  padding-top: 40px;
}
@media (max-width: 921px) {
  body.page-id-1205 .entry-content > .uagb-block-ae64ec9c,
  body.page-id-1207 .entry-content > .uagb-block-343e39c0 {
    padding-block: 16px;
  }
  body.page-id-1207 .entry-content > .uagb-block-a00e26a2 {
    padding-top: 24px;
  }
}

@media (min-width: 922px) {
  #ast-desktop-header .main-header-menu > .menu-item-has-children > .sub-menu {
    left: 0; right: auto;
  }
  #ast-desktop-header .main-header-menu > .menu-item-has-children:focus-within > .sub-menu {
    visibility: visible; opacity: 1;
  }
  /* Astra's max-width:921.99 rule can also match at 922. The exact JS header
     state takes precedence over that rounded media-query boundary. */
  body.ast-desktop #ast-desktop-header {
    display: block;
  }

  /* Keep the mail action readable while the central menu wraps naturally. */
  #ast-desktop-header .site-header-primary-section-right {
    flex-shrink: 0;
    min-width: max-content;
  }
  #ast-desktop-header .ast-custom-button {
    white-space: nowrap;
  }
}

/* DAUTT detail: let flex sizing reserve the list's existing inline margin.
   Spectra's width:100% relies on -webkit-fill-available as a max-width;
   Firefox rejects that max-width and the oversized list widens the flex line. */
body.page-id-3203 #content .uagb-container-inner-blocks-wrap > :is(ul, ol) {
  width: auto;
  align-self: stretch;
  max-width: none;
}

/* Auxiliary routes: preserve large text reflow for long words. */
body:is(.search, .error404) #primary { overflow-wrap: anywhere; }
