/* =====================================================
   Доска Почёта — styleHonorBoard.css
   Приведено к общему дизайн-языку сайта (токены из style.css):
   поверхности --surface-*, акцент --red, радиусы/тени --radius/--shadow.
   ===================================================== */

@font-face {
  font-family: 'Future Z';
  src: url('/Fonts/Future Z.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =====================================================
   ROOT WRAPPER
   ===================================================== */
.hb-page {
  max-width: 1300px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

/* =====================================================
   HEADER — паттерн хедера сайта: панель + левый акцент + иконка
   ===================================================== */
.hb-header {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 26px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.hb-header-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.28);
  color: var(--red);
  font-size: 1.7rem;
  box-shadow: 0 0 22px rgba(220, 53, 69, 0.12) inset;
}

.hb-header-text {
  flex: 1 1 auto;
  min-width: 0;
}

.hb-title {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-strong);
  line-height: 1.1;
}

.hb-title-accent {
  color: var(--red);
}

.hb-subtitle {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.hb-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.hb-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.25);
  color: #f0a0a8;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.hb-header-sign {
  font-family: 'Future Z', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 8px;
  color: var(--red);
  text-shadow: 0 0 14px rgba(220, 53, 69, 0.5);
  line-height: 1;
  padding-right: 2px;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.hb-section {
  background: var(--surface-1);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 28px 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hb-section--red {
  border-color: rgba(220, 53, 69, 0.22);
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(220, 53, 69, 0.07) 0%, transparent 70%),
    var(--surface-1);
}

.hb-section--red::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--red) 50%, transparent 95%);
  box-shadow: 0 0 14px rgba(220, 53, 69, 0.4);
}

/* ---- Section header ---- */
.hb-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-soft);
}

.hb-section-icon {
  color: var(--red);
  font-size: 1.25rem;
  filter: drop-shadow(0 0 6px rgba(220, 53, 69, 0.35));
}

.hb-section-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: 0.5px;
}

.hb-section--red .hb-section-title {
  font-family: 'Future Z', sans-serif;
  letter-spacing: 4px;
  color: #f87171;
}

.hb-section-count {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.hb-section--red .hb-section-count {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.3);
  color: #f0a0a8;
}

/* =====================================================
   CARDS — язык карточек каталога
   ===================================================== */
.hb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 18px;
}

.hb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 28px 22px 0;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
  animation: hbCardIn 0.5s ease both;
  overflow: hidden;
}

@keyframes hbCardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Тонкий верхний акцент */
.hb-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220, 53, 69, 0.25), transparent);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.hb-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 22px rgba(220, 53, 69, 0.08);
}

.hb-card:hover::before { opacity: 1; }

/* ---- RED Team card ---- */
.hb-card--red {
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(220, 53, 69, 0.09) 0%, transparent 70%),
    var(--surface-2);
  border-color: rgba(220, 53, 69, 0.3);
}

.hb-card--red::before {
  background: linear-gradient(90deg, transparent 5%, var(--red) 50%, transparent 95%);
  box-shadow: 0 0 12px rgba(220, 53, 69, 0.4);
  opacity: 1;
}

.hb-card--red:hover {
  border-color: rgba(220, 53, 69, 0.55);
  box-shadow: var(--shadow-lg), 0 0 34px rgba(220, 53, 69, 0.18);
}

/* ---- Status badge ---- */
.hb-card-badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-mid);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hb-card-badge i { font-size: 0.85em; }

.hb-card-badge--red {
  background: linear-gradient(90deg, rgba(185, 28, 44, 0.85), rgba(146, 20, 32, 0.85));
  border-color: rgba(220, 53, 69, 0.5);
  color: #ffe0e2;
  box-shadow: 0 0 16px rgba(220, 53, 69, 0.2);
}

/* ---- Avatar ---- */
.hb-avatar-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  margin-bottom: 16px;
}

.hb-avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--border-mid);
  transition: border-color var(--t-base) var(--ease);
}

.hb-card--red .hb-avatar-wrap::before {
  border-color: rgba(220, 53, 69, 0.3);
  box-shadow: 0 0 16px rgba(220, 53, 69, 0.14);
}

.hb-card:hover .hb-avatar-wrap::before { border-color: rgba(220, 53, 69, 0.45); }

.hb-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--surface-0);
  border: 3px solid rgba(255, 255, 255, 0.09);
  transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.hb-card:hover .hb-avatar {
  border-color: rgba(220, 53, 69, 0.5);
  box-shadow: 0 0 16px rgba(220, 53, 69, 0.22);
}

.hb-card--red .hb-avatar {
  border-color: rgba(220, 53, 69, 0.55);
  box-shadow: 0 0 20px rgba(220, 53, 69, 0.28), 0 0 0 4px rgba(220, 53, 69, 0.07);
}

/* ---- Info ---- */
.hb-name {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.hb-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.hb-meta i { color: rgba(220, 53, 69, 0.55); font-size: 0.85em; }

.hb-meta--rank { color: var(--text-faint); }
.hb-meta--rank i { color: var(--text-faint); }

/* ---- Achievement block ---- */
.hb-achievement {
  margin-top: 18px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  text-align: left;
}

.hb-card--red .hb-achievement {
  border-color: rgba(220, 53, 69, 0.14);
}

.hb-achievement-label {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  font-weight: 800;
  margin-bottom: 6px;
}

.hb-achievement-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.hb-achievement-desc {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Footer (date) ---- */
.hb-card-footer {
  margin-top: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--border-soft);
}

.hb-card--red .hb-card-footer { border-top-color: rgba(220, 53, 69, 0.14); }

.hb-footer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  font-weight: 700;
}

.hb-footer-date {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.3px;
}

.hb-card--red .hb-footer-date { color: #f87171; }

/* =====================================================
   EMPTY
   ===================================================== */
.hb-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--text-muted);
}

.hb-empty i {
  font-size: 2.6rem;
  color: rgba(220, 53, 69, 0.4);
  margin-bottom: 14px;
}

.hb-empty p { margin: 0; font-size: 1.02rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
  .hb-page { margin: 20px auto 60px; }
  .hb-header { padding: 22px 24px; gap: 18px; }
  .hb-title { font-size: 1.7rem; }
  .hb-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
}

@media (max-width: 768px) {
  .hb-page { margin: 12px auto 40px; padding: 0 12px; }
  .hb-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    border-left: none;
    border-top: 3px solid var(--red);
  }
  .hb-header-text { text-align: center; }
  .hb-subtitle { font-size: 0.9rem; }
  .hb-header-meta { flex-direction: row; align-items: center; }
  .hb-section { padding: 20px 16px 24px; }
  .hb-section-title { font-size: 1.2rem; }
  .hb-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .hb-card { padding: 22px 14px 0; }
}

@media (max-width: 480px) {
  .hb-page { padding: 0 8px; }
  .hb-header { padding: 18px 14px; }
  .hb-title { font-size: 1.4rem; }
  .hb-header-icon { width: 52px; height: 52px; font-size: 1.4rem; }
  .hb-section { padding: 16px 12px 20px; }
  .hb-section-head { margin-bottom: 18px; }
  .hb-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hb-card { padding: 18px 10px 0; }
  .hb-card-badge { margin-bottom: 12px; font-size: 0.62rem; padding: 4px 9px; }
  .hb-avatar-wrap, .hb-avatar { width: 68px; height: 68px; }
  .hb-name { font-size: 0.95rem; }
  .hb-meta { font-size: 0.75rem; }
  .hb-achievement { padding: 10px 12px; margin-top: 12px; }
  .hb-achievement-text { font-size: 0.85rem; }
  .hb-achievement-desc { font-size: 0.78rem; }
  .hb-card-footer { padding: 10px 0 14px; margin-top: 12px; }
  .hb-footer-date { font-size: 0.82rem; }
}

@media (max-width: 360px) {
  .hb-grid { grid-template-columns: 1fr; }
  .hb-avatar-wrap, .hb-avatar { width: 76px; height: 76px; }
}

/* Touch — убираем hover-эффекты */
@media (hover: none) and (pointer: coarse) {
  .hb-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: var(--border-soft);
  }
  .hb-card--red:hover { border-color: rgba(220, 53, 69, 0.3); }
  .hb-card:hover .hb-avatar { border-color: rgba(255, 255, 255, 0.09); box-shadow: none; }
}
