/* ==========================================================
   CB TALKS — HIGH LUXURY & INTIMATE INTERVIEW AESTHETIC
   ========================================================== */

:root {
  --bg-primary: #0B0B0E;
  --bg-surface: #141418;
  --gold-accent: #C5A880;
  --gold-light: #DFC8A5;
  --cream-text: #FAF5EE;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--cream-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Serif for thought-provoking questions */
.font-serif {
  font-family: 'Amiri', 'Times New Roman', serif;
}

[dir="rtl"] .font-serif,
[dir="rtl"] body {
  font-family: 'Tajawal', 'Amiri', system-ui, sans-serif;
}

[dir="rtl"] .font-display {
  font-family: 'Tajawal', sans-serif;
}

.font-display {
  font-family: 'Cinzel', 'Plus Jakarta Sans', serif;
}

.font-arabic {
  font-family: 'Amiri', 'Tajawal', serif;
}

/* Subtle organic grain overlay */
.ambient-noise {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Perspective for question card interaction */
.perspective-1000 {
  perspective: 1200px;
}

/* Card Transitions & Elevations */
#questionCard {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  will-change: transform, opacity;
}

#questionCard.card-swipe-next {
  transform: translateY(-24px) scale(0.96) rotate(-1deg);
  opacity: 0;
}

#questionCard.card-swipe-prev {
  transform: translateY(24px) scale(0.96) rotate(1deg);
  opacity: 0;
}

#questionCard.card-enter {
  transform: translateY(20px) scale(0.96);
  opacity: 0;
}

/* Fade in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.25s ease-out forwards;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(197, 168, 128, 0.4);
}

/* Toggle Active states for selectors */
.mode-btn.active,
.depth-btn.active,
.length-btn.active {
  border-color: rgba(197, 168, 128, 0.8) !important;
  background-color: rgba(197, 168, 128, 0.12) !important;
  color: #FAF5EE !important;
}

/* Gold shimmer border effect */
.gold-card-hover {
  transition: all 0.25s ease;
}
.gold-card-hover:hover {
  border-color: rgba(197, 168, 128, 0.45);
  box-shadow: 0 10px 30px -10px rgba(197, 168, 128, 0.12);
  transform: translateY(-2px);
}

/* RTL specifics */
[dir="rtl"] #setupBackBtn svg,
[dir="rtl"] #leaveSessionBtn svg,
[dir="rtl"] .back-to-home-btn svg {
  transform: rotate(180deg);
}