/* ══════════════════════════════════════════
   ACHIEVEMENTS PAGE STYLES
   Extends the shared Eternal design system
   (style.css tokens: --red, --fd, --fu, --fa …)
   ══════════════════════════════════════════ */

/* ══════════ HERO ══════════ */
/* Matches the About page banner hero (1920 x 800 proportion) */
.ach-hero {
  width: 100%;
  aspect-ratio: 1920 / 800;
  position: relative;
  background-image: url('/assets/img/banner/achievements_banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (max-width: 900px) {
  .ach-hero {
    aspect-ratio: auto;
    height: 400px;
  }
}

@media (max-width: 500px) {
  .ach-hero {
    height: 350px;
    background-size: cover;
    background-position: center;
  }
}

/* ══════════ HONORS STRIP ══════════ */
.honors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.honor-card {
  position: relative;
  text-align: center;
  padding: 46px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.honor-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.4s ease;
}

.honor-card:hover {
  background: rgba(225, 6, 0, 0.03);
  border-color: rgba(225, 6, 0, 0.2);
  transform: translateY(-5px);
}

.honor-card:hover::after {
  width: 100%;
}

.honor-icon {
  font-size: 30px;
  color: var(--red);
  margin-bottom: 18px;
  display: block;
}

.honor-num {
  display: block;
  font-family: var(--fd);
  font-size: 60px;
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
}

.honor-label {
  font-family: var(--fa);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

/* ══════════ SHOWCASE ══════════ */
.ach-showcase {
  background: rgba(225, 6, 0, 0.02);
}

.ach-list {
  display: flex;
  flex-direction: column;
  gap: 90px;
  margin-top: 60px;
}

.ach-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.ach-row--reverse .ach-media {
  order: 2;
}

.ach-row--reverse .ach-body {
  order: 1;
}

/* Media */
.ach-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  background: #0a0a0a;
}

.ach-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(150deg, transparent 40%, rgba(225, 6, 0, 0.12) 100%);
  pointer-events: none;
}

.ach-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ach-row:hover .ach-media img {
  transform: scale(1.05);
}

.ach-media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0 solid var(--red);
  transition: border-width 0.4s ease;
  pointer-events: none;
}

.ach-row:hover .ach-media::after {
  border-bottom-width: 3px;
}

.ach-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  font-size: 22px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  box-shadow: 0 6px 18px rgba(225, 6, 0, 0.45);
}

/* Body */
.ach-body {
  max-width: 520px;
}


.ach-date {
  display: block;
  font-family: var(--fa);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.ach-title {
  font-family: var(--fd);
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}

.ach-desc {
  font-family: var(--fu);
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 28px;
}

.ach-desc strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.ach-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
}

.ach-meta li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fu);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.ach-meta i {
  color: var(--red);
  font-size: 18px;
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 1000px) {
  .honors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ach-row,
  .ach-row--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Keep the image first on every row when stacked */
  .ach-row--reverse .ach-media {
    order: 1;
  }

  .ach-row--reverse .ach-body {
    order: 2;
  }

  .ach-body {
    max-width: 100%;
  }

  .ach-list {
    gap: 70px;
  }
}

@media (max-width: 600px) {
  .honors-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .ach-desc {
    font-size: 16px;
  }

  /* Discord responsiveness, consistent with other pages */
  #discord {
    padding: 100px 20px !important;
  }

  .d-title {
    font-size: 42px !important;
    letter-spacing: 2px !important;
  }

  .d-sub {
    font-size: 14px !important;
    margin-bottom: 35px !important;
    padding: 0 10px;
  }

  .btn-disc {
    padding: 18px 40px !important;
    font-size: 12px !important;
    width: 100%;
    justify-content: center;
  }
}
