/* Global Resolved Issues Page Styles */
.resolve-page {
  width: min(calc(100% - clamp(1rem, 3vw, 2.5rem)), 1360px);
  max-width: 1360px;
  margin-inline: auto;
  padding-block: 1rem 2.2rem;
  color: #f1ffe9;
}

/* 3. Resolved Feed & Cards */
.resolved-feed {
  display: grid;
  gap: 1.5rem;
}

.resolved-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 1.5rem;
  padding: 1.35rem;
  background: #08170e;
  border: 1px solid rgba(40, 167, 69, 0.45);
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.12);
  border-radius: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.resolved-card:hover {
  transform: translateY(-2px);
  border-color: #22c55e;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.22);
}

/* Dual Images Container (Left) */
.resolved-duo-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  align-items: center;
  align-self: start;
}

.resolved-photo-wrap {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #05140b;
  border: 1px solid #1a422a;
}

.resolved-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.resolved-photo-wrap:hover img {
  transform: scale(1.04);
}

.badge-before {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.badge-after {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  background: #84cc16;
  color: #0c2b12;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Right Content Area */
.resolved-card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.resolved-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.resolved-title-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.resolved-title-left i {
  color: #22c55e;
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
}

.resolved-title-left h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #f1ffe9;
  line-height: 1.3;
}

.resolved-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid #22c55e;
  border-radius: 9999px;
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.12);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
  flex: none;
}

.resolved-location-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #a3c9a8;
}

.resolved-location-row i {
  color: #4ade80;
  width: 1em;
  height: 1em;
}

.resolved-desc-row {
  margin: 0;
  font-size: 0.94rem;
  color: #d1e7d4;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resolved-authority-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #86efac;
  background: rgba(16, 53, 31, 0.55);
  border: 1px solid #1f5e36;
  border-radius: 0.45rem;
  padding: 0.3rem 0.65rem;
  width: fit-content;
}

.resolved-authority-tag i {
  color: #22c55e;
}

/* Footer Meta & Action Row */
.resolved-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #143522;
  padding-top: 0.75rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.resolved-meta-dates {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

.resolved-date-reported {
  color: #8da995;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.resolved-date-solved {
  color: #4ade80;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.resolved-view-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 1.05rem;
  border: 1px solid #22c55e;
  border-radius: 9999px;
  background: rgba(14, 43, 27, 0.6);
  color: #f1ffe9;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.resolved-view-details-btn:hover {
  background: #22c55e;
  color: #05140b;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.45);
  transform: translateY(-1px);
}

/* Empty State */
.resolved-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  border: 1px dashed #28734e;
  border-radius: 1.25rem;
  background: rgba(8, 23, 14, 0.4);
}

.resolved-empty-state i {
  width: 48px;
  height: 48px;
  color: #4ade80;
  margin-bottom: 0.75rem;
}

.resolved-empty-state h3 {
  margin: 0 0 0.35rem;
  font-size: 1.3rem;
  color: #f1ffe9;
}

.resolved-empty-state p {
  margin: 0;
  color: #8da995;
  font-size: 0.95rem;
}

/* Detail Modal */
.resolve-detail-dialog {
  color-scheme: dark;
  width: min(94vw, 44rem);
  max-height: 92dvh;
  padding: 1.75rem;
  border: 1px solid #28734e;
  border-radius: 1.25rem;
  background: radial-gradient(ellipse at top left, #0e2d1d, #05180f 85%), #05180f;
  color: #f1ffe9;
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.25), 0 12px 36px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

.resolve-detail-dialog::backdrop {
  background: rgba(1, 15, 8, 0.85);
  backdrop-filter: blur(6px);
}

.detail-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0;
}

.detail-duo-grid .resolved-photo-wrap {
  aspect-ratio: 16 / 10;
}

@media (max-width: 768px) {
  .resolved-card {
    grid-template-columns: 1fr;
  }
  .detail-duo-grid {
    grid-template-columns: 1fr;
  }
}
