/* =========================
   SCRY - style.css (clean)
   Uyum: templates/base.html (#stage/#curtain/#spot/#mask)
   Bozmadan: messages, profile, follow, like, delete, notifications, feed, smile/cry
========================= */

/* ---- RESET / BASE ---- */
* { box-sizing: border-box; }

:root {
  /* Design tokens — tema tutarlılığı ve kontrast */
  --bg: #000;
  --text: #fff;
  --muted: rgba(255,255,255,.68);
  --link: #9aa7ff;
  --surface: rgba(0,0,0,.75);
  --panel: #0b0b0b;
  --card: #111;
  --border: #222;
  --border-strong: #333;
  --danger: #ff6b6b;
  --focus: rgba(154, 167, 255, 0.75);
  --radius: 10px;
  --radius-sm: 8px;
  --shadow-soft: 0 0 40px rgba(255,255,255,.05);
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Klavye navigasyonu */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Linkler */
a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--text); }
a:focus-visible { text-decoration: underline; }

::selection {
  background: rgba(154, 167, 255, 0.25);
}

/* Form elemanları */
input, textarea {
  background: var(--card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px;
  border-radius: 6px;
  outline: none;
  width: 100%;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.45);
}

input:focus,
textarea:focus {
  border-color: rgba(154, 167, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(154, 167, 255, 0.12);
}

textarea { resize: vertical; }

button {
  background: rgba(255,255,255,.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.16);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}

button:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); }
button:active { transform: scale(0.99); }

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 18px 0;
  opacity: .85;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

/* ---- STAGE LAYOUT (base.html) ---- */
#stage {
  min-height: 100vh;
  position: relative;
  background: var(--bg);
}

/* Perde */
#curtain {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 160px;
  background: rgba(0,0,0,.85);
  z-index: 5;
}

/* İçerik alanı */
#spot {
  min-height: calc(100vh - 160px);
  display: flex;
  justify-content: center;
  padding: 60px 16px 30px;
}

#mask {
  width: 100%;
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}

/* ---- HEADER / NAV ---- */
/* base.html header (inline style kaldırıldı) */
.site-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-strong);
  z-index: 10;
  position: relative;
  background: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.55));
}

header h1 { margin: 0; }

/* Logo / Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}

.nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.nav a {
  color: rgba(255,255,255,.72);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 4px;
}

.nav a:hover { color: #fff; }

.nav a.active {
  color: var(--text);
  font-weight: bold;
  border-bottom: 2px solid #fff;
}



/* Navbar layout helpers (logout sağda + kullanıcı arama) */
.nav-left,
.nav-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.nav-right {
  margin-left: auto;
}

.nav-logout {
  color: #ff6b6b;
}

.nav-user-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-user-search input {
  width: 220px;
  max-width: 60vw;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
}

.nav-user-search input::placeholder {
  color: rgba(255,255,255,.55);
}

.nav-user-search input:focus {
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

.nav-user-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 50;
  display: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.nav-user-search-results.is-open {
  display: block;
}

.nav-user-search-results a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: rgba(255,255,255,.86);
}

.nav-user-search-results a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}

.nav-user-search-results .hint {
  padding: 10px 12px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

@media (max-width: 720px) {
  .nav-right { width: 100%; justify-content: flex-start; }
  .nav-user-search { width: 100%; }
  .nav-user-search input { width: 100%; max-width: 100%; }
}

/* Badge (messages / notifications) */
.badge {
  background: #e63946;
  color: #fff;
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 12px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---- GENERIC PANELS (Smile/Cry sayfaları .stage/.panel kullanıyor) ---- */
.stage {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
}

.panel {
  width: 100%;
  max-width: 700px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.panel-actions {
  display: flex;
  justify-content: flex-end;
  margin: 6px 0 14px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 10px;
  color: #fff;
  background: rgba(255,255,255,.04);
}

.back-home:hover {
  background: rgba(255,255,255,.08);
}

/* ---- POSTS (genel) ---- */
.post-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

.post-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}

/* ---- COMMENTS ---- */
.comments {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.comments > summary {
  cursor: pointer;
  color: rgba(255,255,255,.78);
  font-size: 13px;
  user-select: none;
  list-style: none;
}

/* Chromium marker */
.comments > summary::-webkit-details-marker { display: none; }

.comments-summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 8px;
}

.comments[open] .comments-summary {
  background: rgba(255,255,255,.05);
}

.comment-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.comment-item {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  padding: 10px;
}

.comment-main {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}

.comment-author a {
  color: rgba(154, 167, 255, 0.95);
  font-weight: 600;
}

.comment-text {
  color: rgba(255,255,255,.92);
  word-break: break-word;
}

.comment-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.comment-delete-form { margin: 0; }

.comment-delete-btn {
  background: transparent;
  border: 1px solid rgba(255, 107, 107, .35);
  color: rgba(255, 107, 107, .95);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.comment-delete-btn:hover {
  background: rgba(255, 107, 107, .10);
  border-color: rgba(255, 107, 107, .55);
}

.comment-empty {
  opacity: 0.75;
  font-size: 13px;
  padding: 8px 2px;
}

.comment-form {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-form input {
  flex: 1;
  min-width: 0;
}

.comment-form button {
  white-space: nowrap;
}

.post-item p { margin: 0 0 8px; }

.post-time,
.post-meta small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Post aksiyon satırı (like / paylaş / sil) */
.post-actions {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.post-actions__left,
.post-actions__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-actions__left {
  justify-content: flex-start;
}

.post-actions__right {
  justify-content: flex-end;
  margin-left: auto;
}

/* Like butonu & sayaç */
.like-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 34px;
}

.like-btn:hover { background: rgba(255,255,255,.06); }

[id^="like-count-"] {
  font-size: 13px;
  color: #ddd;
  opacity: .9;
}

.like-count {
  margin-left: 6px;
}

/* Delete butonu */
.delete-post-btn {
  background: transparent;
  border: 1px solid rgba(255, 77, 77, .28);
  color: #ff6b6b;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  height: 34px;
}

.delete-post-btn:hover {
  background: rgba(255, 77, 77, .10);
  border-color: rgba(255, 77, 77, .45);
}

/* Reactions alanı (butonlar basit) */
.reactions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.reaction-counts {
  flex-basis: 100%;
}

.reactions .reaction-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: 34px;
}

.reactions .reaction-btn:hover {
  background: rgba(255,255,255,.06);
}

/* ---- EMOTION FOLLOW (profil) ---- */
.emotion-follow-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.emotion-btn {
  border: 1px solid rgba(255,255,255,.18);
  background: var(--card);
  padding: 10px 12px;
  border-radius: var(--radius);
}

.emotion-btn.active {
  border-color: rgba(154, 167, 255, 0.55);
  background: rgba(255,255,255,.06);
}

/* ---- PROFILE ---- */
.profile-page {
  max-width: 700px;
  margin: 0 auto;
}

.post-stats {
  display: flex;
  gap: 14px;
  margin: 14px 0 6px;
  color: #ddd;
  opacity: .9;
}

.post-filters {
  margin: 14px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 12px;
  border: 1px solid #444;
  background: #111;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn.active {
  background: #222;
  border-color: #666;
}

/* Beğendiklerim alanı */
#liked-posts .post-item {
  background: #0f0f0f;
}

/* ✅ IMPORTANT:
   Heatmap stilleri artık sadece heatmap.css dosyasında.
   style.css içinden heatmap tanımları kaldırıldı ki kayma/çakışma olmasın.
*/

/* ---- TOAST (toast.js) ---- */
.emotion-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  transition: opacity .25s ease;
  z-index: 9999;
  border: 1px solid #333;
}

.emotion-toast.show { opacity: 1; }

/* ---- MESSAGES (inbox) ---- */
.messages-page {
  max-width: 700px;
  margin: 0 auto;
}

#search-results {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

#search-results li {
  padding: 8px 10px;
  border: 1px solid #222;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #111;
}

.conversation-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.conversation-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  background: #111;
  border: 1px solid #222;
  transition: background .2s ease;
}

.conversation-item:hover { background: #1a1a1a; }

.conversation-item.unread {
  background: #151515;
  border-color: #2a2a2a;
  font-weight: 600;
}

.conversation-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.username { font-size: 14px; }

.last-message {
  font-size: 13px;
  color: #aaa;
  margin: 0;
}

.conversation-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.message-time {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

/* ---- CHAT PAGE ---- */
.chat-page {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 80vh;
}

.chat-header {
  padding: 12px;
  border-bottom: 1px solid #222;
}

.chat-messages {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-row { display: flex; }
.message-row.mine { justify-content: flex-end; }
.message-row.theirs { justify-content: flex-start; }

.message-bubble {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
}

.message-row.mine .message-bubble {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

.message-meta {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  text-align: right;
}

.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #222;
  gap: 8px;
}

.chat-input input {
  flex: 1;
  border-radius: 10px;
  border: 1px solid #333;
}

.chat-input button {
  border-radius: 10px;
  border: 1px solid #444;
}

/* ---- EMPTY STATE ---- */
.empty-state {
  color: #777;
  text-align: center;
  margin-top: 20px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 520px) {
  #mask { padding: 18px; }
  .message-bubble { max-width: 85%; }
  .nav { gap: 10px; }
}

/* Erişilebilirlik: hareket hassasiyeti */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .nav a.active::after {
    display: none !important;
  }
}

/* Show/Hide helper (tab geçişleri için) */
.hidden {
  display: none !important;
}


/* ---- HOME (curtain bg + hero layout) ---- */
body.home-page #stage {
  background-image:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    url("../images/curtain.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-hero {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.home-hero__text {
  flex: 1 1 320px;
  min-width: 240px;
}

.home-hero__art {
  flex: 0 1 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-mask {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  /* Görsel PNG şeffaf; kenarlarda hafif yumuşatma */
  filter: drop-shadow(0 10px 26px rgba(0,0,0,.55));
}

/* ---- HOME: weekly top posts ---- */
.weekly-top {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.weekly-top__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.weekly-top__head h3 {
  margin: 0;
  font-size: 16px;
}

.weekly-top__range {
  font-size: 12px;
  color: var(--muted);
}

.weekly-top__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.weekly-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

.weekly-card:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

.weekly-card--empty {
  opacity: 0.9;
}

.weekly-card__emoji {
  font-size: 28px;
  line-height: 1;
  margin-top: 2px;
}

.weekly-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.weekly-card__label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  opacity: 0.92;
}

.weekly-card__text {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
}

.weekly-card__meta {
  font-size: 12px;
  color: var(--muted);
}

/* ---- NAV SPOTLIGHT (active link üstünde ışık) ---- */
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -98px;
  width: 130px;
  height: 130px;
  background: url("../images/spotlight.png") no-repeat center / contain;
  pointer-events: none;
  /* Daha sakin/UX dostu ışık */
  opacity: 0.45;
  filter: blur(0.6px) brightness(0.9);
}


/* HOME responsive */
@media (max-width: 640px) {
  .home-hero { justify-content: center; text-align: center; }
  .home-hero__text { text-align: center; }
  .weekly-top__grid { grid-template-columns: 1fr; }
  .nav a.active::after {
    top: -88px;
    width: 110px;
    height: 110px;
    opacity: 0.4;
  }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #222;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #333;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  color: #fff;
  text-decoration: none;
}

.page-btn:hover { background: rgba(255,255,255,.08); }

.page-info {
  font-size: 13px;
  color: #aaa;
  opacity: .95;
}


/* ---- FLASH MESSAGES ---- */
.flash-area {
  margin: 12px 0 18px;
}

.flash {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #333;
  background: rgba(255,255,255,0.04);
  margin-bottom: 8px;
  font-size: 14px;
}

.flash.success { border-color: rgba(76, 175, 80, 0.6); }
.flash.danger { border-color: rgba(244, 67, 54, 0.6); }
.flash.info { border-color: rgba(33, 150, 243, 0.6); }
.flash.warning { border-color: rgba(255, 193, 7, 0.6); }


/* ---- ADMIN PANEL ---- */
.admin-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid #222;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-nav a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #2b2b2b;
  background: rgba(255,255,255,.04);
  color: #ddd;
  font-size: 13px;
}

.admin-nav a:hover { background: rgba(255,255,255,.08); }
.admin-nav a.active { border-color: rgba(154, 167, 255, 0.6); }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-card {
  border: 1px solid #222;
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  padding: 12px;
}

.admin-card-title {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 6px;
}

.admin-card-value {
  font-size: 22px;
  font-weight: 700;
}

.admin-card-meta {
  margin-top: 4px;
  font-size: 12px;
  opacity: .8;
}

.admin-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.admin-panel {
  border: 1px solid #222;
  background: rgba(255,255,255,.02);
  border-radius: 14px;
  padding: 12px;
}

.admin-table-wrap { overflow: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #222;
  padding: 10px 8px;
  font-size: 13px;
  vertical-align: top;
}

.admin-table th {
  text-align: left;
  font-weight: 700;
  color: #ddd;
  background: rgba(255,255,255,.02);
}

.admin-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-search input,
.admin-search select {
  background: #0c0c0c;
  color: #fff;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 10px 12px;
}

.admin-search button,
.admin-form button,
.danger-btn {
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid #333;
  background: rgba(255,255,255,.04);
  color: #fff;
}

.admin-search button:hover,
.admin-form button:hover { background: rgba(255,255,255,.08); }

.danger-btn {
  border-color: rgba(244, 67, 54, 0.55);
  color: #ffb3b3;
}

.danger-btn:hover { background: rgba(244, 67, 54, 0.14); }

.admin-form { display: flex; flex-direction: column; gap: 10px; }
.admin-form-row { display: flex; flex-direction: column; gap: 6px; }
.admin-form-row label { font-size: 12px; opacity: .85; }
.admin-form input,
.admin-form select {
  background: #0c0c0c;
  color: #fff;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 10px 12px;
}

.admin-checks { gap: 8px; }
.admin-checks label { display: flex; gap: 8px; align-items: center; }
.admin-checks input { transform: translateY(1px); }

.admin-breadcrumb a { color: #ddd; text-decoration: none; }
.admin-breadcrumb a:hover { text-decoration: underline; }

.admin-user-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid #222;
  border-radius: 14px;
  background: rgba(255,255,255,.02);
}

.admin-user-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #333;
  font-size: 12px;
  opacity: .95;
}

.pill.success { border-color: rgba(76, 175, 80, 0.55); }
.pill.danger { border-color: rgba(244, 67, 54, 0.55); }
.pill.info { border-color: rgba(33, 150, 243, 0.55); }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-two { grid-template-columns: 1fr; }
}



/* ---- SHARE ---- */
.share-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.18);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  opacity: .95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  height: 34px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .share-btn .share-label { display: none; }
}

.share-btn:hover {
  background: rgba(255,255,255,.06);
}

.share-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9999;
  border: 1px solid rgba(255,255,255,.12);
}

.share-toast.show { opacity: 1; }


/* ---- NOTIFICATIONS ---- */
.notifications {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
}

.notification-item:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.16);
}

.notification-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.notification-emoji {
  font-size: 18px;
  margin-top: 1px;
}

.notification-text {
  font-size: 14px;
  line-height: 1.3;
  color: rgba(255,255,255,.92);
  word-break: break-word;
}

.notification-text .muted { opacity: .75; }

.notification-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.notification-right .time {
  font-size: 12px;
  color: var(--muted);
}

.notification-right .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(154, 167, 255, 0.95);
  box-shadow: 0 0 0 3px rgba(154, 167, 255, 0.15);
}

/* ---- POST DETAIL (PERMALINK) ---- */
.post-detail {
  max-width: 860px;
  margin: 0 auto;
}

.post-detail .post-headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-detail .muted {
  color: var(--muted);
}
