/* public/assets/problems.css
   Минимальный слой поверх ui.css/layout.css/common.css
*/

.problems-page{ padding: 18px 0 28px; }

.problems-head{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content:space-between;
  margin-bottom: 14px;
}
.problems-kicker{ opacity:.75; font-size: 13px; margin-bottom: 6px; }
.problems-title{ font-size: 28px; line-height: 1.15; margin: 0; }

.problems-actions{ display:flex; gap: 8px; flex-wrap: wrap; align-items:center; }

.problems-filter{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  margin: 10px 0 14px;
}
.problems-filter .form-control{ min-width: 260px; flex: 1 1 320px; }
.problems-filter .form-select{ min-width: 220px; }

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

.problem-card{
  display:flex;
  gap: 12px;
  text-decoration:none;
  color: inherit;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  overflow:hidden;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}
.problem-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.07);
}

.problem-card__media{
  width: 168px;
  min-width: 168px;
  height: 124px;
  background: rgba(0,0,0,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.problem-card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.problem-card__placeholder{
  font-size: 13px;
  opacity: .6;
}

.problem-card__body{ padding: 12px 12px 10px; flex: 1 1 auto; min-width: 0; }

.problem-card__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.problem-card__title{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  margin: 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width: 100%;
}
.problem-card__desc{
  font-size: 14px;
  opacity: .85;
  line-height: 1.35;
  margin: 0 0 8px;
}
.problem-card__meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: .7;
}

/* badges */
.problem-badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  white-space: nowrap;
  line-height: 1;
}
.problem-badge--new{ background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.20); }
.problem-badge--review{ background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.25); }
.problem-badge--rejected{ background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.20); }
.problem-badge--done{ background: rgba(22,163,74,.08); border-color: rgba(22,163,74,.22); }

/* create form */
.problem-form{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.form-row{ margin-bottom: 12px; }
.form-label{ display:block; font-weight: 700; margin-bottom: 6px; }
.form-hint{ font-size: 12px; opacity:.7; margin-top: 6px; }
.form-actions{ display:flex; gap: 10px; flex-wrap: wrap; }

/* show */
.problem-sub{ display:flex; gap: 10px; flex-wrap: wrap; align-items:center; margin-top: 10px; }
.problem-sub__dot{ opacity:.5; }

.problem-view{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.problem-view__text{ font-size: 15px; line-height: 1.5; }

.problem-gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.problem-gallery__item{
  display:block;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}
.problem-gallery__item img{
  width: 100%;
  height: 120px;
  object-fit: cover;
  display:block;
}

/* empty */
.empty-state{
  padding: 18px;
  border: 1px dashed rgba(0,0,0,.18);
  border-radius: 14px;
  opacity: .8;
  background: rgba(0,0,0,.02);
}

/* responsive */
@media (max-width: 860px){
  .problems-list{ grid-template-columns: 1fr; }
  .problem-card__media{ width: 140px; min-width: 140px; height: 110px; }
  .problem-gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

