/* ==========================================================
   WPBlog Elite — Dark Mode CSS
   ========================================================== */

[data-theme="dark"],
.dark-mode {
  /* Temel Renkler */
  --wpb-bg:           #0f0f1a;
  --wpb-surface:      #1a1a2e;
  --wpb-surface-2:    #0d0d1a;
  --wpb-border:       rgba(255,255,255,0.08);
  --wpb-text:         #e2e8f0;
  --wpb-text-muted:   #94a3b8;
  --wpb-text-invert:  #0f0f1a;

  /* Gölgeler */
  --wpb-shadow-sm:    0 2px 8px rgba(0,0,0,0.4);
  --wpb-shadow:       0 4px 20px rgba(0,0,0,0.5);
  --wpb-shadow-lg:    0 8px 40px rgba(0,0,0,0.6);
  --wpb-shadow-xl:    0 20px 60px rgba(0,0,0,0.7);
}

/* Geçiş Animasyonu */
html.dark-mode-transition,
html.dark-mode-transition * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Dark Header */
[data-theme="dark"] .wpb-header {
  background: #1a1a2e;
  border-bottom-color: rgba(255,255,255,0.08);
}

[data-theme="dark"] .wpb-header--transparent {
  background: transparent;
}

[data-theme="dark"] .wpb-header--sticky.is-scrolled {
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Dark Nav */
[data-theme="dark"] .wpb-nav > li > a { color: #e2e8f0; }
[data-theme="dark"] .wpb-nav .sub-menu {
  background: #1a1a2e;
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .wpb-nav .sub-menu a { color: #e2e8f0; }
[data-theme="dark"] .wpb-nav .sub-menu a:hover { background: #0f0f1a; }

/* Dark Cards */
[data-theme="dark"] .wpb-card {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.06);
}

[data-theme="dark"] .wpb-card__title a { color: #e2e8f0; }
[data-theme="dark"] .wpb-card__excerpt { color: #94a3b8; }
[data-theme="dark"] .wpb-card__meta { border-top-color: rgba(255,255,255,0.08); color: #94a3b8; }

[data-theme="dark"] .wpb-list-card {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Dark Single */
[data-theme="dark"] .wpb-single__meta { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .wpb-single__body pre { background: #0d0d1a; }
[data-theme="dark"] .wpb-single__body code { background: #0f0f1a; }
[data-theme="dark"] .wpb-single__body table th { background: #0f0f1a; }
[data-theme="dark"] .wpb-single__body blockquote { background: rgba(230, 57, 70, 0.08); }

/* Dark Tags */
[data-theme="dark"] .wpb-tag { border-color: rgba(255,255,255,0.1); color: #94a3b8; }

/* Dark Sidebar */
[data-theme="dark"] .widget {
  background: #1a1a2e;
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .widget-title { color: #e2e8f0; }

/* Dark Archive Header */
[data-theme="dark"] .wpb-archive-header {
  background: linear-gradient(135deg, rgba(230,57,70,0.1), #1a1a2e);
  border-bottom-color: rgba(255,255,255,0.08);
}

/* Dark Breaking Ticker */
[data-theme="dark"] .wpb-breaking-ticker {
  background: #16213e;
  border-bottom-color: rgba(255,255,255,0.06);
}

/* Dark Section Header */
[data-theme="dark"] .wpb-post-nav__prev,
[data-theme="dark"] .wpb-post-nav__next {
  background: #1a1a2e;
  border-color: rgba(255,255,255,0.08);
  color: #e2e8f0;
}

/* Dark Forms */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: #1a1a2e;
  border-color: rgba(255,255,255,0.12);
  color: #e2e8f0;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #64748b; }

/* Dark Pagination */
[data-theme="dark"] .wpb-pagination a,
[data-theme="dark"] .wpb-pagination span {
  background: #1a1a2e;
  border-color: rgba(255,255,255,0.08);
  color: #e2e8f0;
}

/* Dark Modal */
[data-theme="dark"] .wpb-popup,
[data-theme="dark"] .wpb-modal {
  background: #1a1a2e;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Dark Cookie Banner */
[data-theme="dark"] .wpb-cookie-banner {
  background: #16213e;
  border-top-color: rgba(255,255,255,0.08);
  color: #e2e8f0;
}

/* Dark Logo Toggle */
[data-theme="dark"] .wpb-header__logo-img:not([data-dark]) {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .wpb-header__logo-img[data-dark-loaded="true"] {
  filter: none;
}

/* Dark Mode Toggle Button */
.wpb-dark-toggle {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--wpb-radius-sm);
  cursor: pointer;
  color: var(--wpb-text);
  font-size: 1rem;
  transition: background var(--wpb-transition), color var(--wpb-transition);
  position: relative;
}

.wpb-dark-toggle:hover { background: var(--wpb-bg); color: var(--wpb-primary); }

.wpb-dark-toggle .icon-moon,
.wpb-dark-toggle .icon-sun { position: absolute; transition: opacity 0.3s, transform 0.3s; }

.wpb-dark-toggle .icon-moon { opacity: 1; transform: rotate(0deg); }
.wpb-dark-toggle .icon-sun  { opacity: 0; transform: rotate(45deg); }

[data-theme="dark"] .wpb-dark-toggle .icon-moon { opacity: 0; transform: rotate(-45deg); }
[data-theme="dark"] .wpb-dark-toggle .icon-sun  { opacity: 1; transform: rotate(0deg); }

/* Floating Dark Mode Toggle */
.wpb-dark-toggle--float {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--wpb-primary) !important;
  color: #fff !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 16px rgba(230,57,70,0.4);
  z-index: 999;
}

/* Dark Firma Cards */
[data-theme="dark"] .wpb-firma-card {
  background: #1a1a2e;
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .wpb-firma-card__name a { color: #e2e8f0; }

/* Dark AI Summary */
[data-theme="dark"] .wpb-ai-summary {
  background: rgba(230,57,70,0.08);
  border-left-color: var(--wpb-primary);
}

/* Dark Tables */
[data-theme="dark"] .wpblog-table th,
[data-theme="dark"] .wpblog-table td { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .wpblog-table th { background: #0f0f1a; color: #e2e8f0; }
[data-theme="dark"] .wpblog-table tr:hover td { background: rgba(255,255,255,0.04); }

/* Dark Comment */
[data-theme="dark"] .comment-body {
  background: #1a1a2e;
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .comment-form input,
[data-theme="dark"] .comment-form textarea {
  background: #1a1a2e;
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0;
}

/* Extra dark overrides for new vars */
[data-theme="dark"] {
  --wpb-bg-card:       #1a1a2e;
  --wpb-bg-alt:        #0f0f1a;
  --wpb-border-light:  rgba(255,255,255,.04);
  --wpb-surface-2:     #0d0d1a;
}
[data-theme="dark"] .wpb-magazine__mini { background: #1a1a2e; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .wpb-single__content blockquote { background: #161629; }
[data-theme="dark"] .wpb-toc { background: #161629; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .wpb-single__tags { background: #0f0f1a; }
[data-theme="dark"] .wpb-post-nav__prev,
[data-theme="dark"] .wpb-post-nav__next { background: #1a1a2e; border-color: rgba(255,255,255,.08); }
[data-theme="dark"] .wpb-post-nav strong { color: #e2e8f0; }
[data-theme="dark"] .wpb-no-results { background: #1a1a2e; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .wpb-author-box { background: #1a1a2e; border-color: rgba(255,255,255,.06); }
[data-theme="dark"] .comment-form input,
[data-theme="dark"] .comment-form textarea { background: #1a1a2e; border-color: rgba(255,255,255,.08); color: #e2e8f0; }