/* =====================================================
   Доска Почёта — styleHonorBoard.css
   Premium military-honor aesthetic | dc3545 palette
   ===================================================== */

@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
   ===================================================== */
.honor-board-container {
  max-width: 1300px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

/* =====================================================
   HERO HEADER
   ===================================================== */
.header-section {
  position: relative;
  text-align: center;
  padding: 80px 40px 64px;
  margin-bottom: 52px;
  overflow: hidden;

  /* Dark vignette over a deep radial bg */
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,   rgba(220,53,69,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 60% 100% at 20% 100%, rgba(220,53,69,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80%  at 80% 80%,  rgba(100,0,20,0.12)  0%, transparent 60%),
    rgba(11, 12, 20, 0.82);

  border: 1px solid rgba(220, 53, 69, 0.22);
  border-radius: 24px;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(220,53,69,0.08) inset,
    0 1px 0 rgba(255,255,255,0.04) inset;
}

/* Scanline texture overlay */
.header-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  border-radius: 24px;
}

/* Bottom glow bar */
.header-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(220,53,69,0.5) 50%, transparent 95%);
}

/* ---- Decorative corner marks ---- */
.header-section .corner-tl,
.header-section .corner-tr,
.header-section .corner-bl,
.header-section .corner-br {
  display: none; /* handled via pseudo */
}

.header-section h1 {
  font-size: 3.6rem;
  font-weight: 800;
  color: #f5f5f5;
  letter-spacing: 2px;
  margin: 0 0 0 0;
  position: relative;
  display: inline-block;
  line-height: 1.1;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.header-section h1::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #dc3545, #f87171, #dc3545, transparent);
  background-size: 300% auto;
  animation: barShimmer 2.5s ease infinite;
  border-radius: 2px;
}

@keyframes barShimmer {
  0%   { background-position: 0% center;   }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center;   }
}

.header-section > p:not(.red-team-signature) {
  max-width: 680px;
  margin: 48px auto 30px;
  color: rgba(210, 210, 225, 0.78);
  font-size: 1.08rem;
  line-height: 1.9;
  position: relative;
}

.red-line {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(220,53,69,0.55) 50%, transparent 95%);
  margin: 28px auto;
  max-width: 460px;
}

/* ---- "RED" signature with Future Z ---- */
.red-team-signature {
  font-family: 'Future Z', sans-serif;
  font-size: 3rem;
  color: #dc3545;
  letter-spacing: 16px;
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(220,53,69,0.8),
    0 0 32px rgba(220,53,69,0.4),
    0 0 64px rgba(220,53,69,0.15);
  margin: 0;
  line-height: 1;
  position: relative;
}

/* =====================================================
   SECTION CONTAINERS
   ===================================================== */
.red-team-section,
.honorable-mentions-section {
  border-radius: 22px;
  padding: 44px 40px 48px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

/* RED Team — most premium */
.red-team-section {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(220,53,69,0.1) 0%, transparent 70%),
    rgba(14, 10, 16, 0.78);
  border: 1px solid rgba(220,53,69,0.25);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(220,53,69,0.07) inset;
}

.red-team-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 5%, #dc3545 50%, transparent 95%);
  box-shadow: 0 0 16px rgba(220,53,69,0.5);
}

/* Honorable mentions */
.honorable-mentions-section {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%),
    rgba(12, 14, 22, 0.75);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.honorable-mentions-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.12) 50%, transparent 90%);
}

/* ---- Section titles ---- */
.red-team-title {
  font-family: 'Future Z', sans-serif;
  font-size: 1.9rem;
  color: #f87171;
  text-align: center;
  margin: 0 0 42px 0;
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(248,113,113,0.5),
    0 0 32px rgba(220,53,69,0.25);
  position: relative;
}

.red-team-title::before,
.red-team-title::after {
  content: '◈';
  margin: 0 18px;
  color: #dc3545;
  opacity: 0.5;
  font-size: 0.75em;
  vertical-align: middle;
}

.section-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #e4e4ea;
  text-align: center;
  margin: 0 0 42px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  letter-spacing: 0.5px;
}

.section-title i {
  color: #dc3545;
  font-size: 1.35rem;
  filter: drop-shadow(0 0 6px rgba(220,53,69,0.4));
}

/* =====================================================
   CARDS
   ===================================================== */
.players-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
  gap: 22px;
}

/* ---- Base card ---- */
.player-card {
  background: rgba(15, 17, 32, 0.75);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 30px 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  transition:
    transform 0.35s cubic-bezier(0.22,1,0.36,1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  animation: cardIn 0.5s ease both;
  position: relative;
  overflow: hidden;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Thin top accent */
.player-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);
  transition: opacity 0.3s;
}

/* Bottom glow on hover */
.player-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(220,53,69,0.05), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.player-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 24px 56px rgba(0,0,0,0.6),
    0 0 24px rgba(220,53,69,0.09),
    inset 0 1px 0 rgba(255,255,255,0.06);
  border-color: rgba(220,53,69,0.25);
}

.player-card:hover::before { opacity: 1.5; }
.player-card:hover::after  { opacity: 1; }

/* ---- Premium (RED Team) Card ---- */
.premium-card {
  background: rgba(20, 10, 16, 0.82);
  border: 1px solid rgba(220,53,69,0.3);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(220,53,69,0.08) inset,
    inset 0 1px 0 rgba(255,100,100,0.06);
}

.premium-card::before {
  background: linear-gradient(90deg, transparent 5%, #dc3545 50%, transparent 95%);
  box-shadow: 0 0 12px rgba(220,53,69,0.4);
  height: 3px;
}

.premium-card:hover {
  border-color: rgba(220,53,69,0.55);
  box-shadow:
    0 26px 62px rgba(0,0,0,0.65),
    0 0 36px rgba(220,53,69,0.2),
    inset 0 1px 0 rgba(255,100,100,0.08);
}

/* ---- Avatar ---- */
.avatar-wrapper {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
  margin-bottom: 18px;
}

/* Outer ring */
.avatar-wrapper::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color 0.3s ease;
}

.premium-card .avatar-wrapper::before {
  border-color: rgba(220,53,69,0.2);
  box-shadow: 0 0 16px rgba(220,53,69,0.12);
}

.player-card:hover .avatar-wrapper::before {
  border-color: rgba(220,53,69,0.4);
}

.player-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.09);
  display: block;
  background: #0c0e1c;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover .player-avatar {
  border-color: rgba(220,53,69,0.5);
  box-shadow: 0 0 16px rgba(220,53,69,0.22);
}

.premium-card .player-avatar {
  border-color: rgba(220,53,69,0.55);
  box-shadow:
    0 0 20px rgba(220,53,69,0.3),
    0 0 0 4px rgba(220,53,69,0.07);
}

/* ---- Info ---- */
.player-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.player-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f2f2f8;
  margin: 0 0 6px 0;
  line-height: 1.3;
  letter-spacing: 0.2px;
}

.premium-card .player-name {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.player-rank {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(185,185,205,0.5);
  margin: 0;
  line-height: 1.45;
}

/* ---- Card Footer (date) ---- */
.card-footer {
  margin-top: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.premium-card .card-footer {
  border-top-color: rgba(220,53,69,0.15);
}

.footer-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(160,160,180,0.38);
  font-weight: 700;
}

.footer-date {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f0a050;
  letter-spacing: 0.4px;
  text-shadow: 0 0 10px rgba(240,160,80,0.3);
}

.premium-card .footer-date {
  color: #f87171;
  text-shadow: 0 0 10px rgba(248,113,113,0.35);
}

/* ---- Achievement block ---- */
.achievement {
  margin-top: 18px;
  padding: 14px 16px 16px;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.premium-card .achievement {
  background: rgba(0,0,0,0.45);
  border-color: rgba(220,53,69,0.12);
}

.achievement h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: rgba(170,170,190,0.38);
  margin: 10px 0 3px 0;
  font-weight: 700;
}

.achievement h4:first-child { margin-top: 0; }

.achievement p {
  font-size: 0.9rem;
  color: rgba(215,215,235,0.82);
  margin: 0;
  line-height: 1.6;
}

.red-team-status {
  font-family: 'Future Z', sans-serif !important;
  color: #f87171 !important;
  font-size: 1rem !important;
  letter-spacing: 2px !important;
  text-shadow: 0 0 10px rgba(248,113,113,0.35);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
  .honor-board-container { margin: 30px auto 60px; }
  .header-section { padding: 60px 28px 48px; }
  .header-section h1 { font-size: 2.8rem; }
  .red-team-signature { font-size: 2.4rem; letter-spacing: 12px; }
  .red-team-section,
  .honorable-mentions-section { padding: 34px 28px 38px; }
  .players-container { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 18px; }
}

@media (max-width: 768px) {
  .honor-board-container { margin: 12px auto 40px; padding: 0 10px; }
  .header-section {
    padding: 36px 18px 30px;
    border-radius: 14px;
    margin-bottom: 20px;
  }
  .header-section h1 { font-size: 1.8rem; letter-spacing: 1px; }
  .header-section > p:not(.red-team-signature) {
    font-size: 0.9rem;
    margin: 34px auto 18px;
    line-height: 1.7;
  }
  .red-team-signature { font-size: 1.6rem; letter-spacing: 8px; }
  .red-line { margin: 20px auto; }
  .red-team-section,
  .honorable-mentions-section { padding: 22px 14px 26px; border-radius: 14px; margin-bottom: 16px; }
  .red-team-title { font-size: 1.25rem; letter-spacing: 3px; margin-bottom: 22px; }
  .section-title { font-size: 1.15rem; margin-bottom: 22px; gap: 10px; }
  .players-container { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .player-card { padding: 20px 14px 0; border-radius: 14px; }
  .avatar-wrapper { width: 80px; height: 80px; margin-bottom: 14px; }
  .player-avatar { width: 80px; height: 80px; }
  .player-name { font-size: 1rem; }
  .achievement { padding: 12px 12px 14px; margin-top: 14px; }
  .achievement p { font-size: 0.86rem; }
  .card-footer { padding: 12px 0 16px; margin-top: 14px; }
}

@media (max-width: 480px) {
  .honor-board-container { padding: 0 8px; }
  .header-section {
    padding: 28px 14px 24px;
    border-radius: 12px;
    margin-bottom: 16px;
  }
  .header-section h1 { font-size: 1.45rem; }
  .header-section > p:not(.red-team-signature) { font-size: 0.85rem; margin: 26px auto 16px; }
  .red-team-signature { font-size: 1.3rem; letter-spacing: 6px; }
  .red-team-section,
  .honorable-mentions-section { padding: 18px 12px 22px; border-radius: 12px; }
  .red-team-title { font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 18px; }
  .section-title { font-size: 1.05rem; margin-bottom: 18px; }
  /* 2 колонки на мобильных */
  .players-container { grid-template-columns: 1fr 1fr; gap: 10px; }
  .player-card { padding: 16px 10px 0; border-radius: 12px; }
  .avatar-wrapper { width: 64px; height: 64px; margin-bottom: 10px; }
  .player-avatar { width: 64px; height: 64px; border-width: 2px; }
  .player-name { font-size: 0.88rem; margin-bottom: 4px; }
  .player-rank { font-size: 0.75rem; }
  .achievement { padding: 8px 10px 10px; margin-top: 10px; border-radius: 8px; }
  .achievement h4 { font-size: 0.65rem; letter-spacing: 1px; }
  .achievement p { font-size: 0.78rem; line-height: 1.5; }
  .red-team-status { font-size: 0.85rem !important; letter-spacing: 1px !important; }
  .card-footer { padding: 10px 0 14px; margin-top: 10px; gap: 3px; }
  .footer-label { font-size: 0.6rem; letter-spacing: 1px; }
  .footer-date { font-size: 0.8rem; }
}

@media (max-width: 360px) {
  .players-container { grid-template-columns: 1fr; }
  .player-card { padding: 18px 14px 0; }
  .avatar-wrapper { width: 72px; height: 72px; }
  .player-avatar { width: 72px; height: 72px; }
  .player-name { font-size: 0.95rem; }
}

/* Touch — убираем hover */
@media (hover: none) and (pointer: coarse) {
  .player-card:hover,
  .premium-card:hover {
    transform: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.07);
  }
  .premium-card:hover {
    border-color: rgba(220,53,69,0.3);
  }
  .player-card:hover .player-avatar {
    border-color: rgba(255,255,255,0.09);
    box-shadow: none;
  }
}
