/* ==============================================================
   UlaWeb — style.css (Aşama 3: 3 Sıra Yayın + 3 Sıra Etkileşim)
   Proje: C:\xampp\htdocs\ulaweb\
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------
   CSS DEĞİŞKENLERİ (Tema Sistemi — 10 renk + 2 arka plan)
--------------------------------------------------------------- */
:root {
  /* Birincil renk (varsayılan: Mor) */
  --primary:        #7c3aed;
  --primary-hover:  #6d28d9;
  --primary-light:  #ede9fe;

  /* Arka planlar */
  --bg:             #f0f2f5;
  --card:           #ffffff;
  --topbar-bg:      #ffffff;

  /* Metin */
  --text:           #1c1e21;
  --text-sec:       #65676b;
  --text-muted:     #90949c;

  /* Kenar */
  --border:         #dddfe2;
  --border-soft:    #e4e6ea;

  /* Boyutlar */
  --topbar-h:       56px;
  --col-left:       240px;
  --col-right:      294px;
  --gap:            12px;
  --max-w:          1380px;

  /* Köşe */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;

  /* Gölge */
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
}

/* 10 Renk Teması */
[data-theme-color="purple"] { --primary: #7c3aed; --primary-hover: #6d28d9; --primary-light: #ede9fe; }
[data-theme-color="blue"]   { --primary: #2563eb; --primary-hover: #1d4ed8; --primary-light: #dbeafe; }
[data-theme-color="green"]  { --primary: #16a34a; --primary-hover: #15803d; --primary-light: #dcfce7; }
[data-theme-color="teal"]   { --primary: #0891b2; --primary-hover: #0e7490; --primary-light: #cffafe; }
[data-theme-color="red"]    { --primary: #dc2626; --primary-hover: #b91c1c; --primary-light: #fee2e2; }
[data-theme-color="orange"] { --primary: #ea580c; --primary-hover: #c2410c; --primary-light: #ffedd5; }
[data-theme-color="pink"]   { --primary: #db2777; --primary-hover: #be185d; --primary-light: #fce7f3; }
[data-theme-color="yellow"] { --primary: #ca8a04; --primary-hover: #a16207; --primary-light: #fef9c3; }
[data-theme-color="gray"]   { --primary: #6b7280; --primary-hover: #4b5563; --primary-light: #f3f4f6; }
[data-theme-color="dark"]   { --primary: #1f2937; --primary-hover: #111827; --primary-light: #e5e7eb; }

/* ---------------------------------------------------------------
   RESET
--------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

ul { list-style: none; }

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   CARD
--------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------------
   TOPBAR
--------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.topbar__inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.topbar__logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
}

.topbar__search-wrap {
  position: relative;
  flex: 1;
  max-width: 300px;
  min-width: 0;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.topbar__search {
  width: 100%;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0 12px 0 32px;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.topbar__search:focus {
  border-color: var(--primary);
  background: #fff;
}
.topbar__search::placeholder { color: var(--text-muted); }

.btn-publish {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 18px;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}
.btn-publish:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.topbar__controls {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-left: auto;
}

.topbar__ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-sec);
  transition: background 0.15s, color 0.15s;
}
.topbar__ctrl-btn:hover {
  background: var(--bg);
  color: var(--text);
}
.topbar__ctrl-btn svg { width: 19px; height: 19px; }

.topbar__theme-dot { padding: 0; }
.theme-dot-preview {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--border);
  transition: background 0.2s;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: box-shadow 0.2s;
}
.btn-login:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.google-icon { width: 16px; height: 16px; flex-shrink: 0; }
.auth-user-wrap { position: relative; }
.btn-login--user { max-width: 190px; padding: 0 10px 0 5px; }
.auth-user-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.auth-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-user-arrow { color: var(--text-muted); }
.auth-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 600;
  min-width: 190px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.auth-user-menu[hidden] { display: none; }
.auth-user-email { padding: 4px 6px 8px; color: var(--text-muted); font-size: 0.7rem; overflow-wrap: anywhere; }
.auth-logout-btn { width: 100%; padding: 8px; border-radius: 6px; color: var(--text); text-align: left; }
.auth-logout-btn:hover { background: var(--primary-light); color: var(--primary); }

/* ---------------------------------------------------------------
   TEMA POPUP
--------------------------------------------------------------- */
.theme-popup {
  position: fixed;
  top: calc(var(--topbar-h) + 6px);
  right: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  z-index: 500;
  min-width: 216px;
}
.theme-popup[hidden] { display: none; }

.theme-popup__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}

.theme-popup__colors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.theme-color-btn {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.theme-color-btn:hover { transform: scale(1.15); }
.theme-color-btn.active { border-color: var(--text); }

.theme-color-swatch {
  position: absolute;
  inset: 0;
  background: var(--c, #7c3aed);
  border-radius: 50%;
}

.theme-color-check {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 800;
  display: none;
  line-height: 1;
}
.theme-color-btn.active .theme-color-check { display: block; }

.theme-popup__default {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sec);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s;
}
.theme-popup__default:hover { color: var(--primary); }

.theme-popup__sep {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.theme-popup__bg-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}

.theme-popup__bgs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.theme-bg-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}
.theme-bg-btn:hover { transform: scale(1.05); border-color: var(--primary); }
.theme-bg-btn.active { border-color: var(--primary); }

.theme-bg-preview {
  display: block;
  width: 44px;
  height: 28px;
  border-radius: 4px;
  background: #ccc;
}
.theme-bg-preview--dark  { background: linear-gradient(135deg, #06085a 0%, #0a0a12 40%, #2a062a 100%); }
.theme-bg-preview--light { background: linear-gradient(135deg, #b5e5ff 0%, #ffffff 40%, #ffb5e0 100%); }
.theme-bg-preview--none  { background: var(--bg); border: 1px solid var(--border); }

.theme-bg-label { font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; }

/* ---------------------------------------------------------------
   SAYFA DÜZENİ
--------------------------------------------------------------- */
.page-wrapper {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--topbar-h) + 14px) 10px 48px;
}

.main-grid {
  display: grid;
  grid-template-columns: var(--col-left) 1fr var(--col-right);
  gap: var(--gap);
  align-items: start;
}

.col-center { min-width: 0; }

.col-left,
.col-right {
  position: sticky;
  top: calc(var(--topbar-h) + 14px);
  max-height: calc(100vh - var(--topbar-h) - 28px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.col-left::-webkit-scrollbar,
.col-right::-webkit-scrollbar { width: 4px; }
.col-left::-webkit-scrollbar-thumb,
.col-right::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ---------------------------------------------------------------
   SOL KOLON
--------------------------------------------------------------- */
.col-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ad-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ad-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  margin: 8px 8px 0;
}

.ad-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 88px;
  font-size: 3rem;
  margin: 6px 8px;
  border-radius: var(--r-sm);
}
.ad-visual--1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.ad-visual--2 { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }

.ad-card__body { padding: 8px 10px 12px; }
.ad-card__title { font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; }
.ad-card__desc { font-size: 0.76rem; color: var(--text-sec); line-height: 1.4; margin-bottom: 9px; }

.btn-ad {
  display: inline-block;
  padding: 4px 13px;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-ad:hover { background: var(--primary-hover); text-decoration: none; }
.btn-ad--outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-ad--outline:hover { background: var(--primary-light); }

.article-list { padding: 12px 12px 10px; }
.sidebar-section-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.article-list__items { display: flex; flex-direction: column; gap: 9px; }
.article-item { display: flex; gap: 8px; align-items: flex-start; }
.article-item__thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.at--1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.at--2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.at--3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.at--4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.at--5 { background: linear-gradient(135deg, #fa709a, #fee140); }

.article-item__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.article-item__title {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-item__meta { font-size: 0.69rem; color: var(--text-muted); }

.more-link {
  display: inline-block;
  margin-top: 9px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.more-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------
   ORTA KOLON & YAYIN ALANI (3 SIRA KOMPAKT)
--------------------------------------------------------------- */
.col-center { display: flex; flex-direction: column; gap: 10px; }

.composer { padding: 12px 14px 10px; }
.composer__top { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 0.75rem;
  overflow: hidden;
}
.avatar--default { background: linear-gradient(135deg, #bdc3c7, #2c3e50); }
.avatar--kazim   { background: linear-gradient(135deg, #667eea, #764ba2); }
.avatar--zeynep  { background: linear-gradient(135deg, #f093fb, #f5576c); }
.avatar--mert    { background: linear-gradient(135deg, #4facfe, #00f2fe); color: #1a3a5c; }
.avatar--selin   { background: linear-gradient(135deg, #fa709a, #fee140); color: #5a1a30; }
.auth-avatar-photo { width: 100%; height: 100%; object-fit: cover; display: block; }

.composer__trigger {
  flex: 1;
  min-width: 0;
  height: 38px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 19px;
  padding: 0 14px;
  text-align: left;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-muted);
  transition: background 0.15s;
}
.composer__trigger:hover { background: #e4e6ea; }

.composer__sep {
  height: 1px;
  background: var(--border-soft);
  margin-bottom: 8px;
}

.composer__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}
.composer__row {
  display: contents;
}

.compose-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 5px;
  border-radius: 5px;
  color: var(--text-sec);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.compose-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.cb-icon { font-size: 0.85rem; line-height: 1; flex-shrink: 0; }
.cb-label {
  font-size: 0.69rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------
   GÖNDERİ KARTI
--------------------------------------------------------------- */
.post-card {
  position: relative;
  margin-bottom: 2px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

#dynamic-posts-container {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px 0;
  margin-bottom: 9px;
}
.post-header__left { display: flex; gap: 9px; align-items: center; min-width: 0; }
.post-header__meta-wrap { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.post-header__name-row { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; min-width: 0; }

.post-username {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  transition: color 0.15s;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verified {
  display: inline-block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 3px rgba(236, 72, 153, 0.35));
}
.verified[hidden] { display: none !important; }
.verified--profile { width: 25px; height: 25px; }
.verified--list, .verified--comment { width: 17px; height: 17px; }

.post-header__sub { display: flex; align-items: center; gap: 5px; }
.post-date { font-size: 0.71rem; color: var(--text-muted); }
.post-globe { font-size: 0.68rem; }

.post-menu-btn {
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  transition: background 0.12s;
}
.post-menu-btn:hover { background: var(--bg); }

.post-article-body {
  display: flex;
  gap: 12px;
  padding: 0 14px 10px;
  width: 100%;
  box-sizing: border-box;
}
.post-article-text {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-article-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.post-article-title:hover { color: var(--primary); }

.post-article-excerpt {
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.55;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-article-readmore-row {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-top: 2px;
}

.post-read-more-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.post-read-more-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.post-article-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.dot { color: var(--border); }

.post-article-thumb { flex-shrink: 0; width: 120px; }
.post-article-thumb:empty { display: none; }
.thumb-code {
  width: 120px;
  height: 96px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  position: relative;
  overflow: hidden;
}
.thumb-code::after {
  content: '</>';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(100,200,255,0.75);
}

.post-text {
  padding: 0 14px 9px;
  font-size: 0.9rem;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  word-break: break-word;
}

.post-read-more-btn {
  display: inline-block;
  margin: -4px 14px 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: opacity 0.15s;
}
.post-read-more-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.post-media {
  margin: 0 0 9px;
  width: 100%;
  overflow: hidden;
}

.post-photo {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
}

.post-card[data-post-type="photo"] .post-media--portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 680px;
  border-radius: var(--r-sm);
  background: var(--card);
}

.post-card[data-post-type="photo"] .post-photo--portrait {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 680px;
  margin: 0 auto;
  object-fit: contain;
}

.post-video-container,
.post-video-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--r-sm);
  overflow: hidden;
  width: 100%;
  margin: 0 0 9px;
}

.post-media video,
.post-video-container video,
.post-video-player {
  display: block;
  max-height: 680px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  background: #000000;
}
.post-video-bg {
  width: 100%;
  padding-bottom: 56.25%;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}
.post-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
  border: none;
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); background: #fff; }
.play-btn svg { width: 22px; height: 22px; margin-left: 2px; color: var(--text); }

.video-dur {
  position: absolute;
  bottom: 10px; right: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-sub-stats {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px 7px;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------
   ANKET
--------------------------------------------------------------- */
.poll-question {
  padding: 0 14px 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.poll-options { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 8px; }

.poll-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.poll-opt.interactive:hover {
  border-color: var(--primary);
  background: var(--card);
  cursor: pointer;
}
.poll-opt.selected {
  border-color: var(--primary);
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
}
.poll-opt.disabled {
  opacity: 0.85;
  cursor: default;
}

.poll-opt__label {
  font-size: 0.85rem;
  color: var(--text);
  min-width: 130px;
  max-width: 220px;
  flex-shrink: 0;
  z-index: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.poll-opt.selected .poll-opt__label {
  color: var(--primary);
  font-weight: 700;
}

.poll-opt__bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(125,125,125,0.15);
  border-radius: 4px;
  overflow: hidden;
  min-width: 40px;
  z-index: 1;
}

.poll-opt__bar {
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  transition: width 0.4s ease-out;
}

.poll-opt__pct {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sec);
  min-width: 42px;
  text-align: right;
  z-index: 1;
}
.poll-opt.selected .poll-opt__pct {
  color: var(--primary);
}

.poll-footer {
  padding: 6px 14px 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}
.poll-expired-badge {
  color: #ef4444;
  font-weight: 700;
}

/* Anket Oluşturma Popup Stilleri */
.poll-opt-builder-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.poll-opt-builder-row .modal-input {
  margin-bottom: 0;
  flex: 1;
}
.btn-remove-poll-opt {
  background: transparent;
  border: 1px solid var(--border);
  color: #ef4444;
  width: 34px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-remove-poll-opt:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}
.btn-add-poll-opt {
  width: 100%;
  background: transparent;
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 14px;
  transition: background 0.15s;
}
.btn-add-poll-opt:hover {
  background: var(--primary-light);
}

.poll-settings-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  margin-bottom: 14px;
}
.poll-setting-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}
.poll-duration-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text);
  padding-top: 6px;
  border-top: 1px solid var(--border-soft);
}

/* ---------------------------------------------------------------
   REAKSİYONLAR & 3 SIRA ETKİLEŞİM BUTONLARI
--------------------------------------------------------------- */
.post-reactions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  padding: 7px 14px;
  border-top: 1px solid var(--border-soft);
}

.reac-emoji {
  font-size: 1.05rem;
  transition: transform 0.12s;
  cursor: pointer;
}
.reac-emoji:hover { transform: scale(1.35); }

.reac-count {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 3px;
}

.post-actions {
  border-top: 1px solid var(--border-soft);
  padding: 4px 10px 6px;
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 2px 0;
}

.action-row--alt {
  border-top: 1px solid var(--border-soft);
  padding-top: 2px;
  margin-top: 1px;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 4px;
  border-radius: 5px;
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.act-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.act-btn.active {
  color: var(--primary);
  background: var(--primary-light);
}

.act-fav-btn.active {
  color: #ca8a04;
  background: rgba(202, 138, 4, 0.12);
}
.act-fav-btn.active .act-icon {
  color: #eab308;
  filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.6));
}
.act-icon { font-size: 0.8rem; line-height: 1; flex-shrink: 0; }
.act-text { overflow: hidden; text-overflow: ellipsis; }

.comment-badge,
.useful-badge,
.clap-badge {
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 2px;
}

/* ---------------------------------------------------------------
   AKIŞ İÇİ YORUMLAR
--------------------------------------------------------------- */
.post-comments-container {
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg);
  margin-top: 4px;
}
.post-comments-container[hidden] { display: none; }

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.comment-bubble {
  background: var(--card);
  border: 1px solid var(--border-soft);
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
}
.comment-bubble-author { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--primary); margin-right: 0; }
.comment-bubble-text { color: var(--text); }
.comment-bubble-time { font-size: 0.65rem; color: var(--text-muted); margin-left: 6px; }
.comment-bubble-header { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.comment-bubble-avatar { width: 24px; height: 24px; flex: 0 0 24px; }
.comment-bubble-header .comment-bubble-time { margin-left: auto; }
.comment-bubble-text { display: block; overflow-wrap: anywhere; }
.modal-comments-list { scrollbar-color: var(--primary) transparent; scrollbar-width: thin; }
.modal-comments-list::-webkit-scrollbar { width: 6px; }
.modal-comments-list::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 8px; }

.comment-form { display: flex; gap: 6px; }
.comment-input {
  flex: 1;
  height: 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 0 12px;
  font-size: 0.78rem;
  outline: none;
  background: var(--card);
  color: var(--text);
}
.comment-input:focus { border-color: var(--primary); }
.btn-comment-submit {
  padding: 0 12px;
  height: 32px;
  border-radius: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---------------------------------------------------------------
   GENİŞ EMOJİ SEÇİCİ POPUP
--------------------------------------------------------------- */
.reaction-picker {
  position: fixed;
  z-index: 600;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  width: 280px;
  max-height: 260px;
}
.reaction-picker[hidden] { display: none; }

.reaction-picker__quick {
  display: flex;
  justify-content: space-between;
  gap: 2px;
  margin-bottom: 6px;
}
.rp-emoji-btn {
  font-size: 1.15rem;
  padding: 2px;
  transition: transform 0.1s;
}
.rp-emoji-btn:hover { transform: scale(1.3); }

.reaction-picker__sep { height: 1px; background: var(--border-soft); margin: 6px 0; }
.reaction-picker__all {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 1.1rem;
}
.rp-mini-emoji {
  cursor: pointer;
  text-align: center;
  padding: 2px;
  transition: transform 0.1s;
}
.rp-mini-emoji:hover { transform: scale(1.3); }

/* ---------------------------------------------------------------
   UNIVERSAL MODAL
--------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.modal-overlay[hidden] { display: none; }

.modal-card {
  background: var(--card);
  width: 100%;
  max-width: 520px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}
.modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
  scrollbar-color: var(--primary) transparent;
  scrollbar-width: thin;
}
.modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}
.modal-card.modal-card--wide {
  max-width: min(94vw, 920px);
  width: 100%;
}

.modal-card.modal-card--editor {
  max-width: min(92vw, 900px);
  width: 100%;
}

.article-editor-title-input {
  width: 100%;
  box-sizing: border-box;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 12px 16px;
  margin-bottom: 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-editor-title-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  outline: none;
}

.article-editor-textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 400px;
  max-height: 60vh;
  font-size: 1.02rem;
  line-height: 1.7;
  padding: 16px 18px;
  white-space: pre-wrap;
  font-family: inherit;
  resize: vertical;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  scrollbar-color: var(--primary) var(--bg);
  scrollbar-width: thin;
  margin-bottom: 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.article-editor-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
  outline: none;
}
.article-editor-textarea::-webkit-scrollbar {
  width: 8px;
}
.article-editor-textarea::-webkit-scrollbar-track {
  background: var(--bg);
}
.article-editor-textarea::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}
.article-editor-textarea::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* Yayımlanmış içerik detayları: kompakt ortak üst şerit */
.modal-card--detail .modal-header {
  min-height: 56px;
  max-height: 64px;
  flex: 0 0 auto;
  padding: 8px 14px;
  gap: 10px;
}
.modal-card--detail .modal-title { flex: 1; min-width: 0; margin: 0; }
.modal-card--detail .detail-modal-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 400;
}
.modal-card--detail .detail-modal-avatar { width: 30px; height: 30px; flex: 0 0 30px; }
.modal-card--detail .detail-modal-stats {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}
.modal-card--detail .modal-close-btn { flex: 0 0 auto; margin-left: auto; }
.modal-card--detail .modal-body { min-height: 0; overflow-y: auto; }
/* Makale Okuyucu Modal (Tam Siyah #000000) */
.modal-card.modal-card--article {
  max-width: min(94vw, 920px);
  width: 100%;
  background: #000000 !important;
  color: #f5f5f5 !important;
  border: 1px solid #222222;
}
.modal-card.modal-card--article .modal-header {
  background: #000000 !important;
  border-bottom: 1px solid #1a1a1a;
}
.modal-card.modal-card--article .modal-title {
  color: #ffffff !important;
  font-weight: 700;
}
.modal-card.modal-card--article .modal-close-btn {
  color: #a3a3a3;
}
.modal-card.modal-card--article .modal-close-btn:hover {
  color: #ffffff;
  background: #1f1f1f;
}
.modal-card.modal-card--article .modal-body {
  background: #000000 !important;
  color: #f5f5f5 !important;
  padding: 20px 24px;
}
.modal-card.modal-card--article .article-reader-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 16px 0;
  padding-bottom: 14px;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: normal;
}
.modal-card.modal-card--article .article-reader-content {
  background: #000000 !important;
  color: #ededed !important;
  font-size: 1.02rem;
  line-height: 1.8;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-color: var(--primary) #000000;
  scrollbar-width: thin;
}
.modal-card.modal-card--article .article-reader-paragraph {
  margin: 0 0 1.25em 0;
  line-height: 1.8;
  color: #ededed;
  word-break: normal;
  overflow-wrap: break-word;
}
.modal-card.modal-card--article .article-reader-paragraph:last-child {
  margin-bottom: 0;
}
.modal-card.modal-card--article .article-reader-subheading {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1.4em 0 0.5em 0;
  line-height: 1.4;
}
.modal-card.modal-card--article .article-reader-content::-webkit-scrollbar {
  width: 8px;
}
.modal-card.modal-card--article .article-reader-content::-webkit-scrollbar-track {
  background: #000000;
}
.modal-card.modal-card--article .article-reader-content::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
.modal-card.modal-card--article .article-reader-content::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}
.modal-card.modal-card--article .article-reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #1a1a1a;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* Fotoğraf Okuyucu / Önizleme Modal (Tam Siyah #000000) */
.modal-card.modal-card--photo {
  max-width: min(94vw, 920px);
  width: 100%;
  background: #000000 !important;
  color: #f5f5f5 !important;
  border: 1px solid #222222;
}
.modal-card.modal-card--photo .modal-header {
  background: #000000 !important;
  border-bottom: 1px solid #1a1a1a;
}
.modal-card.modal-card--photo .modal-title {
  color: #ffffff !important;
  font-weight: 700;
}
.modal-card.modal-card--photo .modal-close-btn {
  color: #a3a3a3;
}
.modal-card.modal-card--photo .modal-close-btn:hover {
  color: #ffffff;
  background: #1f1f1f;
}
.modal-card.modal-card--photo .modal-body {
  background: #000000 !important;
  color: #f5f5f5 !important;
  padding: 16px 20px;
  overflow-y: auto;
  max-height: 82vh;
  scrollbar-color: var(--primary) #000000;
  scrollbar-width: thin;
}
.modal-card.modal-card--photo .modal-body::-webkit-scrollbar {
  width: 8px;
}
.modal-card.modal-card--photo .modal-body::-webkit-scrollbar-track {
  background: #000000;
}
.modal-card.modal-card--photo .modal-body::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}
.modal-card.modal-card--photo .modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

.photo-modal-img-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000000;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.photo-modal-img {
  max-width: 100%;
  max-height: calc(72vh - 80px);
  height: auto;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: var(--r-sm);
}

.photo-modal-desc {
  font-size: 0.98rem;
  line-height: 1.7;
  color: #ededed;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  padding: 12px 4px 6px 4px;
  border-top: 1px solid var(--primary);
  margin-top: 12px;
}

.photo-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
  margin-top: 14px;
  flex-wrap: wrap;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.modal-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.modal-close-btn {
  font-size: 1.1rem;
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover { background: var(--bg); color: var(--text); }

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-input,
.modal-textarea,
.modal-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  outline: none;
}
.modal-textarea { min-height: 90px; resize: vertical; }
.modal-input:focus,
.modal-textarea:focus,
.modal-select:focus { border-color: var(--primary); }

.modal-btn-submit {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
}
.modal-btn-submit:hover { background: var(--primary-hover); }

.modal-notice {
  background: var(--primary-light);
  border-left: 3px solid var(--primary);
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text);
  line-height: 1.4;
}

.modal-preview-box {
  border: 1px dashed var(--border);
  border-radius: var(--r-sm);
  padding: 10px;
  text-align: center;
  max-height: 220px;
  overflow: hidden;
}
.modal-preview-box img,
.modal-preview-box video {
  max-height: 190px;
  margin: 0 auto;
}

.media-file-sizes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.76rem;
}
.media-file-sizes[hidden] { display: none; }
.media-file-sizes strong { color: var(--text); }

.media-upload-progress {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 10px 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--text);
}
.media-upload-progress[hidden] { display: none; }
.media-upload-progress__status { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.8rem; font-weight: 700; }
.media-upload-progress__spinner { width: 16px; height: 16px; flex: 0 0 16px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: media-upload-spin 0.75s linear infinite; }
.media-upload-progress__track { width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: var(--border-soft); }
.media-upload-progress__bar { width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width 0.15s ease-out; }
.media-upload-progress.is-complete .media-upload-progress__spinner,
.media-upload-progress.is-error .media-upload-progress__spinner { display: none; }
.media-upload-progress.is-complete .media-upload-progress__status { color: var(--primary); }
.media-upload-progress.is-error .media-upload-progress__status { color: #b91c1c; }
.media-upload-progress.is-error .media-upload-progress__bar { background: #b91c1c; }
#modal-submit-photo:disabled,
#modal-close-btn:disabled { opacity: 0.58; cursor: wait; }
@keyframes media-upload-spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .media-file-sizes { align-items: flex-start; flex-direction: column; gap: 4px; }
  .media-upload-progress { padding: 9px 10px; }
  .media-upload-progress__status { font-size: 0.76rem; }
}

/* ---------------------------------------------------------------
   SESLİ OKU ÇUBUĞU
--------------------------------------------------------------- */
.tts-player-bar {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--primary);
  border-radius: 24px;
  padding: 8px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 16px;
}
.tts-player-bar[hidden] { display: none; }
.tts-info { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; font-weight: 600; color: var(--text); }
.tts-controls { display: flex; gap: 6px; }
.tts-btn {
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
}
.tts-btn--stop { background: #dc2626; }

/* ---------------------------------------------------------------
   SAĞ KOLON — SPONSORLAR
--------------------------------------------------------------- */
.col-right { display: flex; flex-direction: column; gap: 10px; }
.sponsors-panel { padding: 14px; }

.sponsor-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
}
.sponsor-item:last-of-type { border-bottom: none; }

.sponsor-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}
.sl--hostinger { background: #6a3eff; }
.sl--adobe     { background: #ff0000; font-style: italic; font-size: 0.8rem; }
.sl--samsung   { background: linear-gradient(135deg, #1428A0, #0054A5); font-size: 1.1rem; }
.sl--binance   { background: #f3ba2f; color: #212529; font-size: 1rem; }
.sl--dominos   { background: #006491; font-size: 1.5rem; }

.sponsor-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sponsor-name  { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.sponsor-desc  { font-size: 0.73rem; color: var(--text-sec); line-height: 1.3; }
.sponsor-url   { font-size: 0.68rem; color: var(--primary); }

/* ---------------------------------------------------------------
   KOYU MOD — body.mode-dark
--------------------------------------------------------------- */
body.mode-dark {
  --bg:          #18191a;
  --card:        #242526;
  --topbar-bg:   #242526;
  --text:        #e4e6eb;
  --text-sec:    #b0b3b8;
  --text-muted:  #8a8d91;
  --border:      #3e4042;
  --border-soft: #3a3b3c;
}

body.mode-dark .topbar { border-bottom-color: #3e4042; }
body.mode-dark .topbar__search { background: #3a3b3c; border-color: #3e4042; color: var(--text); }
body.mode-dark .topbar__search:focus { background: #3a3b3c; border-color: var(--primary); }
body.mode-dark .topbar__search::placeholder { color: var(--text-muted); }
body.mode-dark .btn-login { background: #3a3b3c; border-color: #3e4042; color: var(--text); }
body.mode-dark .composer__trigger { background: #3a3b3c; border-color: #3e4042; color: var(--text-muted); }
body.mode-dark .composer__trigger:hover { background: #4e4f50; }
body.mode-dark .theme-popup { background: #242526; border-color: #3e4042; }

/* ---------------------------------------------------------------
   NEON ARKA PLAN TEMALARI
--------------------------------------------------------------- */
body.bg-neon-dark, body.theme-neon-dark {
  background-image: url('../assets/backgrounds/neon-dark.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  --bg:          rgba(20,20,30,0.55);
  --card:        rgba(25, 27, 30, 0.88);
  --topbar-bg:   rgba(25, 27, 30, 0.92);
  --text:        #e4e6eb;
  --text-sec:    #b0b3b8;
  --text-muted:  #8a8d91;
  --border:      rgba(80,80,100,0.45);
  --border-soft: rgba(80,80,100,0.3);
}

body.bg-neon-dark .card,
body.bg-neon-dark .ad-card,
body.bg-neon-dark .topbar {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.bg-neon-light, body.theme-neon-light {
  background-image: url('../assets/backgrounds/neon-light.png');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  --bg:          rgba(255,255,255,0.45);
  --card:        rgba(255, 255, 255, 0.88);
  --topbar-bg:   rgba(255, 255, 255, 0.92);
  --text:        #1c1e21;
  --text-sec:    #45474a;
  --text-muted:  #65676b;
  --border:      rgba(180,180,200,0.45);
  --border-soft: rgba(180,180,200,0.3);
}

body.bg-neon-light .card,
body.bg-neon-light .ad-card,
body.bg-neon-light .topbar {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root {
    --col-left:  200px;
    --col-right: 240px;
  }
}

@media (max-width: 900px) {
  .main-grid { grid-template-columns: 1fr; }
  .col-left,
  .col-right {
    position: static;
    max-height: none;
    overflow-y: visible;
  }
  .col-left  { order: 3; }
  .col-center{ order: 1; }
  .col-right { order: 2; }
  .topbar__search-wrap { max-width: 220px; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 52px; }
  .topbar__inner  { gap: 6px; padding: 0 8px; }
  .topbar__logo   { font-size: 1.2rem; }
  .topbar__search-wrap { max-width: 130px; }
  .topbar__search { font-size: 0.8rem; height: 32px; }
  .btn-publish    { height: 32px; padding: 0 10px; font-size: 0.78rem; }
  .btn-login      { display: none; }
  .page-wrapper { padding-left: 6px; padding-right: 6px; }

  .post-article-body    { flex-direction: column; }
  .post-article-thumb   { width: 100%; }
  .thumb-code           { width: 100%; height: 140px; }

  .poll-opt             { flex-direction: column; align-items: flex-start; gap: 4px; }
  .poll-opt__label      { min-width: 0; max-width: 100%; }
  .poll-opt__bar-wrap   { width: 100%; }
  .poll-opt__pct        { min-width: 0; text-align: left; }

  .composer__row,
  .action-row {
    flex-wrap: wrap;
  }
  .composer__actions { flex-wrap: wrap; }
  .composer__actions .compose-btn { flex: 1 1 calc(25% - 2px); }
}

/* ---------------------------------------------------------------
   TOAST BİLDİRİM SİSTEMİ
--------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-message {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--primary);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  animation: toastIn 0.25s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------
   MODAL ÖZEL BİLEŞENLERİ (Yorum, Kaydedilenler, Koleksiyonlar, Paylaş)
--------------------------------------------------------------- */
.modal-original-post {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 12px;
}
.modal-original-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.modal-original-author { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.modal-original-meta { font-size: 0.7rem; color: var(--text-muted); }
.modal-original-text { font-size: 0.85rem; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.modal-original-media { max-height: 160px; overflow: hidden; border-radius: var(--r-sm); margin-top: 6px; }
.modal-original-media img { max-height: 160px; object-fit: contain; margin: 0 auto; }

.modal-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding-right: 4px;
}

.modal-card--comments { height: min(90vh, 680px); }
.modal-card--comments .modal-body { min-height: 0; overflow: hidden; }
.modal-card--comments .modal-section-title,
.modal-card--comments .comment-form,
.modal-card--comments .modal-notice { flex: 0 0 auto; }
.modal-card--comments .modal-section-title { width: 100%; margin-bottom: 0; }
.modal-card--comments .modal-comments-list {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-card--comments .comment-bubble { width: 100%; max-width: none; box-sizing: border-box; flex: 0 0 auto; height: auto; overflow: visible; }
.modal-card--comments .comment-bubble-text { white-space: normal; overflow: visible; text-overflow: clip; }

.modal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.modal-tab-btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-sec);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.modal-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.modal-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}
.modal-item-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.modal-item-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}
.modal-item-info { flex: 1; min-width: 0; }
.modal-item-title { font-size: 0.85rem; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-item-meta { font-size: 0.72rem; color: var(--text-muted); }

.share-options-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.share-option-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.share-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: var(--card);
}

.topbar__btn-saved {
  width: auto;
  height: 36px;
  padding: 0 10px;
  border-radius: 18px;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.topbar__btn-saved:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.saved-icon { font-size: 0.85rem; line-height: 1; }
.saved-label { white-space: nowrap; }

/* Bildirim Butonu & Rozeti */
.topbar__btn-notif {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.topbar__btn-notif:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}
.notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--card);
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.notif-badge[hidden] { display: none; }

/* Bildirim Popup Stilleri */
.notif-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-soft);
}
.notif-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.notif-filter-btn {
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-sec);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.notif-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.notif-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-mark-all-read {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-mark-all-read:hover { text-decoration: underline; opacity: 0.85; }

.notif-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Bildirim Scrollbar */
.notif-items-list::-webkit-scrollbar {
  width: 5px;
}
.notif-items-list::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}
.notif-items-list::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 4px;
}
.notif-items-list::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.notif-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.notif-item-card:hover {
  background: var(--bg);
  border-color: var(--border);
}
.notif-item-card.unread {
  background: var(--primary-light);
  border-color: var(--border);
  border-left: 3px solid var(--primary);
}

/* Okunmamış bildirimler koyu temada açık renkli bir blok oluşturmasın. */
body.mode-dark .notif-item-card.unread,
body.bg-neon-dark .notif-item-card.unread,
body.theme-neon-dark .notif-item-card.unread {
  background: color-mix(in srgb, var(--primary) 14%, var(--card));
  border-color: color-mix(in srgb, var(--primary) 34%, var(--border));
}

body.mode-dark .notif-item-card.unread:hover,
body.bg-neon-dark .notif-item-card.unread:hover,
body.theme-neon-dark .notif-item-card.unread:hover {
  background: color-mix(in srgb, var(--primary) 20%, var(--card));
}
.notif-item-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
}
.notif-item-card.unread .notif-item-icon {
  background: var(--card);
}
body.mode-dark .notif-item-card.unread .notif-item-icon,
body.bg-neon-dark .notif-item-card.unread .notif-item-icon,
body.theme-neon-dark .notif-item-card.unread .notif-item-icon {
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
  border: 1px solid var(--border-soft);
}
.notif-item-body {
  flex: 1;
  min-width: 0;
}
.notif-item-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.notif-item-text {
  font-size: 0.76rem;
  color: var(--text);
  opacity: 0.88;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item-time {
  font-size: 0.68rem;
  color: var(--text-sec);
  margin-top: 3px;
  font-weight: 500;
}
.notif-item-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-shrink: 0;
}
.notif-action-btn {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  font-size: 0.76rem;
  color: var(--text-sec);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.notif-action-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
  border-color: var(--primary);
}
.notif-action-btn--del:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

.notif-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--primary);
}

.btn-remove-saved {
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.btn-remove-saved:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.2);
}

.support-badge {
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 2px;
}

/* ---------------------------------------------------------------
   GÖNDERİ ••• DROPDOWN MENÜSÜ (Gönderiye Bağlı Scroll)
--------------------------------------------------------------- */
.post-dropdown-menu {
  position: absolute;
  top: 48px;
  right: 12px;
  z-index: 550;
  width: 210px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.post-dropdown-menu[hidden] { display: none; }

.dropdown-header {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 8px 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}
.dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.dropdown-item--danger { color: #dc2626; }
.dropdown-item--danger:hover {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.dropdown-sep {
  height: 1px;
  background: var(--border-soft);
  margin: 4px 0;
}

.post-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  background: #fef08a;
  color: #854d0e;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.user-badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 3px;
}

.admin-section {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 10px;
  background: var(--bg);
  margin-bottom: 8px;
}
.admin-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-sec);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.admin-btn-action {
  padding: 6px 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s;
}
.admin-btn-action:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.admin-btn-action.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

@media (max-width: 420px) {
  .theme-popup { right: 6px; left: 6px; min-width: 0; }
  .saved-label { display: none; }
  .topbar__btn-saved { width: 36px; padding: 0; }
}

/* Konum seçici ve konum gönderisi */
.modal-card--location { width: min(94vw, 680px); max-width: 680px; }
.modal-card--location .modal-body { min-height: 0; max-height: 82vh; overflow-y: auto; }
.location-picker { display: flex; flex-direction: column; gap: 10px; }
.location-search-row { display: flex; gap: 8px; }
.location-search-row .modal-input { margin: 0; }
.location-search-btn, .location-gps-btn { flex: 0 0 auto; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--card); color: var(--text); padding: 8px 12px; font-weight: 700; }
.location-search-btn:hover, .location-gps-btn:hover { border-color: var(--primary); color: var(--primary); }
.location-gps-btn:disabled { opacity: 0.6; cursor: wait; }
.location-search-results { max-height: 150px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-sm); scrollbar-color: var(--primary) transparent; }
.location-search-results button { width: 100%; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border-soft); color: var(--text); }
.location-search-results button:last-child { border-bottom: 0; }
.location-search-results button:hover { background: var(--primary-light); }
.location-search-results span { font-size: 0.72rem; color: var(--text-muted); }
.location-map, .location-detail-map { width: 100%; height: clamp(230px, 42vh, 360px); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.location-selected, .location-detail-name { display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; border-radius: var(--r-sm); background: var(--primary-light); color: var(--text); }
.location-selected strong, .location-detail-name strong { color: var(--primary); }
.location-selected span, .location-detail-name span, .location-selected small { color: var(--text-sec); overflow-wrap: anywhere; }
.location-card { display: flex; flex-direction: column; gap: 5px; width: 100%; text-align: left; color: var(--text); }
.location-card strong { color: var(--primary); padding: 0 12px; }
.location-card > span { color: var(--text-sec); font-size: 0.78rem; padding: 0 12px 7px; overflow-wrap: anywhere; }
.location-map-preview { width: 100%; height: 180px; border-top: 1px solid var(--border); background: var(--bg); cursor: pointer; }
.modal-card--location-detail { width: min(94vw, 760px); max-width: 760px; }
.location-open-map { display: block; text-align: center; text-decoration: none; }
@media (max-width: 600px) {
  .location-search-row { flex-wrap: wrap; }
  .location-search-row .modal-input { flex-basis: calc(100% - 64px); }
  .location-gps-btn { width: 100%; }
  .location-map, .location-detail-map { height: 260px; }
}
/* Etkinlik oluşturma ve akış kartı */
.modal-card--event { width: min(94vw, 820px); max-width: 820px; }
.modal-card--event .modal-body { max-height: 82vh; overflow-y: auto; scrollbar-color: var(--primary) transparent; }
.event-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; }
.event-editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.event-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.event-field > span, .event-mode legend { font-size: 0.75rem; font-weight: 700; color: var(--text-sec); }
.event-field .modal-input, .event-field .modal-textarea, .event-field .modal-select { margin: 0; }
.event-field--full { grid-column: 1 / -1; }
.event-mode { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.event-mode legend { padding: 0 5px; }
.event-mode label { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--text); }
.event-mode input { accent-color: var(--primary); }
.event-cover-column { width: 100%; min-width: 0; }
.event-cover-picker { display: flex; width: 100%; aspect-ratio: 16 / 9; align-items: center; justify-content: center; border: 2px dashed var(--border); border-radius: var(--r-md); background: var(--bg); overflow: hidden; cursor: pointer; }
.event-cover-picker:hover { border-color: var(--primary); background: var(--primary-light); }
.event-cover-placeholder { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 2rem; text-align: center; }
.event-cover-placeholder strong { color: var(--primary); font-size: 0.95rem; }
.event-cover-placeholder small { font-size: 0.75rem; }
.event-cover-picker img { width: 100%; height: 100%; object-fit: cover; background: var(--card); display: block; }
.event-cover-picker img[hidden] { display: none; }
.event-publish { grid-column: 1 / -1; background: var(--primary); }
.event-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: stretch; padding: 14px; background: var(--primary-light); border-left: 4px solid var(--primary); border-radius: var(--r-md); }
.event-card-info { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.event-card-info:last-child { grid-column: 1 / -1; }
.event-card-summary { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; width: 100%; min-width: 0; }
.event-card-summary h3 { margin: 0; font-size: 0.9rem; font-weight: 700; white-space: nowrap; }
.event-card-summary p { margin: 0; font-size: 0.75rem; white-space: nowrap; }
.event-card h3 { color: var(--primary); font-size: 1.05rem; line-height: 1.3; overflow-wrap: anywhere; }
.event-card p { color: var(--text-sec); font-size: 0.8rem; overflow-wrap: anywhere; }
.event-card-desc { margin-top: 4px; color: var(--text) !important; line-height: 1.5; }
.event-card-type, .event-card-status { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; }
.event-card-type { margin-top: auto; background: var(--primary); color: #fff; }
.event-card-status { background: var(--card); color: var(--primary); }
.event-card-cover { width: 100%; min-width: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--card); }
.event-card-cover img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
@media (max-width: 700px) {
  .event-editor { grid-template-columns: 1fr; }
  .event-cover-column { grid-row: auto; }
  .event-cover-picker { min-height: 0; max-height: none; }
  .event-editor-fields { grid-template-columns: 1fr; }
  .event-field--full, .event-mode { grid-column: auto; }
  .event-publish { grid-column: auto; }
  .event-card { grid-template-columns: 1fr; }
  .event-card-cover { grid-row: auto; }
  .event-card-cover img { min-height: 0; max-height: none; }
}
/* Firebase Profil V1 */
.auth-profile-btn,
.auth-logout-btn { width: 100%; padding: 8px; border-radius: 6px; color: var(--text); text-align: left; }
.auth-profile-btn:hover,
.auth-logout-btn:hover { background: var(--primary-light); color: var(--primary); }
.modal-card.modal-card--profile { width: min(94vw, 1160px); max-width: 1160px; }
.modal-card--profile .modal-body { padding: 0; }
.profile-view { width: 100%; min-width: 0; color: var(--text); }
.profile-cover { position: relative; width: 100%; height: 330px; margin: 0; padding: 0; overflow: hidden; background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.profile-cover-backdrop { position: absolute; inset: -20px; z-index: 0; background-position: center; background-size: cover; filter: blur(18px); opacity: 0.72; transform: scale(1.08); }
.profile-cover-backdrop[hidden] { display: none; }
.profile-cover-image { position: relative; z-index: 1; display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; object-fit: contain; transform-origin: center; will-change: transform; user-select: none; }
.profile-cover-image[hidden] { display: none; }
.profile-cover.is-editing { cursor: grab; touch-action: none; }
.profile-cover.is-dragging { cursor: grabbing; }
.profile-cover-editor-hint { position: absolute; top: 14px; left: 50%; z-index: 3; transform: translateX(-50%); padding: 6px 10px; border-radius: 16px; background: rgba(28,30,33,0.78); color: #fff; font-size: 0.72rem; font-weight: 700; pointer-events: none; }
.profile-cover-editor-hint[hidden] { display: none; }
.profile-cover-actions { position: absolute; right: 16px; bottom: 14px; z-index: 3; display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.profile-cover-actions[hidden] { display: none; }
.profile-cover-action-btn { padding: 8px 11px; border: 1px solid rgba(255,255,255,0.72); border-radius: 7px; background: rgba(28,30,33,0.78); color: #fff; font-size: 0.75rem; font-weight: 700; line-height: 1.2; backdrop-filter: blur(4px); }
.profile-cover-action-btn:hover { background: rgba(28,30,33,0.92); }
.profile-cover-action-btn--save { background: var(--primary); }
.profile-cover-action-btn--remove { background: rgba(185,28,28,0.84); }
.profile-cover-action-btn[hidden] { display: none; }
.profile-cover-action-btn:disabled { opacity: 0.58; cursor: wait; }
.profile-cover-editor-panel { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 16px; border-bottom: 1px solid var(--border-soft); background: var(--card); }
.profile-cover-editor-panel[hidden] { display: none; }
.profile-cover-zoom-row { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.profile-cover-zoom-row input[type="range"] { width: min(360px, 100%); accent-color: var(--primary); }
.profile-cover-zoom-row button, .profile-cover-editor-buttons button { min-width: 34px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-size: 0.74rem; font-weight: 700; }
.profile-cover-zoom-row button:hover, .profile-cover-editor-buttons button:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.profile-cover-editor-buttons { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
#profile-cover-editor-save { border-color: var(--primary); background: var(--primary); color: #fff; }
#profile-cover-editor-save:disabled { opacity: 0.58; cursor: wait; }
.profile-view.is-cover-editing .profile-main { margin-top: 0; }
.profile-main { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 14px; padding: 0 22px 14px; margin-top: -42px; }
.profile-avatar-wrap { position: relative; z-index: 2; width: 88px; height: 88px; flex: 0 0 88px; }
.profile-avatar { width: 100%; height: 100%; flex: 0 0 auto; overflow: hidden; border: 4px solid var(--card); border-radius: 50%; background: var(--bg); }
.profile-avatar-image { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: center; }
.profile-avatar-control { position: absolute; z-index: 3; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 2px solid var(--card); border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.82rem; font-weight: 800; line-height: 1; box-shadow: 0 2px 7px rgba(0,0,0,0.24); }
.profile-avatar-change { right: -3px; bottom: -3px; }
.profile-avatar-remove { top: -3px; right: -3px; background: #b91c1c; font-size: 1rem; }
.profile-avatar-control:hover { filter: brightness(0.94); }
.profile-avatar-control:disabled { opacity: 0.58; cursor: wait; }
.profile-identity { min-width: 0; padding-top: 48px; }
.profile-identity h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 1.25rem; line-height: 1.3; overflow-wrap: anywhere; }
.profile-identity h2 > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-username { margin-top: 3px; color: var(--text-muted); font-size: 0.82rem; }
.profile-edit-btn { margin-left: auto; margin-bottom: 5px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 18px; color: var(--text); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.profile-edit-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.profile-owner-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; margin-bottom: 5px; }
.profile-owner-actions .profile-edit-btn { margin: 0; }
.profile-add-post-btn, .profile-empty-add-btn { padding: 8px 13px; border: 1px solid var(--primary); border-radius: 18px; background: var(--primary); color: #fff; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.profile-add-post-btn:hover, .profile-empty-add-btn:hover { filter: brightness(0.94); }
.profile-composer-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px 20px 22px; }
.profile-composer-option { padding: 12px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 0.8rem; font-weight: 700; text-align: left; }
.profile-composer-option:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.profile-empty-state { display: grid; justify-items: center; gap: 10px; }
.profile-empty-state p { margin: 0; }
.profile-details { display: grid; gap: 7px; padding: 0 22px 16px; font-size: 0.82rem; }
.profile-bio { margin: 0 0 3px; line-height: 1.55; overflow-wrap: anywhere; }
.profile-detail-row { color: var(--text-sec); overflow-wrap: anywhere; }
.profile-detail-row a { color: var(--primary); text-decoration: none; }
.profile-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 13px 22px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.profile-counts div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.profile-counts strong { font-size: 1rem; }
.profile-counts span { color: var(--text-muted); font-size: 0.72rem; }
.profile-posts-heading { padding: 16px 20px 0; color: var(--text); font-size: 0.9rem; font-weight: 800; }
.profile-posts-content, .profile-loading { padding: 28px 20px; color: var(--text-muted); font-size: 0.82rem; text-align: center; }
.profile-posts-content.has-content { padding: 16px 20px 24px; color: var(--text); text-align: left; }
.profile-post-list { display: grid; gap: 12px; }
.profile-post-card { margin: 0; overflow: hidden; box-shadow: none; }
.profile-post-card .post-header { padding-top: 10px; }
.profile-edit-form { display: grid; gap: 11px; padding: 18px 20px; }
.profile-cover-editor { display: grid; gap: 8px; }
.profile-cover-preview { height: 150px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-sm); background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.profile-cover-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-cover-select-btn { justify-self: start; padding: 8px 12px; border: 1px solid var(--border); border-radius: 7px; color: var(--text); font-size: 0.76rem; font-weight: 700; }
.profile-cover-select-btn:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-light); }
.profile-edit-form label { display: grid; gap: 5px; }
.profile-edit-form label > span { color: var(--text-sec); font-size: 0.74rem; font-weight: 700; }
.profile-edit-form .modal-input, .profile-edit-form .modal-textarea { margin: 0; }
.profile-username-note { color: var(--text-muted); font-size: 0.68rem; line-height: 1.4; }
@media (max-width: 900px) {
  .modal-card.modal-card--profile { width: min(96vw, 900px); }
  .profile-cover { height: 240px; }
}
@media (max-width: 600px) {
  .post-card[data-post-type="photo"] .post-media--portrait,
  .post-card[data-post-type="photo"] .post-photo--portrait { max-height: min(680px, 75vh); }
  .modal-card.modal-card--profile { width: 100%; max-width: 100%; }
  .profile-cover { height: 160px; }
  .profile-cover-actions { right: 8px; bottom: 8px; left: 8px; gap: 5px; }
  .profile-cover-action-btn { flex: 1 1 auto; padding: 7px 8px; font-size: 0.68rem; }
  .profile-cover-editor-hint { top: 8px; font-size: 0.66rem; }
  .profile-cover-editor-panel { align-items: stretch; flex-direction: column; gap: 8px; padding: 9px 10px; }
  .profile-cover-editor-buttons { width: 100%; }
  .profile-cover-editor-buttons button { flex: 1; }
  .profile-main { align-items: center; flex-wrap: wrap; padding: 0 14px 12px; margin-top: -34px; }
  .profile-avatar-wrap { width: 72px; height: 72px; flex-basis: 72px; }
  .profile-avatar-control { width: 27px; height: 27px; font-size: 0.72rem; }
  .profile-identity { flex: 1; padding-top: 38px; }
  .profile-edit-btn { width: 100%; margin: 0; }
  .profile-owner-actions { width: 100%; margin: 0; }
  .profile-owner-actions .profile-edit-btn, .profile-owner-actions .profile-add-post-btn { flex: 1; width: auto; }
  .profile-composer-picker { grid-template-columns: 1fr; padding: 14px; }
  .profile-details { padding: 0 14px 14px; }
  .profile-counts { padding: 12px 14px; }
  .profile-posts-content.has-content { padding: 12px 10px 18px; }
}
/* Firebase Yönetim Paneli V1 */
.auth-admin-panel-btn { color: var(--primary); font-weight: 800; }
.profile-admin-panel-btn { border-color: var(--primary); color: var(--primary); }
.modal-card.modal-card--admin-panel { width: min(96vw, 1180px); max-width: 1180px; max-height: min(92vh, 920px); }
.modal-card--admin-panel .modal-body { padding: 0; overflow-y: auto; }
.admin-panel { display: grid; gap: 16px; padding: 18px; color: var(--text); }
.admin-authority-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); border-radius: var(--r-md); background: var(--primary-light); }
.admin-authority-card > div { display: grid; gap: 3px; min-width: 0; }
.admin-authority-card strong { color: var(--primary); font-size: 1rem; }
.admin-authority-card small { color: var(--text-muted); overflow-wrap: anywhere; }
.admin-authority-shield { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1.2rem; }
.admin-section-kicker { color: var(--primary); font-size: 0.66rem; font-weight: 900; letter-spacing: 0.1em; }
.admin-panel-loading, .admin-panel-error, .admin-panel-empty { padding: 30px 18px; color: var(--text-muted); text-align: center; }
.admin-panel-error { border: 1px solid #ef4444; border-radius: var(--r-sm); color: #b91c1c; background: rgba(239,68,68,0.08); }
.admin-panel-section { display: grid; gap: 13px; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card); }
.admin-panel-section-title { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.admin-panel-section-title h4 { margin: 3px 0 0; font-size: 1rem; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.admin-stats-grid > div { display: grid; gap: 4px; min-width: 0; padding: 14px 10px; border: 1px solid var(--border-soft); border-radius: var(--r-sm); background: var(--bg); text-align: center; }
.admin-stats-grid strong { color: var(--primary); font-size: 1.25rem; }
.admin-stats-grid span { color: var(--text-muted); font-size: 0.68rem; line-height: 1.3; }
.admin-user-toolbar { display: grid; gap: 9px; }
.admin-user-search { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 0.8rem; }
.admin-user-search:focus { border-color: var(--primary); outline: 2px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.admin-user-filter-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.admin-user-filter { min-height: 30px; padding: 5px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text-sec); font-size: 0.68rem; font-weight: 750; }
.admin-user-filter:hover, .admin-user-filter[aria-pressed="true"] { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.admin-user-results-meta { color: var(--text-muted); font-size: 0.68rem; }
.admin-user-list { display: grid; gap: 7px; }
.admin-user-row { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, auto) auto; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: var(--r-sm); background: var(--bg); }
.admin-user-identity { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 0; color: var(--text); text-align: left; }
.admin-user-identity:hover strong { color: var(--primary); }
.admin-user-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--card); }
.admin-user-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-user-copy { display: grid; gap: 1px; min-width: 0; }
.admin-user-copy strong, .admin-user-copy span, .admin-user-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-copy strong { font-size: 0.78rem; }
.admin-user-name, .admin-user-detail-name { display: flex; align-items: center; gap: 4px; min-width: 0; }
.admin-user-name > span, .admin-user-detail-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-copy span { color: var(--text-sec); font-size: 0.69rem; }
.admin-user-copy small { color: var(--text-muted); font-size: 0.63rem; }
.admin-user-meta { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex-wrap: wrap; min-width: 0; }
.admin-status-badge { padding: 3px 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-sec); background: var(--card); font-size: 0.61rem; font-weight: 800; white-space: nowrap; }
.admin-status-badge.is-premium { border-color: #d97706; color: #b45309; background: rgba(245,158,11,0.12); }
.admin-status-badge.is-verified { display: inline-flex; align-items: center; gap: 3px; border-color: #db2777; color: #be185d; background: rgba(236,72,153,0.12); }
.admin-status-badge.is-restricted { border-color: #d97706; color: #b45309; background: rgba(245,158,11,0.12); }
.admin-status-badge.is-suspended { border-color: #dc2626; color: #b91c1c; background: rgba(239,68,68,0.12); }
.admin-user-date { width: 100%; color: var(--text-muted); font-size: 0.61rem; text-align: right; }
.admin-manage-user-btn, .admin-page-btn, .admin-detail-secondary, .admin-detail-save { min-height: 32px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--text); font-size: 0.68rem; font-weight: 800; }
.admin-manage-user-btn:hover, .admin-page-btn:hover, .admin-detail-secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.admin-manage-user-btn { color: var(--primary); }
.admin-user-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; padding-top: 3px; }
.admin-user-pagination[hidden] { display: none; }
.admin-page-status { min-width: 72px; color: var(--text-muted); font-size: 0.68rem; text-align: center; }
.admin-page-btn:disabled, .admin-detail-save:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-user-detail { display: grid; gap: 14px; color: var(--text); }
.admin-user-detail-header { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--bg); }
.admin-user-detail-avatar { width: 54px; height: 54px; flex-basis: 54px; }
.admin-user-detail-header > div { display: grid; gap: 2px; min-width: 0; }
.admin-user-detail-header h4 { margin: 0; font-size: 1rem; }
.admin-user-detail-header span { color: var(--text-sec); font-size: 0.75rem; }
.admin-user-detail-header small { color: var(--text-muted); overflow-wrap: anywhere; }
.admin-user-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-user-detail-grid > div { display: grid; gap: 4px; min-width: 0; padding: 10px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--bg); }
.admin-user-detail-grid span, .admin-user-detail-controls label > span { color: var(--text-muted); font-size: 0.64rem; font-weight: 800; }
.admin-user-detail-grid strong { overflow-wrap: anywhere; font-size: 0.74rem; }
.admin-user-detail-uid { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-user-detail-controls { display: grid; grid-template-columns: minmax(180px, 1fr) auto; align-items: end; gap: 10px; padding: 11px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.admin-user-detail-controls > label { display: grid; gap: 5px; }
.admin-role-select { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; background: var(--card); color: var(--text); font-size: 0.72rem; }
.admin-detail-check { display: flex !important; align-items: center; gap: 7px !important; min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 7px; }
.admin-detail-check input { accent-color: var(--primary); }
.admin-user-detail-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.admin-detail-save { border-color: var(--primary); background: var(--primary); color: #fff; }
.admin-detail-remove { border-color: rgba(220, 38, 38, 0.45); color: #dc2626; }
.admin-detail-remove:hover { border-color: #dc2626; color: #fff; background: #dc2626; }
@media (max-width: 1000px) {
  .admin-stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-user-row { grid-template-columns: minmax(220px, 1fr) auto; }
  .admin-user-meta { justify-content: flex-start; }
  .admin-manage-user-btn { grid-column: 2; grid-row: 1; }
}
@media (max-width: 650px) {
  .modal-card.modal-card--admin-panel { width: 100%; max-width: 100%; max-height: 96vh; }
  .admin-panel { gap: 12px; padding: 10px; }
  .admin-panel-section { padding: 11px; }
  .admin-panel-section-title { align-items: stretch; flex-direction: column; }
  .admin-user-search { width: 100%; }
  .admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .admin-user-row { grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
  .admin-user-meta { grid-column: 1 / -1; justify-content: flex-start; }
  .admin-user-date { width: auto; text-align: left; }
  .admin-manage-user-btn { grid-column: 2; grid-row: 1; }
  .admin-user-detail-grid { grid-template-columns: 1fr 1fr; }
  .admin-user-detail-controls { grid-template-columns: 1fr; }
  .admin-user-detail-actions > button { flex: 1; }
  .profile-owner-actions { flex-wrap: wrap; }
  .profile-owner-actions .profile-admin-panel-btn { flex-basis: 100%; }
}