/* Aura Perfume Web Application Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #0c0d10;
  --bg-card: #15171d;
  --bg-card-hover: #1c1f27;
  --bg-glass: rgba(21, 23, 29, 0.75);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(197, 160, 89, 0.35);
  --accent-gold: #c5a059;
  --accent-gold-light: #e2c88f;
  --accent-rose: #d48b8b;
  --text-main: #f3f3f3;
  --text-muted: #9aa0a6;
  --text-gold: #d7b46a;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-luxury: 0 20px 40px -15px rgba(0, 0, 0, 0.6), 0 0 25px rgba(197, 160, 89, 0.08);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Glassmorphism Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(12, 13, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  font-size: 1.6rem;
  color: var(--accent-gold);
}

.logo-title {
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-gold-light);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.btn-luxury {
  background: linear-gradient(135deg, #c5a059 0%, #9e7d3b 100%);
  color: #0c0d10;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(197, 160, 89, 0.25);
}

.btn-luxury:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.4);
  background: linear-gradient(135deg, #d8b46d 0%, #b38e46 100%);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-gold);
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.88rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: rgba(197, 160, 89, 0.12);
  border-color: var(--accent-gold-light);
  color: var(--accent-gold-light);
}

/* Hero Section */
.hero-section {
  min-height: 90vh;
  padding: 8rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(197, 160, 89, 0.15) 0%, rgba(12, 13, 16, 0.98) 70%);
  text-align: center;
}

.hero-content {
  max-width: 850px;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border-gold);
  background: rgba(197, 160, 89, 0.08);
  border-radius: 30px;
  color: var(--accent-gold-light);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 30%, #c5a059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Shared */
.section {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  color: var(--accent-gold);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.8rem;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Quiz Finder Section */
.quiz-card-container {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-luxury);
  position: relative;
  overflow: hidden;
}

.quiz-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: var(--transition);
}

.progress-step.active {
  background: var(--accent-gold);
}

.quiz-question-title {
  font-size: 1.6rem;
  margin-bottom: 1.8rem;
  color: var(--text-main);
  text-align: center;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-opt-btn:hover {
  background: rgba(197, 160, 89, 0.12);
  border-color: var(--accent-gold);
  transform: translateX(6px);
  color: var(--accent-gold-light);
}

.quiz-result-area {
  display: none;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

/* Directory Filter & Search */
.directory-controls {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.2rem 1rem 3rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(197, 160, 89, 0.2);
}

.search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pill-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.pill-btn:hover, .pill-btn.active {
  background: var(--accent-gold);
  color: #0c0d10;
  font-weight: 600;
  border-color: var(--accent-gold);
}

/* Perfume Cards Grid (Minimal & Clean) */
.perfumes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}

.perfume-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-luxury);
  position: relative;
}

.perfume-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 160, 89, 0.15);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(18, 20, 26, 0.95) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 1.2rem;
}

.card-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
}

.perfume-card:hover .card-img {
  transform: scale(1.08) translateY(-4px);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-gold);
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.72rem;
  color: var(--accent-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-brand {
  font-size: 0.82rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
  font-weight: 500;
}

.card-title {
  font-size: 1.45rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  transition: var(--transition);
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.note-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #d1d5db;
}

.card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.2rem;
  margin-top: auto;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-card-detail {
  flex: 1;
  background: rgba(197, 160, 89, 0.12);
  color: var(--accent-gold-light);
  border: 1px solid var(--border-gold);
  padding: 0.6rem 0.8rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-card-detail:hover {
  background: var(--accent-gold);
  color: #0c0d10;
}

.btn-official {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.6rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.btn-official:hover {
  border-color: var(--border-gold);
  color: #fff;
}

/* History Cards (Seamless Image Integration) */
.history-img-wrap {
  width: 100%;
  height: 240px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, rgba(18, 20, 26, 0.95) 100%);
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.history-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.6));
  transition: transform 0.5s ease;
}

.history-img-wrap:hover .history-img {
  transform: scale(1.05);
}

/* Trivia Flip Cards (Uniform Height & Balanced Spacing) */
.trivia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.flip-card {
  background-color: transparent;
  min-height: 320px;
  height: 100%;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.flip-card-front {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-luxury);
}

.flip-icon {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

.flip-keyword {
  font-size: 1.35rem;
  color: var(--accent-gold-light);
  margin-bottom: 0.4rem;
}

.flip-hint {
  font-size: 0.78rem;
  color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.08);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin: 0 auto;
}

.flip-card-back {
  background: linear-gradient(145deg, #181b22, #0d0e12);
  border: 1px solid var(--border-gold);
  transform: rotateY(180deg);
  text-align: left;
  font-size: 0.9rem;
  color: #e5e7eb;
  line-height: 1.65;
  overflow-y: auto;
}

.flip-card-back strong {
  color: var(--accent-gold-light);
}

/* Large Expanded Modal Popup */
.perfume-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.perfume-modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  z-index: 1000;
  background: #13151c;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 960px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 3rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(197, 160, 89, 0.15);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: #fff;
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.2);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
}

.modal-img-showcase {
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(10, 11, 15, 0.95) 100%);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.modal-img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.8));
  margin-bottom: 1.5rem;
}

.modal-score-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  text-align: left;
}

.modal-score-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-score-label {
  color: var(--text-muted);
  display: block;
  font-size: 0.72rem;
}

.modal-score-stars {
  color: var(--accent-gold-light);
  font-weight: 600;
}

.modal-info-area {
  display: flex;
  flex-direction: column;
}

.modal-section-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.2rem;
}

.modal-section-title {
  color: var(--accent-gold-light);
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Simulator Section */
.simulator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.sim-control-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.sim-slider-wrap {
  margin: 2rem 0;
}

.sim-slider {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
  accent-color: var(--accent-gold);
  cursor: pointer;
}

.sim-meter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.8rem;
}

.meter-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.meter-value {
  font-size: 1.8rem;
  color: var(--accent-gold-light);
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
}

.meter-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.interactive-pyramid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.pyramid-tier {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.pyramid-tier:hover, .pyramid-tier.active {
  border-color: var(--accent-gold);
  background: rgba(197, 160, 89, 0.12);
  transform: scale(1.02);
}

.tier-top { width: 70%; }
.tier-mid { width: 85%; }
.tier-base { width: 100%; }

.tier-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.tier-title {
  font-size: 1.1rem;
  color: var(--accent-gold-light);
}

.tier-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 2.8rem; }
  .simulator-container { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 4rem 1.2rem; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 1.8rem; }
}
