/* ================================================================
   DOR DE MARE — Comunitate Page v5.0
   Uses design-system.css tokens
   ================================================================ */

/* ── BLOG HEADER (înlocuiește hero-ul) ────────────────────── */
@keyframes bhFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

#postari {
  padding-top: 0;
}

.blog-header {
  padding: clamp(var(--sp-16), 10vw, 100px) 0 var(--sp-10);
  border-bottom: 1px solid var(--c-border-subtle);
  margin-bottom: var(--sp-8);
  animation: bhFadeIn 500ms ease-out both;
  text-align: center;
}
[data-theme="dark"] .blog-header {
  border-bottom-color: var(--c-border);
}

.blog-header-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
}
.bh-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  display: inline-block;
  flex-shrink: 0;
}

.blog-header-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-3);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.blog-header-sub {
  font-size: 1rem;
  color: var(--c-text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .blog-header {
    padding-top: clamp(var(--sp-10), 8vw, var(--sp-16));
    padding-bottom: var(--sp-8);
  }
}

/* ── SECTION GENERIC ──────────────────────────────────────── */
section {
  padding: clamp(var(--sp-10), 7vw, var(--sp-20)) clamp(var(--sp-4), 4vw, var(--sp-12));
  max-width: calc(var(--max-w) + 128px);
  margin: 0 auto;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-2);
}
.section-sub {
  color: var(--c-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 480px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

/* ── TAB BAR (underline editorial style) ─────────────────── */
.tab-bar {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--c-border-subtle);
  width: 100%;
}
[data-theme="dark"] .tab-bar { border-bottom-color: var(--c-border); }
.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease),
              border-color var(--duration-fast) var(--ease);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.tab-btn:hover {
  color: var(--c-text);
  background: transparent;
  border-bottom-color: var(--c-border);
}
.tab-btn.active {
  color: var(--c-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--c-primary);
  box-shadow: none;
  background: transparent;
}

/* ── POST GRID ────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  min-height: 200px;
}

/* Primul card — featured, full-width, orizontal */
.post-grid .post-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}
.post-grid .post-card:first-child .pc-img-wrap {
  width: 46%;
  flex-shrink: 0;
  aspect-ratio: auto;
  min-height: 280px;
}
.post-grid .post-card:first-child .pc-body {
  padding: var(--sp-8);
  justify-content: center;
}
.post-grid .post-card:first-child .pc-title {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.post-grid .post-card:first-child .pc-excerpt {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 0.9375rem;
}
.post-grid .post-card:first-child .pc-meta-row {
  font-size: 0.75rem;
  margin-bottom: var(--sp-2);
}

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid .post-card:first-child { grid-column: 1 / -1; flex-direction: row; }
  .post-grid .post-card:first-child .pc-img-wrap { width: 42%; min-height: 220px; }
  .post-grid .post-card:first-child .pc-body { padding: var(--sp-6); }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-grid .post-card:first-child { grid-column: 1; flex-direction: column; }
  .post-grid .post-card:first-child .pc-img-wrap { width: 100%; min-height: 0; aspect-ratio: 16/10; }
  .post-grid .post-card:first-child .pc-body { padding: var(--sp-4); justify-content: flex-start; }
  .post-grid .post-card:first-child .pc-title { font-size: 1.125rem; }
}

.posts-loading,
.posts-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-tertiary);
  font-size: 0.9375rem;
}

@keyframes pcFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.post-card {
  background: var(--c-surface);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--s-xs);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  cursor: pointer;
  border: 1px solid var(--c-border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: pcFadeIn 400ms ease-out both;
}
[data-theme="dark"] .post-card {
  border-color: var(--c-border);
  box-shadow: none;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--s-md);
  border-color: var(--c-border-strong);
}
[data-theme="dark"] .post-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pc-img-wrap {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--c-bg);
  flex-shrink: 0;
}
.pc-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
  display: block;
}
.post-card:hover .pc-img-wrap img { transform: scale(1.04); }

.pc-badge {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--r-xs);
  padding: 3px 8px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-text-secondary);
  text-transform: uppercase;
  box-shadow: none;
  backdrop-filter: none;
}
[data-theme="dark"] .pc-badge {
  background: rgba(22, 27, 34, 0.92);
  color: var(--c-text-secondary);
}
.pc-badge.event { color: var(--c-primary); }
.pc-badge.blog  { color: #7C3AED; }
[data-theme="dark"] .pc-badge.blog { color: #A78BFA; }

.pc-body {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pc-meta-row {
  font-size: 0.6875rem;
  color: var(--c-text-tertiary);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--duration-fast) var(--ease);
}
.post-card:hover .pc-title { color: var(--c-primary); }
.pc-price {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: var(--sp-2);
}
.pc-excerpt {
  font-size: 0.875rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: var(--sp-3);
}
.pc-read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-primary);
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--duration-fast) var(--ease);
}
.post-card:hover .pc-read-more { gap: 8px; }
.pc-del {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--c-error, #ef4444);
  color: #fff;
  border: none;
  border-radius: var(--r-xs);
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 20;
  cursor: pointer;
}

/* ── PAGINATION ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-10);
  flex-wrap: wrap;
}
.pag-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-3);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-pill);
  background: var(--c-surface);
  color: var(--c-text-secondary);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease);
}
.pag-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pag-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(58,141,255,.25);
}

/* ── SERVICES SECTION ─────────────────────────────────────── */
.services-section {
  padding: clamp(var(--sp-10), 7vw, var(--sp-20)) clamp(var(--sp-4), 4vw, var(--sp-12));
  max-width: calc(var(--max-w) + 128px);
  margin: 0 auto;
}
.blog-actions { display: flex; gap: 10px; }
.srv-cat { margin-bottom: var(--sp-8); }
.srv-cat:last-child { margin-bottom: 0; }
.srv-cat-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--c-border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}
.srv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 1024px) { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .srv-grid { grid-template-columns: 1fr; } }
.srv-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  box-shadow: var(--s-card);
  transition: all var(--duration) var(--ease);
  border: 1px solid var(--c-border-subtle);
  position: relative;
}
[data-theme="dark"] .srv-card { border-color: var(--c-border); }
.srv-card:hover { transform: translateY(-3px); box-shadow: var(--s-md); border-color: var(--c-primary); }
.srv-icon { font-size: 1.5rem; margin-bottom: var(--sp-3); }
.srv-name { font-weight: 600; font-size: 0.9375rem; color: var(--c-text); margin-bottom: 4px; }
.srv-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: var(--sp-2); }
.srv-tag { font-size: 0.7rem; background: var(--c-bg); border: 1px solid var(--c-border-subtle); border-radius: var(--r-pill); padding: 2px 8px; color: var(--c-text-secondary); }

/* ── MAP SECTION ──────────────────────────────────────────── */
.map-section {
  padding: clamp(var(--sp-10), 7vw, var(--sp-20)) clamp(var(--sp-4), 4vw, var(--sp-12));
  max-width: calc(var(--max-w) + 128px);
  margin: 0 auto;
}
.map-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--s-md);
  border: 1px solid var(--c-border);
  aspect-ratio: 16/7;
  background: var(--c-bg);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ── REVIEWS SECTION ──────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  box-shadow: var(--s-card);
  border: 1px solid var(--c-border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
[data-theme="dark"] .review-card { border-color: var(--c-border); }
.rv-stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.rv-text {
  font-size: 0.9rem;
  color: var(--c-text-secondary);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rv-author {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-text-tertiary);
  border-top: 1px solid var(--c-border-subtle);
  padding-top: var(--sp-3);
}

/* ── POST MODAL FULL-PAGE ─────────────────────────────────── */
@keyframes pmShellIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   POST MODAL — imagine sus, conținut jos, simplu și modern
   ══════════════════════════════════════════════════════════ */
@keyframes pmIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Overlay — scrollable backdrop */
.pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease-out;
}
.pm-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Sheet — full page */
.pm-sheet {
  min-height: 100dvh;
  width: 100%;
  background: var(--c-bg);
  animation: pmIn 280ms ease-out both;
  display: flex;
  flex-direction: column;
}

/* Hero imagine */
.pm-hero {
  width: 100%;
  height: clamp(280px, 50vw, 460px);
  background-size: cover;
  background-position: center;
  background-color: var(--c-surface);
  position: relative;
  flex-shrink: 0;
}
.pm-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.38) 0%,
    transparent 30%
  );
  pointer-events: none;
}
@media (min-width: 820px) {
  .pm-hero { height: clamp(320px, 46vh, 480px); }
}

/* Close button — fix, întotdeauna vizibil */
.pm-x {
  position: absolute; /* fallback */
  top: 14px; right: 14px;
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,.42);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pm-overlay.open .pm-x {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 9010;
}
.pm-x:hover { background: rgba(0,0,0,.72); transform: scale(1.08); }

/* Zona de conținut — sub imagine */
.pm-body-wrap {
  flex: 1;
  padding: 0;
  background: var(--c-bg);
}

.pm-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 36px clamp(18px, 5vw, 40px) 72px;
  font-family: -apple-system, 'SF Pro Text', var(--font), sans-serif;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .pm-hero { height: clamp(220px, 55vw, 300px); }
  .pm-inner { padding: 24px 18px 56px; }
}

/* Header bloc — centrat */
.pm-header-block {
  text-align: center;
  padding: 28px 0 28px;
  border-bottom: 1px solid var(--c-border-subtle);
  margin-bottom: 32px;
}

/* Tag */
.pm-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: 12px;
}

/* Titlu */
.pm-title {
  font-family: var(--font);
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* Meta */
.pm-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .8rem;
  font-weight: 400;
  color: var(--c-text-tertiary);
  gap: 0;
  margin-bottom: 0;
}
.pm-meta span { display: inline; }
.pm-meta span + span::before { content: '·'; margin: 0 8px; opacity: .35; }
.pm-meta .pm-meta-price { color: var(--c-primary); }

/* Descriere — text de articol curat */
.pm-desc {
  margin: 0 0 32px;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--c-text-secondary);
  line-height: 1.85;
  white-space: pre-wrap;
  background: none;
  border-radius: 0;
  padding: 0;
}
[data-theme="dark"] .pm-desc { background: none; }

/* Hashtag-uri */
.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -8px 0 24px;
}
.pm-hashtag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(58, 141, 255, .09);
  color: var(--c-primary, #3a8dff);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .01em;
  transition: background 150ms ease;
}
.pm-hashtag:hover { background: rgba(58, 141, 255, .16); }
[data-theme="dark"] .pm-hashtag { background: rgba(58,141,255,.14); }

/* Galerie */
.pm-gallery {
  margin-bottom: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 28px;
  border-top: 1px solid var(--c-border-subtle);
}
.pm-gallery:empty { display: none; }
.pm-gallery::before {
  content: 'Galerie foto';
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-tertiary);
  margin-bottom: 14px;
}
.pm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
@media (max-width: 360px) {
  .pm-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
.pm-gallery-grid img {
  width: 100%; aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: zoom-in;
  transition: opacity 140ms ease, transform 140ms ease;
}
.pm-gallery-grid img:hover { opacity: .88; transform: scale(1.02); }

/* ── LIGHTBOX ────────────────────────────────────────────── */
@keyframes lbIn { from{opacity:0} to{opacity:1} }

.lb-overlay {
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease-out;
}
.lb-overlay.open { opacity: 1; pointer-events: all; }

.lb-img {
  max-width: 92vw; max-height: 88dvh;
  object-fit: contain;
  border-radius: 4px;
  animation: lbIn 200ms ease-out both;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 140ms ease;
}
.lb-close:hover { background: rgba(255,255,255,.22); }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 140ms ease;
}
.lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-nav.prev { left: 16px; }
.lb-nav.next { right: 16px; }
.lb-nav[hidden] { display: none; }

.lb-counter {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: .75rem; font-weight: 400; color: rgba(255,255,255,.55);
  letter-spacing: .06em; font-family: -apple-system, var(--font), sans-serif;
}

/* ── Comentarii ───────────────────────────────────────────── */
.pm-comments-section {
  border-top: 1px solid var(--c-border-subtle);
  padding-top: 28px;
}
.pm-cmt-head {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 24px;
}
.pm-cmt-label {
  font-size: .75rem; font-weight: 400;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-text-tertiary);
}
.pm-cmt-count { font-size: .75rem; color: var(--c-primary); }

.cmt-loading, .cmt-empty {
  font-size: .875rem; font-weight: 300;
  color: var(--c-text-tertiary); padding: 4px 0 16px;
}
.cmt-item {
  display: flex; gap: 12px;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--c-border-subtle);
}
.cmt-item:last-child { border-bottom: none; margin-bottom: 0; }
.cmt-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-primary-ghost); color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 500; margin-top: 1px;
}
.cmt-content { flex: 1; min-width: 0; }
.cmt-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.cmt-name { font-size: .8125rem; font-weight: 500; color: var(--c-text); }
.cmt-date { font-size: .7rem; font-weight: 300; color: var(--c-text-tertiary); }
.cmt-text { font-size: .875rem; font-weight: 300; color: var(--c-text-secondary); line-height: 1.6; }

/* Comment form */
.pm-cform { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.pm-cinput {
  width: 100%; padding: 10px 13px; box-sizing: border-box;
  border: 1.5px solid var(--c-border); border-radius: 10px;
  background: var(--c-surface); color: var(--c-text);
  font-family: -apple-system, 'SF Pro Text', var(--font), sans-serif;
  font-size: .875rem; font-weight: 300; outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.pm-ctextarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.pm-cinput:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-ghost); }
.pm-cinput::placeholder { color: var(--c-text-tertiary); }
.pm-csend {
  align-self: flex-start; padding: 8px 20px; border-radius: 20px; border: none;
  background: var(--c-gradient); color: #fff;
  font-family: -apple-system, 'SF Pro Text', var(--font), sans-serif;
  font-size: .8125rem; font-weight: 400; cursor: pointer;
  transition: opacity 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 2px 8px rgba(58,141,255,.2);
}
.pm-csend:hover { opacity: .9; box-shadow: 0 4px 14px rgba(58,141,255,.3); }
.pm-csend:disabled { opacity: .5; cursor: not-allowed; }

/* ── ADMIN CREATE MODALS ──────────────────────────────────── */
.create-modal-ov {
  display: none;
  position: fixed; inset: 0; z-index: 9500;
  background: var(--c-overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  align-items: center; justify-content: center;
  padding: var(--sp-4);
}
.create-modal-ov.open { display: flex; }
.create-modal {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  width: 100%; max-width: 640px;
  max-height: 90vh; overflow-y: auto;
  padding: var(--sp-8);
  box-shadow: var(--s-lg);
  animation: modalSlideUp 220ms ease-out both;
  position: relative;
  border: 1px solid var(--c-border-subtle);
}
[data-theme="dark"] .create-modal { border-color: var(--c-border); }
.create-modal h3 {
  font-size: 1.2rem; font-weight: 600; color: var(--c-text);
  margin-bottom: var(--sp-2); letter-spacing: -0.01em;
}
@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.bm-close {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 10;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--c-surface); border: 1px solid var(--c-border-subtle);
  border-radius: 50%; cursor: pointer; color: var(--c-text-secondary);
  transition: all var(--duration-fast) var(--ease);
}
.bm-close:hover { background: var(--c-border-subtle); color: var(--c-text); }
.pf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.pf-field { display: flex; flex-direction: column; }
.pf-field.full { grid-column: 1 / -1; }
.pf-label {
  display: block;
  font-size: 0.72rem; font-weight: 600;
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-1);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.pf-input {
  width: 100%; height: 44px;
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font); font-size: 0.875rem;
  outline: none;
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
  box-sizing: border-box;
}
select.pf-input { padding: 0 var(--sp-3); }
.pf-input:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-ghost);
  background: var(--c-surface);
}
.pf-input::placeholder { color: var(--c-text-tertiary); }
.pf-textarea {
  width: 100%; min-height: 120px;
  padding: var(--sp-3) var(--sp-4);
  border: 1.5px solid var(--c-border);
  border-radius: var(--r);
  background: var(--c-bg); color: var(--c-text);
  font-family: var(--font); font-size: 0.875rem;
  outline: none; resize: vertical; line-height: 1.6;
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
  box-sizing: border-box;
}
.pf-textarea:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-ghost);
  background: var(--c-surface);
}
.pf-textarea::placeholder { color: var(--c-text-tertiary); }
.btn-post {
  background: var(--c-gradient); color: #fff;
  border: none; border-radius: var(--r-pill);
  padding: 12px 28px;
  font-family: var(--font); font-weight: 600; font-size: 0.9375rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 2px 8px rgba(58,141,255,.25);
}
.btn-post:hover { box-shadow: 0 4px 16px rgba(58,141,255,.4); transform: translateY(-1px); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #111827;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--sp-12) clamp(var(--sp-4), 4vw, var(--sp-12)) var(--sp-6);
}
[data-theme="dark"] footer {
  background: #0A0E14;
  border-top: 1px solid var(--c-border);
}
footer .footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}
@media (max-width: 900px) { footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer .footer-grid { grid-template-columns: 1fr; } }
footer .footer-logo {
  font-weight: 600; font-size: 1.25rem;
  letter-spacing: -0.03em; color: #FFFFFF; margin-bottom: var(--sp-3);
}
footer .footer-logo span { color: var(--c-accent); }
footer .footer-desc {
  font-size: 0.85rem; line-height: 1.7;
  color: rgba(255, 255, 255, 0.4); margin-bottom: var(--sp-5);
}
footer .social-row { display: flex; gap: var(--sp-2); }
footer .social-btn {
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  transition: all var(--duration-fast) var(--ease);
  text-decoration: none;
}
footer .social-btn:hover {
  background: var(--c-primary); border-color: var(--c-primary); color: #FFFFFF;
}
footer .footer-col h4 {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3); margin-bottom: var(--sp-4);
}
footer .footer-col a {
  display: block; font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45); padding: var(--sp-1) 0;
  transition: color var(--duration-fast) var(--ease); text-decoration: none;
}
footer .footer-col a:hover { color: #FFFFFF; }
footer .footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--sp-5);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.25);
  flex-wrap: wrap; gap: var(--sp-2);
}

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--c-text); color: var(--c-bg);
  padding: 12px 24px; border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 500;
  z-index: 99999; pointer-events: none;
  opacity: 0; transition: opacity 220ms ease, transform 220ms ease;
  white-space: nowrap; max-width: calc(100vw - 40px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #10b981; color: #fff; }
.toast.error   { background: #ef4444; color: #fff; }
.toast.info    { background: var(--c-primary); color: #fff; }

/* ══ MOBILE OPTIMIZATIONS ════════════════════════════════════ */

/* Fix: create-modal — bottom sheet pe mobile */
@media (max-width: 600px) {
  .create-modal-ov {
    align-items: flex-end;
    padding: 0;
  }
  .create-modal {
    width: 100vw;
    max-width: 100vw;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-height: 95dvh;
    padding: var(--sp-5) var(--sp-4);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}

/* Fix: lightbox modal pe mobile */
@media (max-width: 600px) {
  .lb-overlay {
    padding: 0;
  }
}

/* Fix: input font-size 16px (previne zoom iOS) */
@media (max-width: 600px) {
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Fix: post form full width + padding pe mobile */
@media (max-width: 600px) {
  .post-compose,
  .comment-form,
  .create-modal input,
  .create-modal textarea {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Fix: layout pe 380px */
@media (max-width: 380px) {
  .create-modal {
    padding: var(--sp-4) var(--sp-3);
  }
}

/* Fix: tab-bar — scroll orizontal pe mobile (previne wrap dezordonat) */
@media (max-width: 640px) {
  .tab-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex-shrink: 0;
  }
}

/* Fix: post-grid overflow pe 320px — asigură că nu depășește viewport */
@media (max-width: 360px) {
  .post-grid {
    gap: var(--sp-4);
  }
  .pc-body {
    padding: var(--sp-3);
  }
  .pc-title {
    font-size: 0.9375rem;
  }
}
