/* Sesizari page */

.sesizari-layout {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .sesizari-layout { grid-template-columns: 1fr 420px; gap: var(--space-7); } }

.sesizare-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: var(--surface-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 640px) {
  .sesizare-card { grid-template-columns: 220px 1fr; }
}
.sesizare-card:hover,
.sesizare-card:focus-visible {
  border-color: var(--accent-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: none;
}
.sesizare-card__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-sunken);
  position: relative;
  overflow: hidden;
}
.sesizare-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--trans-slow);
}
.sesizare-card:hover .sesizare-card__media img { transform: scale(1.04); }
.sesizare-card__media-count {
  position: absolute;
  bottom: var(--space-2);
  right: var(--space-2);
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.sesizare-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.sesizare-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.sesizare-card__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.sesizare-card__cat {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  color: var(--text-secondary);
}
.sesizare-card__cat--salubritate    { background: #ECFDF5; color: #047857; }
.sesizare-card__cat--infrastructura { background: #FEF3C7; color: #92400E; }
.sesizare-card__cat--spatii-verzi   { background: #DCFCE7; color: #15803D; }
.sesizare-card__cat--utilitati      { background: #DBEAFE; color: #1D4ED8; }
.sesizare-card__cat--siguranta      { background: #FEE2E2; color: #B91C1C; }
.sesizare-card__cat--transport      { background: #E0E7FF; color: #4338CA; }
.sesizare-card__cat--constructii    { background: #F3E8FF; color: #6D28D9; }
.sesizare-card__cat--zgomot         { background: #FFE4E6; color: #BE123C; }
.sesizare-card__cat--animale        { background: #FEF9C3; color: #854D0E; }
.sesizare-card__cat--sugestie       { background: #CFFAFE; color: #0E7490; }
[data-theme='dark'] .sesizare-card__cat { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.sesizare-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin: 0;
  color: var(--text-primary);
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sesizare-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.sesizare-card__loc { color: var(--text-secondary); font-weight: var(--fw-medium); }
.sesizare-card__author { font-style: italic; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.status-badge--approved { background: #F0FDF4; color: #166534; }
.status-badge--pending  { background: #FFFBEB; color: #92400E; }
.status-badge--resolved { background: var(--accent-50); color: var(--accent-700); }
[data-theme='dark'] .status-badge--approved { background: rgba(22, 163, 74, 0.14); color: #4ADE80; }
[data-theme='dark'] .status-badge--pending  { background: rgba(217, 119, 6, 0.14); color: #FBBF24; }
[data-theme='dark'] .status-badge--resolved { background: rgba(220, 38, 38, 0.14); color: #F87171; }

.image-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  text-align: center;
  transition: border-color var(--trans-fast), background var(--trans-fast);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.image-dropzone:hover { border-color: var(--accent-500); background: var(--surface-hover); }
.image-dropzone.is-dragover { border-color: var(--accent-500); background: var(--accent-50); color: var(--accent-700); }
.image-dropzone input { display: none; }

.preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.preview-thumb {
  position: relative;
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-sunken);
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb__remove {
  position: absolute;
  top: 2px; right: 2px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}
