/* DW Bülten - Frontend minimal footer form */
.dwb-form { margin: 0; }
.dwb-row { display:flex; gap:.5rem; align-items:center; }
.dwb-input { height:48px; padding:0 14px; border:1px solid #e5e7eb; border-radius:999px; flex:1; outline:none; }
.dwb-input:focus { border-color:#00306e; box-shadow:0 0 0 3px rgba(0,48,110,.15); }
.dwb-btn { height:48px; padding:0 22px; border:none; border-radius:999px; background:#00306e; color:#fff; font-weight:700; cursor:pointer; }
.dwb-btn:hover { filter:brightness(.95); }
.dwb-check { display:flex; align-items:flex-start; gap:.5rem; margin-top:.75rem; font-size:14px; color:#111827; }
.dwb-check input[type="checkbox"]{ margin-top:4px; }
.dwb-msg{ margin-top:.75rem; padding:.5rem .75rem; border-radius:.5rem; font-size:14px;}
.dwb-msg.success{ background:#ecfdf5; border:1px solid #10b98133; }
.dwb-msg.error{ background:#fef2f2; border:1px solid #ef444433; }
.dwb-msg.info{ background:#eff6ff; border:1px solid #3b82f633; }
@media (max-width:640px){
  .dwb-row{ flex-direction:column; align-items:stretch; }
  .dwb-btn{ width:100%; }
}
/* DW Bülten - Frontend minimal footer form (light + dark tema destekli) */

/* Satır düzeni */
.dwb-form { margin: 0; }
.dwb-row { display:flex; gap:.5rem; align-items:center; }

/* Input & buton */
.dwb-input {
  height:48px;
  padding:0 14px;
  border:1px solid #e5e7eb;
  border-radius:999px;
  flex:1;
  outline:none;
  background:#ffffff;
  color:#111827;
}
.dwb-input::placeholder { color:#6b7280; }
.dwb-input:focus {
  border-color:#00306e;
  box-shadow:0 0 0 3px rgba(0,48,110,.15);
}

.dwb-btn {
  height:48px;
  padding:0 22px;
  border:none;
  border-radius:999px;
  background:#00306e;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}
.dwb-btn:hover { filter:brightness(.95); }

/* Checkboxlar ve metinleri */
.dwb-check {
  display:flex;
  align-items:flex-start;
  gap:.5rem;
  margin-top:.75rem;
  font-size:14px;
}
.dwb-check input[type="checkbox"]{ margin-top:4px; accent-color:#00306e; }
.dwb-form .dwb-check span { color:#111827; }
.dwb-form .dwb-check a { color:#00306e; text-decoration: underline; }

/* Mesajlar */
.dwb-msg{ margin-top:.75rem; padding:.5rem .75rem; border-radius:.5rem; font-size:14px;}
.dwb-msg.success{ background:#ecfdf5; border:1px solid #10b98133; }
.dwb-msg.error{   background:#fef2f2; border:1px solid #ef444433; }
.dwb-msg.info{    background:#eff6ff; border:1px solid #3b82f633; }

/* Dark tema varyantı: [dw_bulten_form theme="dark"] ile eklenir */
.dwb-dark,
.dwb-dark .dwb-check span { color:#f3f4f6; }
.dwb-dark .dwb-check a { color:#ffffff; text-decoration: underline; }
.dwb-dark .dwb-input { background:#ffffff; color:#111827; border-color:#ffffff; }
.dwb-dark .dwb-input::placeholder { color:#6b7280; }
.dwb-dark .dwb-btn { background:#00306e; color:#fff; }
.dwb-dark .dwb-check input[type="checkbox"] { accent-color:#00306e; }

/* Mobil */
@media (max-width:640px){
  .dwb-row{ flex-direction:column; align-items:stretch; }
  .dwb-btn{ width:100%; }
}
/* DW Bülten – Masaüstü buton hizalama/ölçü düzeltmesi */
@media (min-width: 768px){
  .dwb-form .dwb-row{
    display:flex;
    align-items:center;
    gap:12px;
  }

  .dwb-form .dwb-input{
    height:48px !important;
    margin:0 !important;
    box-sizing: border-box;
  }

  .dwb-form .dwb-btn{
    /* Temanın button sınıflarının etkisini kır ve sabitle */
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    height:48px !important;
    padding:0 24px !important;
    line-height:1 !important;
    border:none !important;
    border-radius:999px !important;
    box-sizing: border-box;

    background:#00306e !important;  /* DW primary */
    color:#fff !important;
    font-weight:700 !important;
    white-space:nowrap !important;

    -webkit-appearance:none;
    appearance:none;
    vertical-align:middle;
    cursor:pointer;
  }

  .dwb-form .dwb-btn:hover{
    filter:brightness(.95);
  }
}
/* Dark tema mesajların kontrast düzeltmesi */
.dwb-dark .dwb-msg { color:#111827; } /* beyaz değil, koyu metin */
.dwb-dark .dwb-msg.success{ background:#d1fae5; border:1px solid #10b98133; }
.dwb-dark .dwb-msg.error{   background:#fee2e2; border:1px solid #ef444433; }
.dwb-dark .dwb-msg.info{    background:#dbeafe; border:1px solid #3b82f633; }
/* Honeypot alanını tamamen görünmez yap */
.dwb-hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* ==============================
   DW Bülten - Yeni newsletter tasarımı (tema uyumlu)
   ============================== */

.dwb-newsletter{
  padding:40px 0;
}

.dwb-newsletter-head{
  margin-bottom:24px;
}

.dwb-title{
  font-size:32px;
  line-height:1.2;
  font-weight:700;
  margin:0 0 4px;
  color:#111827;
}

.dwb-subtitle{
  margin:0;
  font-size:15px;
  color:#4b5563;
}

.dwb-form{
  margin:0;
  max-width:720px;
}

.dwb-row{
  display:flex;
  align-items:stretch;
  gap:0;
}

.dwb-input{
  height:48px;
  padding:0 14px;
  border:1px solid #e5e7eb;
  outline:none;
  flex:1;
}

.dwb-input.dwb-email{
  border-radius:4px 0 0 4px;
  border-right:none;
}

.dwb-btn{
  height:48px;
  padding:0 32px;
  border:none;
  border-radius:0 4px 4px 0;
  background:#00306e;
  color:#fff;
  font-weight:700;
  white-space:nowrap;
  cursor:pointer;
}

.dwb-btn:hover{
  filter:brightness(.96);
}

.dwb-check{
  display:flex;
  align-items:flex-start;
  gap:.5rem;
  margin-top:.75rem;
  font-size:13px;
  color:#111827;
}

.dwb-check input[type="checkbox"]{
  margin-top:4px;
  accent-color:#00306e;
}

@media (max-width:640px){
  .dwb-form{
    max-width:100%;
  }
  .dwb-row{
    flex-direction:column;
    align-items:stretch;
  }
  .dwb-input.dwb-email{
    border-radius:4px;
    border-right:1px solid #e5e7eb;
  }
  .dwb-btn{
    width:100%;
    border-radius:4px;
    margin-top:8px;
  }
}

/* ==============================
   DW Bülten - Kategori Popup
   ============================== */

.dwb-topics-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.dwb-topics-modal.dwb-topics-open {
  display: flex;
}

.dwb-topics-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.dwb-topics-dialog {
  position: relative;
  background: #ffffff;
  max-width: 560px;
  width: 100%;
  margin: 0 1.5rem;
  border-radius: 18px;
  padding: 24px 24px 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  z-index: 1;
}

.dwb-topics-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #111827;
}

.dwb-topics-desc {
  font-size: 13px;
  margin: 0 0 18px;
  color: #4b5563;
}

.dwb-topics-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #4b5563;
}

.dwb-topics-list {
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

/* Her satır: sol tarafta ana kategori, sağda alt kategoriler */
.dwb-topic-group {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.dwb-topic-group:last-child {
  border-bottom: none;
}

/* ANA KATEGORİ BUTONU */
.dwb-topic-parent {
  flex: 0 0 38%;
  font-size: 13px;
}

.dwb-topic-parent label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Checkbox gizli, pill üzerinden yönetiyoruz */
.dwb-topic-parent-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Default: açık gri pill, çerçevesiz */
.dwb-topic-parent label span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

/* Seçili ana kategori: lacivert zemin, beyaz yazı */
.dwb-topic-parent-input:checked + span {
  background: #00306e;
  color: #ffffff;
}

/* ALT KATEGORİ BUTONLARI */
.dwb-topic-children {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dwb-topic-item {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
  position: relative;
}

/* Alt kategori checkbox'ı gizle */
.dwb-topic-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Default: açık gri pill, çerçevesiz */
.dwb-topic-item span {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Seçili alt kategori: lacivert zemin, beyaz yazı */
.dwb-topic-item input[type="checkbox"]:checked + span {
  background: #00306e;
  color: #ffffff;
}

/* Klavye odak */
.dwb-topic-item span:focus-visible {
  outline: 2px solid #00306e;
  outline-offset: 2px;
}

/* Alt kısım butonlar */
.dwb-topics-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.dwb-topics-save,
.dwb-topics-skip {
  border-radius: 999px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.dwb-topics-save {
  background: #00306e;
  color: #ffffff;
}

.dwb-topics-save:hover {
  filter: brightness(0.96);
}

.dwb-topics-skip {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #374151;
}

.dwb-topics-skip:hover {
  background: #f3f4f6;
}
@media (max-width: 480px) {
  .dwb-topics-dialog {
    margin: 0 1rem;
    padding: 20px 16px 16px;
  }
}
