/* Awards component (badge strip + accessible modal)
   Used by: /partials/awards-strip.html and pages that include it.
*/

.awards {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.92), rgba(10, 10, 10, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.aw-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Badge strip - CSS Grid layout with 6 columns */
.aw-badges {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: start;
  justify-items: center;
}

.aw-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.aw-badge .aw-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 100px;
  line-height: 1.3;
}

/* Hover effect for badges */
.aw-badge:hover {
  transform: scale(1.05);
}

.aw-badge img {
  display: block;
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
  transition: transform var(--transition-base, 0.3s ease), filter var(--transition-base, 0.3s ease);
}

.aw-badge:hover {
  transform: scale(1.05);
}

.aw-badge:hover img {
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.5))
          drop-shadow(0 0 25px rgba(212, 175, 55, 0.35));
}

/* Featured badge (center position - reviews) */
.aw-badge--featured img {
  height: 130px;
}

/* Legacy pill styles (kept for backwards compatibility) */
.aw-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  align-items: center;
  justify-content: center;
}

.aw-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
}

.aw-icon {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.aw-text {
  font-weight: 500;
}

.aw-foot {
  text-align: center;
  margin-top: 10px;
}

.aw-link {
  background: transparent;
  border: 0;
  color: var(--gold-brand);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.aw-link:focus-visible {
  outline: 2px solid var(--gold-brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Modal */
.aw-modal[hidden] {
  display: none !important;
}

.aw-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.aw-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.aw-modal__dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  margin: 10vh auto 0;
  background: var(--bg-primary, #0A0A0A);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.aw-modal__header,
.aw-modal__footer {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aw-modal__footer {
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aw-modal__title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
}

.aw-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.aw-modal__close:focus-visible {
  outline: 2px solid var(--gold-brand);
  outline-offset: 3px;
}

.aw-modal__body {
  padding: 16px;
}

.aw-points {
  margin: 10px 0 0;
  padding-left: 18px;
}

.aw-btn {
  background: linear-gradient(to right, #D4AF37, #e5c45a);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.aw-btn:hover {
  filter: brightness(0.98);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .aw-badges {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .aw-badge img {
    height: 100px;
  }

  .aw-badge--featured img {
    height: 110px;
  }
}

@media (max-width: 768px) {
  .aw-badges {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .aw-badge img {
    height: 80px;
  }

  .aw-badge--featured img {
    height: 90px;
  }
}

@media (max-width: 600px) {
  .aw-badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .aw-badge img {
    height: 70px;
  }

  .aw-badge--featured img {
    height: 80px;
  }
}

@media (max-width: 520px) {
  .awards {
    padding: 16px 0;
  }

  .aw-badges {
    gap: 12px;
  }

  .aw-badge img {
    height: 60px;
  }

  .aw-badge--featured img {
    height: 70px;
  }

  .aw-pill { font-size: 0.9rem; }
  .aw-modal__dialog { margin-top: 7vh; }
}


