/* ===========================
   Living Legends Page Styles
   =========================== */

/* Search Section */
.search-section {
  padding: 2rem 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.search-box input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(212, 175, 55, 0.3);
  background: rgba(0, 0, 0, 0.5);
  color: var(--gold-100);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.search-box input::placeholder {
  color: var(--gray-400);
}

.search-box button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--gold-400);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.search-box button:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-200);
}

.search-box button svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Banner Section */
/* =========================
   BANNER SECTION
========================= */
.banner-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #d4af37, #f9d670, #d4af37);
  border-top: 3px solid #d4af37;
  border-bottom: 3px solid #d4af37;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.8), 
              inset 0 0 30px rgba(212, 175, 55, 0.5);
  position: relative;
  overflow: hidden;
}

/* Corrected shimmer animation to prevent clipping */
.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
}

/* =========================
   BANNER CONTAINER
========================= */
.banner-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

/* =========================
   HEADLINE
========================= */
.banner-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: #000;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}

/* Gold line under title */
.banner-content h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold-500), transparent);
}

/* =========================
   PARAGRAPH
========================= */
.banner-content p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #000;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* =========================
   ACTION BUTTONS
========================= */
.banner-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* PRIMARY BUTTON */
.btn-primary {
  padding: 1.2rem 3.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(45deg, #000, #333, #000);
  color: #f9d670;
  border: 2px solid #d4af37;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-8px) scale(1.05);
  letter-spacing: 0.2em;
  background: linear-gradient(45deg, #333, #000, #333);
  color: #fff;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

/* SECONDARY BUTTON */
.btn-secondary {
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--gold-300);
  border: 2px solid var(--gold-500);
  font-weight: 700;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-100);
}

/* =========================
   PREORDER BUTTON
========================= */
.preorder-btn {
  background: var(--gold-gradient);
  color: var(--neutral-900);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 6px rgba(212, 175, 55, 0.3);
}

.preorder-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(212, 175, 55, 0.4);
}

/* =========================
   SUBSCRIBE FORM
========================= */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 550px;
  margin: 2rem auto 0;
}

.subscribe-input {
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid #d4af37;
  background: rgba(0, 0, 0, 0.85);
  color: #f9d670;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.subscribe-input::placeholder {
  color: #e8c96b;
}

.subscribe-input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}

/* ROW FORM ON DESKTOP */
@media (min-width: 768px) {
  .subscribe-form {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .subscribe-input {
    max-width: 220px;
  }
}

/* Hero Description */
.hero-description {
  max-width: 800px;
  margin: 2rem auto 0;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--gray-300);
  text-align: center;
}

/* Stats Section */
/* ----- Stats Section ----- */
.stats-section {
  padding: 3rem 0;
  background: rgba(0, 0, 0, 0.45); /* More visible */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center grid and make it responsive */
.stats-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(1, 1fr);  /* Mobile FIRST */
  justify-items: center;
}

/* Tablet */
@media (min-width: 600px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 900px) {
  .stats-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----- Stat Card ----- */
.stat-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.08));
  text-align: center;
  transition: all var(--transition-base);
  overflow: hidden;
  width: 100%;
  max-width: 300px;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

/* Hover animation */
.stat-card:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--gold-400);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4), 0 0 30px rgba(212, 175, 55, 0.2);
}

@keyframes numberPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Label */
.stat-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold-200);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Filter Section */
.filter-section {
  padding: 3rem 0;
  background: rgba(0, 0, 0, 0.6); /* visible background */
  position: relative;
  z-index: 5;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.filter-header h3 {
  color: var(--gold-300); /* brighter */
  text-transform: uppercase;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.filter-btn {
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(212, 175, 55, 0.9);
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold-200);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}


/* Legends Grid */
.legends-section {
  padding: 4rem 0 6rem;
}

.legends-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legends-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .legends-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .legends-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .legends-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Legend Card */
.legend-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to bottom right, var(--neutral-900), var(--neutral-800));
  cursor: pointer;
  transition: all var(--transition-slow);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Category-specific glow effects */
.legend-card[data-category="PART I"] {
  box-shadow: 0 0 15px rgba(64, 158, 255, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legend-card[data-category="PART I"]:hover {
  box-shadow: 0 0 25px rgba(64, 158, 255, 0.8), 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(64, 158, 255, 0.8);
}

.legend-card[data-category="PART II"] {
  box-shadow: 0 0 15px rgba(150, 50, 220, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legend-card[data-category="PART II"]:hover {
  box-shadow: 0 0 25px rgba(150, 50, 220, 0.8), 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(150, 50, 220, 0.8);
}

.legend-card[data-category="PART III"] {
  box-shadow: 0 0 15px rgba(220, 50, 50, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legend-card[data-category="PART III"]:hover {
  box-shadow: 0 0 25px rgba(220, 50, 50, 0.8), 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(220, 50, 50, 0.8);
}

.legend-card[data-category="PART IV"] {
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legend-card[data-category="PART IV"]:hover {
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.8), 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 193, 7, 0.8);
}

.legend-card[data-category="PART V"] {
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legend-card[data-category="PART V"]:hover {
  box-shadow: 0 0 25px rgba(40, 167, 69, 0.8), 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(40, 167, 69, 0.8);
}

.legend-card[data-category="PART VI"] {
  box-shadow: 0 0 15px rgba(100, 50, 220, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.legend-card[data-category="PART VI"]:hover {
  box-shadow: 0 0 25px rgba(100, 50, 220, 0.8), 0 20px 60px rgba(0, 0, 0, 0.5);
  border-color: rgba(100, 50, 220, 0.8);
}

.legend-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.15);
}

.legend-card-image {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.legend-card-image img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 3px solid var(--gold-500);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.active-indicator {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #10b981, #059669);
  border: 3px solid var(--neutral-900);
  display: flex;
  align-items: center;
  justify-content: center;

}

.active-indicator svg {
  width: 12px;
  height: 12px;
  color: white;
}

.legend-card-content {
  text-align: center;
}

.legend-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold-100);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.legend-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(74, 222, 128);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legend-card-country {
  font-size: 0.875rem;
  color: var(--gray-400);
}

.legend-card-field {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legend-card-achievement {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-300);
  margin-bottom: 1rem;
}

.legend-card-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
}

.legend-card-view-profile svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Category-specific border colors for View Profile button */
.legend-card[data-category="PART I"] .legend-card-view-profile {
  border-color: rgba(64, 158, 255, 0.5);
  background: rgba(64, 158, 255, 0.1);
  color: rgba(64, 158, 255, 0.8);
}

.legend-card[data-category="PART II"] .legend-card-view-profile {
  border-color: rgba(150, 50, 220, 0.5);
  background: rgba(150, 50, 220, 0.1);
  color: rgba(150, 50, 220, 0.8);
}

.legend-card[data-category="PART III"] .legend-card-view-profile {
  border-color: rgba(220, 50, 50, 0.5);
  background: rgba(220, 50, 50, 0.1);
  color: rgba(220, 50, 50, 0.8);
}

.legend-card[data-category="PART IV"] .legend-card-view-profile {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.1);
  color: rgba(255, 193, 7, 0.8);
}

.legend-card[data-category="PART V"] .legend-card-view-profile {
  border-color: rgba(40, 167, 69, 0.5);
  background: rgba(40, 167, 69, 0.1);
  color: rgba(40, 167, 69, 0.8);
}

.legend-card[data-category="PART VI"] .legend-card-view-profile {
  border-color: rgba(100, 50, 220, 0.5);
  background: rgba(100, 50, 220, 0.1);
  color: rgba(100, 50, 220, 0.8);
}

.legend-card-view-profile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.legend-card[data-category="PART I"] .legend-card-view-profile:hover {
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.legend-card[data-category="PART II"] .legend-card-view-profile:hover {
  box-shadow: 0 4px 12px rgba(150, 50, 220, 0.3);
}

.legend-card[data-category="PART III"] .legend-card-view-profile:hover {
  box-shadow: 0 4px 12px rgba(220, 50, 50, 0.3);
}

.legend-card[data-category="PART IV"] .legend-card-view-profile:hover {
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.legend-card[data-category="PART V"] .legend-card-view-profile:hover {
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.legend-card[data-category="PART VI"] .legend-card-view-profile:hover {
  box-shadow: 0 4px 12px rgba(100, 50, 220, 0.3);
}

/* Search Bar Section */
.search-bar-section {
  padding: 2rem 0;
  background: linear-gradient(to bottom, rgba(212, 175, 55, 0.1), transparent);
  border-top: 1px solid #d4af37;
  border-bottom: 1px solid #d4af37;
}

.search-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.search-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 500px;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-full);
  border: 2px solid #d4af37;
  background: rgba(0, 0, 0, 0.8);
  color: #f9d670;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-base);
}

.search-box input:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
}

.search-box input::placeholder {
  color: #d4af37;
}

#search-clear {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #d4af37;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

#search-clear:hover {
  color: #fff;
  background: rgba(212, 175, 55, 0.3);
}

/* =========================
   GRADIENT TEXT OVERRIDE
========================= */
.gradient-text {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: white;
  background-clip: unset;
  color: white;
}
