/* ============================================
   css/alerts.css  —  Alerts list
   Same structure as reviews.css
   Accent: amber/orange instead of green
   ============================================ */

.al-list { width: 100%; }

/* ── Header ── */
.al-list__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1e1e1e;
}

.al-list__heading {
  font-size: 18px;
  font-weight: 700;
  color: #d8d8d8;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.al-list__total {
  font-size: 12px;
  font-weight: 500;
  color: #6e4e1a;
  background: #1e160a;
  border: 1px solid #3a2a0e;
  border-radius: 20px;
  padding: 2px 10px;
}

.al-list__range {
  font-size: 11.5px;
  color: #3a3a3a;
}

/* ── Items list ── */
.al-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid #1e1a14;
  border-radius: 8px;
  overflow: hidden;
  background: #111213;
}

/* ── Single row ── */
.al-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #1a1a1a;
  transition: background 0.14s;
  min-height: 62px;
}

.al-row:last-child { border-bottom: none; }
.al-row:hover      { background: #151208; }

/* ── Left avatar ── */
.al-row__avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3a2a0e, #1e1208);
  border: 1px solid #4a3a1e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #c8902a;
  flex-shrink: 0;
  user-select: none;
}

.al-row__avatar--sm {
  width: 30px;
  height: 30px;
  min-width: 30px;
  font-size: 12px;
}

/* ── Body ── */
.al-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.al-row__title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* Alert badge — amber */
.al-badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  background: #e69c2a;
  color: #1a1000;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}

.al-row__title {
  font-size: 14px;
  font-weight: 600;
  color: #d0d0d0;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.13s;
  line-height: 1.4;
}

.al-row:hover .al-row__title { color: #f0d080; }

/* Meta */
.al-row__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 6px;
}

.al-row__author {
  font-size: 11.5px;
  color: #8a6e2a;
  white-space: nowrap;
}

.al-row__date {
  font-size: 11.5px;
  color: #484848;
  white-space: nowrap;
}

.al-row__sep {
  font-size: 10px;
  color: #2a2a2a;
}

/* ── Right column ── */
.al-row__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.al-row__counts {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 90px;
}

.al-row__count-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.al-row__count-label {
  font-size: 11.5px;
  color: #484848;
  white-space: nowrap;
}

.al-row__count-val {
  font-size: 11.5px;
  font-weight: 600;
  color: #6a6a6a;
  white-space: nowrap;
}

.al-row__last {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.al-row__last-date {
  font-size: 11.5px;
  color: #888;
  white-space: nowrap;
}

.al-row__last-user {
  font-size: 11px;
  color: #8a6e2a;
  white-space: nowrap;
}

/* ── Empty state ── */
.al-empty {
  padding: 48px 24px;
  text-align: center;
}

.al-empty svg {
  width: 48px; height: 48px;
  opacity: 0.18;
  margin: 0 auto 14px;
  display: block;
}

.al-empty p      { font-size: 14px; color: #3a3a3a; margin: 0; }
.al-empty strong { color: #6a5a2a; }

/* ── Pagination ── */
.al-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.al-page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #242424;
  background: #161616;
  color: #6a6a6a;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body, sans-serif);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  user-select: none;
  line-height: 1;
}

.al-page-btn:hover:not([disabled]):not(.active) {
  background: #2a1e08;
  border-color: #6a4e1a;
  color: #f0d080;
}

.al-page-btn.active {
  background: #2a1e08;
  border-color: #e69c2a;
  color: #f0d080;
  cursor: default;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(230,156,42,0.2);
}

.al-page-btn[disabled] {
  opacity: 0.22;
  cursor: not-allowed;
  pointer-events: none;
}

.al-page-btn.prev,
.al-page-btn.next { font-size: 17px; padding: 0 9px; }

.al-page-info {
  font-size: 11.5px;
  color: #383838;
  margin-right: 10px;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .al-row__right  { display: none; }
}

@media (max-width: 480px) {
  .al-row         { padding: 11px 12px; gap: 10px; }
  .al-row__avatar { width: 32px; height: 32px; min-width: 32px; font-size: 13px; }
  .al-pagination  { justify-content: center; }
}