/* ==========================================================================
   BRODRIA - LANDING PAGE IDÉES DE PRÉNOMS (DESIGN SYSTEM BURGUNDY LUXURY)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Aref+Ruqaa:wght@400;700&family=Katibeh&family=Marhey:wght@500;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Montserrat:wght@400;600;700;800&family=Tajawal:wght@400;500;700&display=swap');

:root {
  --primary-color: #7a1c31;        /* Luxury Burgundy */
  --primary-hover: #591222;
  --accent-gold: #cfa856;          /* Or Étoilé */
  --bg-color: #fcfaf7;             /* Fond Lin Écru */
  --card-bg: #ffffff;
  --text-main: #1f2733;
  --text-muted: #6b7582;
  --border-color: #ebdccb;
  --shadow-sm: 0 4px 15px rgba(122, 28, 49, 0.06);
  --shadow-lg: 0 14px 35px rgba(122, 28, 49, 0.14);
  --radius-lg: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-ui: 'Tajawal', 'Montserrat', sans-serif;
  --font-heading: 'Tajawal', 'Playfair Display', serif;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden !important;
  font-family: var(--font-ui);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

main.container {
  flex: 1 0 auto;
}

/* HEADER WITH NON-CLICKABLE LOGO BRODRIA */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo-static {
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: default;
}

.brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--primary-color);
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.65rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

.lang-btn {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  color: var(--primary-color);
  white-space: nowrap !important;
}

.lang-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* BUTTONS WITH MANDATORY WHITE-SPACE NOWRAP */
.btn-primary {
  background: var(--primary-color);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(122, 28, 49, 0.3);
  transition: var(--transition);
  white-space: nowrap !important;
  word-break: keep-all !important;
  max-width: 100%;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap !important;
  word-break: keep-all !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-block {
  width: 100%;
}

/* QUIZ STYLES */
.quiz-container {
  max-width: 760px;
  margin: 30px auto;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 35px;
}

.quiz-progress-bar {
  height: 8px;
  background: #f0ebe6;
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--primary-color);
  width: 33%;
  transition: var(--transition);
}

.question-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-align: center;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 30px;
}

.option-card {
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  background: var(--bg-color);
}

.option-card:hover, .option-card.selected {
  border-color: var(--primary-color);
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.option-card.selected {
  border-width: 2px;
  background: rgba(122, 28, 49, 0.05);
}

.option-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.option-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.98rem;
}

.option-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

.name-result-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  gap: 20px;
  align-items: center;
}

.name-result-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.name-header-box {
  text-align: center;
  background: var(--bg-color);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.name-ar {
  font-family: 'Aref Ruqaa', serif;
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

.name-fr {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

.name-origin-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(122, 28, 49, 0.1);
  padding: 3px 10px;
  border-radius: 10px;
  margin-top: 6px;
  white-space: nowrap !important;
}

.name-meaning-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

.name-quran-ref {
  font-size: 0.82rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FOOTER MINIMAL STATIC 100VH ANCHORED */
.footer-minimal {
  background: #19090d;
  color: #d4b5bc;
  padding: 30px 0;
  margin-top: auto;
  text-align: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
  .name-result-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
