/*
 * Sayfa düzenleri (kenar çubukları, tam genişlik), footer üstü tam genişlik alan ve
 * kısa kod bileşenlerinin ortak stilleri.
 */
:root {
  --deu-container: 1320px;
  --deu-sidebar-width: 300px;
}

.container { width: min(var(--deu-container), calc(100% - 48px)); }
@media (max-width: 760px) {
  .container { width: min(100% - 32px, var(--deu-container)); }
}

/* Tam genişlik satırların 100vw taşması yatay kaydırma çubuğu oluşturmasın. */
.site-main { overflow-x: clip; }

/* ------------------------------------------------------------------ düzen ızgarası */
.deu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main";
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.75rem, 4vw, 3rem);
}
.deu-layout__main { grid-area: main; min-width: 0; }
.deu-layout--no-sidebar .deu-layout__main { width: 100%; max-width: 1200px; margin-inline: auto; }
.deu-layout--full-width .deu-layout__main { width: 100%; }

.deu-layout--left-sidebar { grid-template-columns: var(--deu-sidebar-width) minmax(0, 1fr); grid-template-areas: "left main"; }
.deu-layout--right-sidebar { grid-template-columns: minmax(0, 1fr) var(--deu-sidebar-width); grid-template-areas: "main right"; }
.deu-layout--both-sidebars { grid-template-columns: var(--deu-sidebar-width) minmax(0, 1fr) var(--deu-sidebar-width); grid-template-areas: "left main right"; }
.deu-sidebar--left { grid-area: left; }
.deu-sidebar--right { grid-area: right; }

/* Eski .content-area genişlik sınırlaması düzen içinde uygulanmaz. */
.deu-layout .content-area,
.deu-layout__main > .entry-content { max-width: none; margin-top: 0; padding: 0; }

@media (max-width: 1200px) {
  .deu-layout--both-sidebars {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "main main" "left right";
  }
}
@media (max-width: 900px) {
  .deu-layout--left-sidebar,
  .deu-layout--right-sidebar,
  .deu-layout--both-sidebars {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "main" "left" "right";
  }
  .deu-layout--left-sidebar { grid-template-areas: "main" "left"; }
  .deu-layout--right-sidebar { grid-template-areas: "main" "right"; }
}

/* ------------------------------------------------------------------ kenar çubuğu bileşenleri */
.deu-sidebar { display: grid; gap: 1.25rem; min-width: 0; }
@media (min-width: 901px) {
  .deu-sidebar--sticky { position: sticky; top: 1.5rem; }
  body.deu-sticky-header .deu-sidebar--sticky { top: 7rem; }
}
.deu-sidebar-widget {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--deu-border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
  font-size: .95rem;
}
.deu-sidebar-widget .widget-title {
  margin: 0 0 .85rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--deu-sky, #ebf3fa);
  color: var(--deu-navy, #002b49);
  font-size: 1.05rem;
}
.deu-sidebar-widget ul { margin: 0; padding: 0; list-style: none; }
.deu-sidebar-widget li { padding: .45rem 0; border-bottom: 1px solid #f1f5f9; }
.deu-sidebar-widget li:last-child { border-bottom: 0; }
.deu-sidebar-widget li ul { margin-top: .35rem; padding-left: 1rem; }
.deu-sidebar-widget a { color: var(--deu-text, #1e293b); text-decoration: none; }
.deu-sidebar-widget a:hover,
.deu-sidebar-widget a:focus-visible { color: var(--deu-blue, #0077b8); text-decoration: underline; }
.deu-sidebar-widget .current_page_item > a,
.deu-sidebar-widget .current-menu-item > a { color: var(--deu-blue, #0077b8); font-weight: 700; }
.deu-sidebar-widget img { max-width: 100%; height: auto; border-radius: 8px; }
.deu-sidebar-empty {
  padding: 1rem;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  color: #475569;
  font-size: .9rem;
}

/* ------------------------------------------------------------------ footer üstü tam genişlik alan */
/* Şeritler (arka planlar) her zaman tam genişliktir. İçerik varsayılan olarak kapsayıcı genişliğinde
   ortalanır; ".alignfull" sınıflı öğeler veya "kenardan kenara" ayarı açıkken tam genişlik olur. */
.deu-pre-footer { width: 100%; }
.deu-pre-footer__item { width: 100%; padding-block: clamp(1.5rem, 4vw, 3rem); }
.deu-pre-footer__item + .deu-pre-footer__item { border-top: 1px solid var(--deu-border, #e2e8f0); }
.deu-pre-footer__item:nth-child(even) { background: #f8fafc; }
.deu-pre-footer__item > * { width: min(var(--deu-container), calc(100% - 48px)); margin-inline: auto; }
.deu-pre-footer__item > .alignfull,
.deu-pre-footer--bleed .deu-pre-footer__item > * { width: 100%; }
.deu-pre-footer__title { margin-top: 0; margin-bottom: 1.25rem; color: var(--deu-navy, #002b49); font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.deu-pre-footer--bleed .deu-pre-footer__title { padding-inline: clamp(16px, 3vw, 32px); }
.deu-pre-footer img { max-width: 100%; height: auto; }

/* ------------------------------------------------------------------ kısa kod bileşenleri */
.deu-shortcode-block { margin-block: 0 1.5rem; }
.deu-shortcode-block:last-child { margin-bottom: 0; }
.deu-shortcode-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; }
.deu-shortcode-title { margin: 0 0 1rem; color: var(--deu-navy, #002b49); font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.deu-shortcode-head .deu-shortcode-title { margin: 0; }
.deu-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.25rem; }
.deu-shortcode-empty { padding: .75rem 1rem; border: 1px dashed #cbd5e1; border-radius: 8px; color: #475569; }
.entry-content .deu-shortcode-block a.info-toggle-btn,
.entry-content .information-panel a { text-decoration: none; }
.entry-content .information-panel h3,
.entry-content .information-panel h4 { margin-top: 0; }

/* Ana sayfa (sabit sayfa seçilmediğinde) */
.deu-front-default .section .deu-shortcode-block { margin-bottom: 0; }

/* Koyu mod (erişilebilirlik paneli) */
html.dark .deu-sidebar-widget,
body.deu-a11y-dark-mode .deu-sidebar-widget { background: #172033 !important; border-color: #334e68 !important; }
html.dark .deu-sidebar-widget a,
body.deu-a11y-dark-mode .deu-sidebar-widget a { color: #e2e8f0 !important; }
html.dark .deu-pre-footer__item:nth-child(even),
body.deu-a11y-dark-mode .deu-pre-footer__item:nth-child(even) { background: #0f172a !important; }
html.dark .deu-col--style-card,
body.deu-a11y-dark-mode .deu-col--style-card,
html.dark .deu-col--style-tint,
body.deu-a11y-dark-mode .deu-col--style-tint { background: #172033 !important; border-color: #334e68 !important; color: #e2e8f0 !important; }

/* İçerik alanına (.entry-content) yerleştirilen kart/liste başlıkları, içerik bağlantı rengini (mavi, altı çizili) almasın. */
.entry-content :is(.information-item h4, .listing-notice h2, .post-card h3, .event-card h3) a { color: inherit; text-decoration: none; }
.entry-content :is(.information-item h4, .post-card h3, .event-card h3) a:hover,
.entry-content :is(.information-item h4, .post-card h3, .event-card h3) a:focus-visible { text-decoration: underline; }
.entry-content .listing-notice h2 a:hover { color: var(--deu-blue, #0077b8); }
.entry-content :is(.information-item h4, .listing-notice h2, .post-card h3, .event-card h3) { margin-top: 0; }
