/* ── Violations Page ───────────────────────────────────────────────────────── */

/* Hero */
.violations-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 60%, #2c3e6b 100%);
  color: #fff;
  padding: 100px 0 64px;
  text-align: center;
}
.violations-hero .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.violations-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: #fff;
}
.violations-hero p {
  font-size: 1.05rem;
  color: #fff;
  opacity: 0.82;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Main cases section */
.violations-main {
  padding: 52px 0 80px;
  min-height: 50vh;
}

/* Top bar: heading + report button */
.violations-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.cases-heading {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.cases-sub {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.5;
  max-width: 420px;
}

/* Report button */
.report-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.report-btn:hover { background: #2c3e6b; transform: translateY(-1px); }
.report-btn:active { transform: none; }

/* Cases grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.cases-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 20px;
  color: #aaa;
  font-size: 0.95rem;
}
.cases-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
}

/* Case card */
.case-card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.case-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
  transform: translateY(-2px);
}
.case-card-photo {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: #eaeef5;
}
.case-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e8edf7, #d4dced);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9aabcb;
}
.case-card-body { padding: 18px 20px; }
.case-card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.case-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 10px;
  background: #eaeff8;
  color: var(--navy);
}
.case-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
  line-height: 1.4;
}
.case-card-profile {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.case-card-footer {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: #999;
  border-top: 1px solid #f0f0f0;
  padding-top: 10px;
}

/* ── Drawer overlay ── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.45);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(2px);
}
.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Drawer ── */
.report-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 520px;
  background: #fff;
  z-index: 900;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.report-drawer.open {
  transform: translateX(0);
}
[dir="rtl"] .report-drawer {
  right: auto;
  left: 0;
  transform: translateX(-100%);
  box-shadow: 8px 0 40px rgba(0,0,0,0.15);
}
[dir="rtl"] .report-drawer.open {
  transform: translateX(0);
}

/* Drawer header */
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #e8edf5;
  flex-shrink: 0;
}
.drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}
.drawer-sub {
  font-size: 0.82rem;
  color: #888;
  line-height: 1.5;
}
.drawer-close {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  border: 1px solid #e5e9f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: background 0.15s, color 0.15s;
}
.drawer-close:hover { background: #f3f4f6; color: #111; }

/* Privacy strip */
.drawer-privacy {
  display: flex;
  gap: 12px;
  padding: 14px 24px;
  background: #f0f4ff;
  border-bottom: 1px solid #dce5f5;
  flex-shrink: 0;
}
.dp-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 2px;
}
.dp-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.dp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dp-list li {
  font-size: 0.78rem;
  color: #444;
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}
.dp-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.72rem;
}
[dir="rtl"] .dp-list li { padding-left: 0; padding-right: 14px; }
[dir="rtl"] .dp-list li::before { left: auto; right: 0; }

/* Drawer scrollable body */
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

/* Form sections */
.dr-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #f0f2f7;
}
.dr-section:last-child { border-bottom: none; }
.dr-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
  display: inline-block;
}

.dr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 400px) { .dr-row { grid-template-columns: 1fr; } }

.dr-field { margin-bottom: 14px; }
.dr-label {
  display: block;
  font-size: 0.81rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}
.dr-label .opt { font-weight: 400; color: #bbb; font-size: 0.76rem; margin-left: 3px; }
[dir="rtl"] .dr-label .opt { margin-left: 0; margin-right: 3px; }

.dr-input, .dr-select, .dr-textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d8dde8;
  border-radius: 7px;
  font-size: 0.88rem;
  color: #222;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.dr-input:focus, .dr-select:focus, .dr-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}
.dr-textarea { min-height: 120px; resize: vertical; }
.dr-input.error, .dr-textarea.error { border-color: #dc2626; }

/* Consent block */
.consent-block {
  background: #fffbf0;
  border: 1px solid #f0d890;
  border-radius: 9px;
  padding: 16px;
}
.consent-block p {
  font-size: 0.83rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  min-width: 17px;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.consent-check span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
}

/* Violation chips */
.vr-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.vr-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1.5px solid #d8dde8;
  border-radius: 18px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  user-select: none;
  transition: all 0.12s;
  background: #fff;
}
.vr-chip input[type="checkbox"] { display: none; }
.vr-chip.checked, .vr-chip:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Contact pills */
.vr-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.vr-pill {
  padding: 7px 16px;
  border: 1.5px solid #d8dde8;
  border-radius: 18px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  color: #444;
  background: #fff;
  transition: all 0.12s;
  user-select: none;
}
.vr-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Toggle */
.vr-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 14px;
}
.vr-toggle-wrap input { display: none; }
.vr-toggle {
  width: 38px;
  height: 22px;
  background: #d8dde8;
  border-radius: 11px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.vr-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.vr-toggle-wrap input:checked + .vr-toggle { background: var(--navy); }
.vr-toggle-wrap input:checked + .vr-toggle::after { left: 19px; }
[dir="rtl"] .vr-toggle::after { left: auto; right: 3px; }
[dir="rtl"] .vr-toggle-wrap input:checked + .vr-toggle::after { right: 19px; left: auto; }
.vr-toggle-label { font-size: 0.86rem; font-weight: 500; color: #333; }

/* Field error */
.field-error {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

/* Submit */
.dr-submit { text-align: center; padding-top: 8px; }
.submit-btn {
  width: 100%;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 13px 0;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}
.submit-btn:hover { background: #2c3e6b; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-note {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 10px;
  line-height: 1.5;
}

/* Success state */
.dr-success {
  text-align: center;
  padding: 48px 24px;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #16a34a;
}
.dr-success h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a5c33;
  line-height: 1.5;
  margin-bottom: 20px;
}
.btn-close-success {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 28px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* Error banner */
.dr-error {
  background: #fff5f5;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #991b1b;
  margin-top: 12px;
}

/* Photo upload */
.photo-upload-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}
.photo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #f3f4f6;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 500;
  color: #374151;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.photo-upload-btn:hover {
  background: #e9ecf0;
  border-color: #9ca3af;
}
.photo-hint {
  font-size: 0.76rem;
  color: #9ca3af;
}
.photo-name {
  margin-top: 5px;
  font-size: 0.82rem;
  color: #2563eb;
  word-break: break-all;
}

@media (max-width: 768px) {
  .violations-hero { padding: 80px 0 48px; }
  .report-drawer { max-width: 100%; }
  .violations-top-bar { gap: 14px; }
  .cases-grid { grid-template-columns: 1fr; }
}
