/* ===========================
   Main Styles
   =========================== */

:root {
  /* Colors */
  --neutral-900: #0a0a0a;
  --neutral-800: #171717;
  --neutral-700: #262626;
  --neutral-600: #404040;
  --neutral-500: #737373;
  --neutral-400: #a3a3a3;
  --neutral-300: #d4d4d4;
  --neutral-200: #e5e5e5;
  --neutral-100: #fafafa;
  --gold-500: #d4af37;
  --gold-400: #f9d670;
  --gold-300: #f9e6ae;
  --gold-200: #fbf0c9;
  --gold-100: #fdf7e3;
  --blue-500: #409eff;
  --purple-500: #9632dc;
  --red-500: #dc3232;
  --amber-500: #ffc107;
  --green-500: #28a745;
  --indigo-500: #6432dc;
  
  /* Gradients */
  --gold-gradient: linear-gradient(135deg, #d4af37, #f9d670);
  --gold-gradient-reverse: linear-gradient(135deg, #f9d670, #d4af37);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Radii */
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-fast: 0.15s ease;
  
  /* Fonts */
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-display: 'Cinzel', serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--neutral-900);
  color: var(--neutral-100);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===========================
   Header
   =========================== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 1rem 1.5rem;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--gold-500);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  color: var(--neutral-300);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
}

nav a:hover,
nav a.active {
  color: var(--gold-400);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-500);
  transition: width var(--transition-base);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.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);
}

/* ===========================
   Hero Section
   =========================== */
.hero-section {
  position: relative;
  padding: 6rem 1.5rem;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  color: var(--gold-400);
  font-weight: 600;
  font-size: 0.875rem;
}

.hero-badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold-500);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--gold-100), var(--gold-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--neutral-300);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
}

.hero-btn.primary {
  background: var(--gold-gradient);
  color: var(--neutral-900);
  box-shadow: 0 4px 6px rgba(212, 175, 55, 0.3);
}

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

.hero-btn.secondary {
  background: transparent;
  color: var(--gold-400);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.hero-btn.secondary:hover {
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

.hero-divider {
  width: 100px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 2rem auto;
  border-radius: var(--radius-full);
}

/* ===========================
   Deck Section
   =========================== */
.deck-section {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.deck-container {
  max-width: 1280px;
  margin: 0 auto;
}

.deck-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #F9F1D8;
  margin-bottom: 0.5rem;
}

.deck-title-underline {
  width: 100px;
  height: 3px;
  background: var(--gold-500);
  margin: 0 auto 2rem;
  border-radius: var(--radius-full);
}

.deck-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  align-items: center;
}

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

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

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

.search-icon {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  color: var(--gold-400);
  pointer-events: none; /* Prevent icon from interfering with input */
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.category-filters,
.sort-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-btn,
.sort-btn {
  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.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
}

.filter-btn:hover,
.sort-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-100);
}

.filter-btn.active,
.sort-btn.active {
  background: var(--gold-gradient);
  color: var(--neutral-900);
  border-color: var(--gold-500);
}

/* ===========================
   Women Grid
   =========================== */
main {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 8rem;
}

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

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

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

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

/* ===========================
   Woman Card
   =========================== */
.woman-card {
  position: relative;
  height: 400px;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  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));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-slow);
}

.woman-card:hover {
  transform: translateY(-12px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

/* Card Decorative Corner */
.card-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 5rem;
  height: 5rem;
  opacity: 0.2;
}

.card-corner svg {
  color: var(--gold-500);
}

/* Category-specific glow effects */
.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

.woman-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);
}

/* Category Badge */
.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.card-badge svg {
  width: 0.625rem;
  height: 0.625rem;
}

/* Category Badge Colors */
.badge-thinkers {
  background-color: var(--blue-bg);
  color: var(--blue-text);
  border-color: var(--blue-border);
}

.badge-rulers {
  background-color: var(--purple-bg);
  color: var(--purple-text);
  border-color: var(--purple-border);
}

.badge-warriors {
  background-color: var(--red-bg);
  color: var(--red-text);
  border-color: var(--red-border);
}

.badge-creators {
  background-color: var(--amber-bg);
  color: var(--amber-text);
  border-color: var(--amber-border);
}

.badge-voices {
  background-color: var(--green-bg);
  color: var(--green-text);
  border-color: var(--green-border);
}

.badge-bridge-builders {
  background-color: var(--indigo-bg);
  color: var(--indigo-text);
  border-color: var(--indigo-border);
}

/* Card Content */
.card-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  padding-top: 4rem;
}

/* Card Top Section */
.card-top {
  text-align: center;
  transition: all var(--transition-slow);
}

.woman-card:hover .card-top {
  transform: scale(1.05);
}

.card-divider {
  margin: 0 auto 1rem;
  height: 1px;
  width: 4rem;
  background: linear-gradient(to right, transparent, var(--gold-500), transparent);
}

.card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: var(--gold-100);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.card-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.card-location svg {
  width: 0.75rem;
  height: 0.75rem;
}

.card-location .country {
  font-weight: 600;
}

.card-location .separator {
  color: var(--gold-500);
}

/* Card Middle Section - Hover Content */
.card-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(1rem);
  transition: all var(--transition-slow);
}

.woman-card:hover .card-middle {
  opacity: 1;
  transform: translateY(0);
}

.card-middle-content {
  text-align: center;
  padding: 0 1rem;
}

.card-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--neutral-300);
  margin-bottom: 1rem;
}

.card-description {
  font-size: 0.875rem;
  color: var(--neutral-400);
  line-height: 1.6;
}

/* Card Bottom Section */
.card-bottom {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.card-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  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);
}

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

.card-view-profile:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-100);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* ===========================
   Load More Button
   =========================== */
.load-more-btn {
  display: block;
  margin: 3rem auto;
  padding: 1rem 2rem;
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.load-more-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.load-more-btn:active {
  transform: translateY(0);
}

/* ===========================
   Legacy Banner
   =========================== */
.legacy-banner {
  background: #554211;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin: 4rem 0;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.banner-content h2.banner-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-content p.banner-subtitle {
  font-size: 1.125rem;
  color: rgb(249, 241, 216);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.banner-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.banner-email {
  width: 100%;
  max-width: 300px;
  padding: 1rem;
  border-radius: 0;
  border: 2px solid rgba(212, 175, 55, 0.3);
  background: rgba(26, 26, 26, 0.8);
  color: var(--gold-100);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all var(--transition-base);
  box-sizing: border-box;
}

.banner-email:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.banner-btn.preorder-btn {
  background: var(--gold-gradient);
  color: var(--neutral-900);
  border: none;
  padding: 1rem;
  border-radius: 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.banner-btn.preorder-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ===========================
   Scroll to Top Button
   =========================== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--neutral-900);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-base);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 99;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke-width: 2.5;
}

/* ===========================
   Modal
   =========================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  background: linear-gradient(to bottom right, var(--neutral-800), var(--neutral-900));
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(212, 175, 55, 0.3);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--transition-slow);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.active .modal-panel {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--neutral-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-400);
  border-color: rgba(212, 175, 55, 0.3);
}

.modal-content {
  height: calc(90vh - 2rem);
  overflow-y: auto;
  padding: 4rem 2rem 2rem;
}

/* Modal Header */
.modal-header {
  position: relative;
  text-align: center;
  margin-bottom: 3rem;
}

.modal-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  opacity: 0.1;
  z-index: 1;
}

.modal-pattern-left,
.modal-pattern-right {
  position: absolute;
  top: 0;
  width: 100px;
  height: 100px;
  color: var(--gold-500);
}

.modal-pattern-left {
  left: 2rem;
}

.modal-pattern-right {
  right: 2rem;
  transform: rotate(180deg);
}

.modal-pattern svg {
  width: 100%;
  height: 100%;
}

.modal-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  z-index: 2;
}

.modal-image-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gold-gradient);
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
}

.modal-image-border {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gold-gradient);
  padding: 4px;
  overflow: hidden;
}

/* Category-specific modal border glows */
.modal-image-border.PART-I {
  background: linear-gradient(to bottom right, #409EFF, #2a7de1, #1a6dcc);
  box-shadow: 0 0 40px rgba(64, 158, 255, 0.6);
}

.modal-image-border.PART-II {
  background: linear-gradient(to bottom right, #9632dc, #7a28b8, #5e1e94);
  box-shadow: 0 0 40px rgba(150, 50, 220, 0.6);
}

.modal-image-border.PART-III {
  background: linear-gradient(to bottom right, #dc3232, #b82828, #941e1e);
  box-shadow: 0 0 40px rgba(220, 50, 50, 0.6);
}

.modal-image-border.PART-IV {
  background: linear-gradient(to bottom right, #ffc107, #e0a800, #c69500);
  box-shadow: 0 0 40px rgba(255, 193, 7, 0.6);
}

.modal-image-border.PART-V {
  background: linear-gradient(to bottom right, #28a745, #218838, #1e7e34);
  box-shadow: 0 0 40px rgba(40, 167, 69, 0.6);
}

.modal-image-border.PART-VI {
  background: linear-gradient(to bottom right, #6432dc, #5028b8, #3c1e94);
  box-shadow: 0 0 40px rgba(100, 50, 220, 0.6);
}

.modal-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--neutral-700);
}

.modal-name-container {
  position: relative;
  z-index: 2;
}

.modal-divider-top,
.modal-divider-bottom {
  width: 100px;
  height: 2px;
  background: var(--gold-gradient);
  margin: 1rem auto;
  border-radius: var(--radius-full);
}

.modal-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-100);
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1rem;
  color: var(--neutral-400);
}

/* Modal Body */
.modal-body {
  position: relative;
  z-index: 2;
}

.modal-quote-container {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(26, 26, 26, 0.5);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-quote-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
}

.modal-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--neutral-200);
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: center;
}

.modal-quote-icon {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  color: var(--gold-500);
  background: var(--neutral-800);
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

.modal-bio {
  margin-bottom: 2rem;
}

.chapter-intro {
  text-align: center;
  margin-bottom: 2rem;
}

.chapter-intro p {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bio-section {
  margin-bottom: 2rem;
}

.bio-section h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-100);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.bio-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--gold-gradient);
  border-radius: var(--radius-full);
}

.bio-section p {
  font-size: 1rem;
  color: var(--neutral-300);
  line-height: 1.7;
}

.modal-read-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 3rem;
  padding: 0.75rem 1.5rem;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-300);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
}

.modal-read-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-100);
  border-color: rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.modal-read-btn.speaking {
  background: var(--gold-gradient);
  color: var(--neutral-900);
  border-color: var(--gold-500);
}

.modal-read-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Modal Footer */
.modal-footer {
  text-align: center;
  margin-top: 3rem;
}

.modal-footer-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.modal-footer-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-500), transparent);
}

.modal-footer-line.right {
  background: linear-gradient(to left, transparent, var(--gold-500), transparent);
}

.modal-footer-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold-500);
  margin: 0 1rem;
}

.modal-footer-text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--gold-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===========================
   Footer
   =========================== */
footer {
  text-align: center;
  padding: 2rem;
  background: rgba(10, 10, 10, 0.8);
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

footer p {
  color: var(--neutral-500);
  font-size: 0.875rem;
}

/* ===========================
   Scrollbar
   =========================== */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===========================
   State Section
   =========================== */
.state-section {
  padding: 2rem 1.5rem;
  text-align: center;
}

.state-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.state-card {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-xl);
  padding: 2rem;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.state-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-400);
  margin-bottom: 0.5rem;
}

.state-label {
  font-size: 1.125rem;
  color: var(--neutral-300);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.state-quote {
  max-width: 600px;
}

.state-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-300);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .state-card {
    padding: 1.5rem;
  }
  
  .state-number {
    font-size: 2rem;
  }
  
  .state-quote p {
    font-size: 1rem;
  }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .deck-title {
    font-size: 2rem;
  }
  
  .filter-container {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-content {
    padding: 3rem 1rem 1rem;
  }
  
  .modal-image-container {
    width: 150px;
    height: 150px;
  }
  
  .modal-name {
    font-size: 1.5rem;
  }
  
  .modal-quote {
    font-size: 1rem;
  }
  
  .bio-section h3 {
    font-size: 1.25rem;
  }
  
  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .scroll-to-top svg {
    width: 1.25rem;
    height: 1.25rem;
  }
  
  .legacy-banner {
    padding: 2rem 1rem;
  }
  
  .banner-content h2.banner-title {
    font-size: 1.5rem;
  }
  
  .banner-content p.banner-subtitle {
    font-size: 1rem;
  }
  
  .banner-form {
    flex-direction: column;
  }
  
  .banner-email {
    min-width: auto;
    max-width: 100%;
  }
  
  .banner-btn.preorder-btn {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .deck-section {
    padding: 2rem 1rem 1rem;
  }
  
  .card-content {
    padding: 1rem;
    padding-top: 3rem;
  }
  
  .card-name {
    font-size: 1.25rem;
  }
  
  .modal-panel {
    border-radius: var(--radius-xl);
  }
  
  .modal-content {
    height: calc(100vh - 2rem);
    padding: 2rem 0.5rem 0.5rem;
  }
  
  .modal-close {
    top: 1rem;
    right: 1rem;
  }
}