/*
Theme Name: Jannah XenForo Edition
Theme URI: https://tielabs.com/jannah-xenforo/
Author: TieLabs
Author URI: https://tielabs.com/
Description: bbPress veya harici hiçbir eklentiye gerek kalmadan saf WordPress çekirdeğinde çalışan, resmi XenForo 2.3.13 modern arayüzüne ve tam admin yönetim paneline sahip tekil bağımsız (standalone) forum teması.
Version: 2.3.13
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jannah-xenforo
Tags: forum, community, bulletin-board, responsive-layout, custom-header, custom-menu, threaded-comments, translation-ready, theme-options
*/

/* ==========================================================================
   XenForo 2.3.13 Modern CSS Değişkenleri & Palet
   ========================================================================== */
:root {
  --xf-page-bg: #eceff4;
  --xf-content-bg: #fcfdfe;
  --xf-header-bg: #185886;
  --xf-header-accent: #2577b1;
  --xf-header-text: #ffffff;
  --xf-nav-bg: #1d6a9f;
  --xf-subnav-bg: #154c72;
  --xf-border-color: #d8dee9;
  --xf-border-light: #e5e9f0;
  --xf-node-header-bg: linear-gradient(180deg, #2b7bb9 0%, #1c5b8c 100%);
  --xf-node-header-text: #ffffff;
  --xf-node-row-hover: #f3f6fa;
  --xf-text-color: #141414;
  --xf-text-muted: #6e7a89;
  --xf-primary-button: #2577b1;
  --xf-primary-button-hover: #1f6394;
  --xf-primary-button-text: #ffffff;
  --xf-message-user-bg: #f4f6f9;
  --xf-message-user-border: #dfe5ec;
  --xf-quote-bg: #f8fafc;
  --xf-quote-border: #2577b1;
  --xf-badge-admin: #c0392b;
  --xf-badge-mod: #27ae60;
  --xf-badge-senior: #8e44ad;
  --xf-badge-active: #2980b9;
  --xf-badge-new: #7f8c8d;
  --xf-border-radius: 6px;
  --xf-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"], body.dark-theme {
  --xf-page-bg: #11141a;
  --xf-content-bg: #1a1e26;
  --xf-header-bg: #131d28;
  --xf-header-accent: #1e3a56;
  --xf-nav-bg: #172432;
  --xf-subnav-bg: #0f1720;
  --xf-border-color: #262c36;
  --xf-border-light: #20252e;
  --xf-node-header-bg: linear-gradient(180deg, #1e354a 0%, #132230 100%);
  --xf-node-row-hover: #202530;
  --xf-text-color: #e2e8f0;
  --xf-text-muted: #8b99a6;
  --xf-message-user-bg: #15181f;
  --xf-message-user-border: #262c36;
  --xf-quote-bg: #161b23;
  --xf-quote-border: #38bdf8;
}

/* ==========================================================================
   Mobil Cihazlara Tam Uyum & Sağa Sola Kayma / Taşma Sıfırlayıcı (Zero Overflow)
   ========================================================================== */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  width: 100%;
  margin: 0;
  padding: 0;
  background-color: var(--xf-page-bg);
  color: var(--xf-text-color);
  font-family: var(--xf-font-family);
  font-size: 14px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

*, ::before, ::after {
  box-sizing: border-box;
}

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

pre, code {
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
  overflow-x: auto;
}

/* Kapsayıcılar */
.xf-page-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .xf-page-wrap {
    padding: 0 16px;
  }
}

/* XenForo Üst Header */
.xf-header {
  background: var(--xf-header-bg);
  color: #fff;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.xf-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 8px;
}

@media (min-width: 640px) {
  .xf-header-inner {
    min-height: 60px;
    gap: 14px;
  }
}

.xf-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  shrink: 0;
}

.xf-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--xf-border-radius);
  background: linear-gradient(135deg, #2e88cb, #124469);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.2);
  shrink: 0;
}

.xf-logo-text {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .xf-logo-text {
    font-size: 18px;
  }
}

/* XenForo Navigasyon Barı */
.xf-nav {
  background: var(--xf-nav-bg);
  border-top: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.xf-nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.xf-nav-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #e0f2fe;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.xf-nav-list li.is-active a,
.xf-nav-list li a:hover {
  background: var(--xf-header-accent);
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Sub-Navigasyon */
.xf-subnav {
  background: var(--xf-subnav-bg);
  padding: 6px 0;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.xf-subnav-list {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 11.5px;
  white-space: nowrap;
}

.xf-subnav-list a {
  color: #bae6fd;
  text-decoration: none;
}

.xf-subnav-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Breadcrumbs (Ekmek Kırıntısı) */
.xf-breadcrumbs-bar {
  background: var(--xf-content-bg);
  border-bottom: 1px solid var(--xf-border-color);
  padding: 8px 0;
  margin-bottom: 14px;
  font-size: 11.5px;
  width: 100%;
}

.xf-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  word-break: break-word;
}

.xf-breadcrumbs a {
  color: var(--xf-header-accent);
  text-decoration: none;
  font-weight: 500;
}

.xf-bread-sep {
  margin: 0 4px;
  color: var(--xf-text-muted);
}

.xf-bread-current {
  font-weight: 700;
  color: var(--xf-text-color);
}

/* Kolon Düzeni */
.xf-content-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .xf-content-columns {
    flex-direction: row;
  }
  .xf-main-column {
    flex: 1;
    min-width: 0;
    max-width: calc(100% - 306px);
  }
  .xf-sidebar-column {
    width: 290px;
    shrink: 0;
    max-width: 100%;
  }
}

/* XenForo Blokları & Forum Düğümleri */
.xf-block {
  margin-bottom: 16px;
  background: var(--xf-content-bg);
  border: 1px solid var(--xf-border-color);
  border-radius: var(--xf-border-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.xf-block-header {
  background: var(--xf-node-header-bg);
  color: var(--xf-node-header-text);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xf-node-row {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--xf-border-light);
  gap: 10px;
  transition: background-color 0.15s ease;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.xf-node-row:last-child {
  border-bottom: none;
}

.xf-node-row:hover {
  background-color: var(--xf-node-row-hover);
}

.xf-node-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xf-header-accent);
  font-size: 18px;
  shrink: 0;
  background: rgba(37, 119, 177, 0.08);
  border-radius: 6px;
}

.xf-node-main {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.xf-node-title a {
  font-size: 14.5px;
  font-weight: 700;
  color: #185886;
  text-decoration: none;
  word-break: break-word;
}

[data-theme="dark"] .xf-node-title a {
  color: #38bdf8;
}

.xf-node-desc {
  font-size: 12px;
  color: var(--xf-text-muted);
  margin: 2px 0 6px 0;
  word-break: break-word;
}

.xf-node-subforums {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11px;
}

.xf-node-subforums a {
  color: var(--xf-header-accent);
  text-decoration: none;
  background: rgba(37, 119, 177, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
}

.xf-node-stats {
  display: none;
}

@media (min-width: 640px) {
  .xf-node-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px;
    font-size: 12px;
    color: var(--xf-text-muted);
    text-align: center;
    border-left: 1px solid var(--xf-border-light);
    border-right: 1px solid var(--xf-border-light);
    shrink: 0;
  }
  .stat-pair {
    display: flex;
    flex-direction: column;
  }
  .stat-count {
    font-weight: 700;
    color: var(--xf-text-color);
  }
  .stat-label {
    font-size: 9.5px;
    text-transform: uppercase;
  }
}

.xf-node-extra {
  display: none;
}

@media (min-width: 768px) {
  .xf-node-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 200px;
    max-width: 200px;
    font-size: 11.5px;
    shrink: 0;
  }
  .xf-node-extra-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    shrink: 0;
  }
  .xf-node-extra-title {
    font-weight: 700;
    color: #185886;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }
  [data-theme="dark"] .xf-node-extra-title {
    color: #38bdf8;
  }
  .xf-node-extra-meta {
    font-size: 10.5px;
    color: var(--xf-text-muted);
  }
}

/* Konu Listesi (Thread Row) */
.xf-thread-row {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--xf-border-light);
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.xf-thread-row.is-sticky {
  background-color: rgba(245, 158, 11, 0.05);
}

.xf-thread-main {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.xf-thread-title {
  font-size: 14px;
  font-weight: 700;
  color: #185886;
  text-decoration: none;
  word-break: break-word;
}

[data-theme="dark"] .xf-thread-title {
  color: #38bdf8;
}

/* XenForo 2 Sütunlu Mesaj Düzeni */
.xf-message {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--xf-border-color);
  background: var(--xf-content-bg);
  border-radius: var(--xf-border-radius);
  margin-bottom: 14px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .xf-message {
    flex-direction: row;
  }
  .xf-message-user {
    width: 165px;
    min-width: 165px;
    max-width: 165px;
    border-right: 1px solid var(--xf-message-user-border);
    border-bottom: none !important;
  }
}

.xf-message-user {
  background: var(--xf-message-user-bg);
  border-bottom: 1px solid var(--xf-message-user-border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .xf-message-user {
    flex-direction: column;
    text-align: center;
    padding: 16px;
    gap: 0;
  }
}

.xf-message-user-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--xf-border-radius);
  object-fit: cover;
  border: 1px solid var(--xf-border-color);
  shrink: 0;
}

@media (min-width: 768px) {
  .xf-message-user-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px auto;
  }
}

.xf-message-user-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #185886;
  text-decoration: none;
  word-break: break-word;
}

[data-theme="dark"] .xf-message-user-name {
  color: #38bdf8;
}

.xf-message-user-banner {
  display: inline-block;
  padding: 2px 6px;
  font-size: 9.5px;
  font-weight: 800;
  border-radius: 3px;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: 2px;
}

.xf-message-user-stats {
  font-size: 11px;
  color: var(--xf-text-muted);
  margin-top: 8px;
  display: none;
}

@media (min-width: 768px) {
  .xf-message-user-stats {
    display: block;
    width: 100%;
    text-align: left;
    border-top: 1px solid var(--xf-border-light);
    padding-top: 8px;
  }
}

.xf-message-content-wrap {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Tekil Yazı İlk Mesaj: Yazar yan paneli olmadan tam genişlikli, ferah ve odaklı XenForo okuma alanı */
.xf-thread-first-post {
  display: flex !important;
  flex-direction: column !important;
}

.xf-thread-first-post .xf-message-content-wrap {
  width: 100% !important;
  flex: 1 1 100% !important;
  padding: 20px 24px;
}

.xf-message-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--xf-text-muted);
  border-bottom: 1px solid var(--xf-border-light);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.xf-message-body {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--xf-text-color);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.xf-message-signature {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed var(--xf-border-color);
  font-size: 11.5px;
  color: var(--xf-text-muted);
  font-style: italic;
  word-break: break-word;
}

/* Butonlar & Kontroller */
.xf-button {
  background: var(--xf-primary-button);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.15s ease, transform 0.05s ease;
  text-decoration: none;
}

.xf-button:hover {
  opacity: 0.92;
}

.xf-button:active {
  transform: scale(0.98);
}

/* Modern Beğeni Butonları & Tepkiler (Ultra-Modern Pill & Micro-Interaction) */
.xf-react-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--xf-content-bg, #ffffff);
  color: var(--xf-text-color, #334155);
  border: 1px solid var(--xf-border-color, #cbd5e1);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  line-height: 1.4;
  outline: none;
}

.xf-react-btn:hover {
  background: rgba(37, 119, 177, 0.08);
  border-color: #2577b1;
  color: #185886;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px -1px rgba(37, 119, 177, 0.15);
}

.xf-react-btn:active {
  transform: scale(0.96);
}

.xf-react-btn .xf-like-text {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.xf-react-btn .xf-like-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(100, 116, 139, 0.12);
  color: inherit;
  transition: all 0.2s ease;
}

.xf-react-btn.is-liked {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.4) !important;
}

.xf-react-btn.is-liked .xf-like-badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.xf-header-like-btn {
  padding: 3px 10px;
  font-size: 11.5px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  box-shadow: none;
}

.xf-header-like-btn:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: #059669;
  color: #047857;
}

.xf-header-like-btn.is-liked {
  background: #059669 !important;
  color: #ffffff !important;
  border-color: #047857 !important;
}

[data-theme="dark"] .xf-react-btn,
body.dark-theme .xf-react-btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .xf-react-btn:hover,
body.dark-theme .xf-react-btn:hover {
  background: #334155;
  border-color: #38bdf8;
  color: #f8fafc;
}

[data-theme="dark"] .xf-react-btn .xf-like-badge,
body.dark-theme .xf-react-btn .xf-like-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

[data-theme="dark"] .xf-header-like-btn,
body.dark-theme .xf-header-like-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.xf-input {
  background: var(--xf-content-bg);
  border: 1px solid var(--xf-border-color);
  color: var(--xf-text-color);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
}

.xf-input:focus {
  outline: none;
  border-color: var(--xf-header-accent);
}

/* Kenar Çubuğu Blokları */
.xf-sidebar-block {
  background: var(--xf-content-bg);
  border: 1px solid var(--xf-border-color);
  border-radius: var(--xf-border-radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.xf-sidebar-title {
  background: var(--xf-message-user-bg);
  color: var(--xf-text-color);
  padding: 10px 14px;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid var(--xf-border-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Footer */
.xf-footer {
  background: var(--xf-header-bg);
  color: #ffffff;
  padding: 20px 0;
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  width: 100%;
  box-sizing: border-box;
}

.xf-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.xf-footer-links a {
  color: #bae6fd;
  text-decoration: none;
}

.xf-footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.xf-footer-copyright {
  color: #e0f2fe;
  font-size: 11px;
}

/* Modal */
.xf-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}

.xf-modal-content {
  background: var(--xf-content-bg);
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border: 1px solid var(--xf-border-color);
  box-sizing: border-box;
}

.xf-modal-header {
  background: var(--xf-header-bg);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xf-modal-header h3 {
  margin: 0;
  font-size: 15px;
}

.xf-modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.xf-modal-body {
  padding: 16px;
}

.xf-form-group {
  margin-bottom: 14px;
}

.xf-form-group label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 4px;
  color: var(--xf-text-color);
}

.xf-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--xf-border-light);
}
