/* ═══════════════════════════════════════════════════
   L'ORACLE — Question & réponse cosmique
   V2 Xtract design system — glass cards, layered shadows
   ═══════════════════════════════════════════════════ */

/* ── CATEGORIES ── */
.cats{
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 80px 24px 0;
  position: sticky;
  top: 54px;
  z-index: 5;
  background: linear-gradient(var(--bg) 70%, transparent);
  padding-bottom: 24px;
}

.cat{
  text-align: center;
  padding: 16px 24px;
  cursor: pointer;
  border-radius: 6px;
  background: rgba(13,13,13,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s var(--ease);
}

.cat:hover{
  border-color: #333;
  background: rgba(20,20,20,0.8);
}

.cat.active{
  border-color: var(--accent);
  background: rgba(129,74,200,0.06);
  box-shadow: 0 0 30px rgba(129,74,200,0.08);
}

.cat-icon{
  font-size: 22px;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.3);
  transition: color 0.2s;
}

.cat.active .cat-icon{ color: var(--accent-light); }
.cat:hover .cat-icon{ color: rgba(255,255,255,0.6); }

.cat-label{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.cat.active .cat-label{ color: var(--accent-light); }

/* ── QUESTIONS ── */
.questions{
  flex: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px 160px;
  gap: 16px;
  min-height: 50vh;
}

.question{
  width: 100%;
  max-width: 480px;
  padding: 20px 24px;
  background: rgba(13,13,13,0.8);
  border: 1px solid #222;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  opacity: 0;
  animation: fadeQ 0.5s ease forwards;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.question:hover{
  color: #fff;
  border-color: #444;
  background: rgba(20,20,20,0.9);
  transform: translateY(-2px);
  box-shadow:
    0 1px 3px rgba(0,0,0,0.2),
    0 0 40px rgba(129,74,200,0.06);
}

@keyframes fadeQ{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: none; }
}

/* ── ASK BAR ── */
.ask-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ask-row{
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
}

.ask-input{
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  letter-spacing: -0.02em;
  transition: all 0.2s var(--ease);
}

.ask-input:focus{
  border-color: var(--accent);
  background: rgba(129,74,200,0.04);
  outline: none;
  box-shadow: 0 0 0 3px rgba(129,74,200,0.1);
}

.ask-input::placeholder{
  color: rgba(255,255,255,0.25);
}

.ask-btn{
  background: var(--accent);
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.ask-btn:hover{
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(129,74,200,0.25);
}

/* ── ANSWER OVERLAY ── */
.answer-overlay{
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 300;
  background: var(--bg);
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.answer-overlay.open{ transform: translateY(0); }

.answer-inner{
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  padding: 32px 40px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Question card */
.answer-card{
  background: rgba(13,13,13,0.8);
  border: 1px solid #222;
  border-radius: 8px;
  padding: 32px 28px;
  margin-top: 48px;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.04),
    0 2px 8px rgba(0,0,0,0.3);
}

.answer-asked{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
  text-align: center;
}

.answer-q{
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.04em;
  color: #fff;
  text-align: center;
  line-height: 1.2;
  font-weight: 400;
}

/* Transit card */
.answer-transit{
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(13,13,13,0.8);
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.answer-transit-img{
  background: rgba(129,74,200,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  min-height: 130px;
  color: var(--accent-light);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.answer-transit-text{
  padding: 24px;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  text-align: center;
}

/* Answer body */
.answer-body{
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  letter-spacing: -0.02em;
  padding: 28px;
  background: rgba(13,13,13,0.8);
  border: 1px solid #222;
  border-radius: 8px;
  margin-bottom: 16px;
}

.answer-body p{ margin-bottom: 16px; }
.answer-body p:last-child{ margin-bottom: 0; }

/* Feedback */
.answer-feedback{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(13,13,13,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  margin-bottom: 16px;
}

.answer-fb-label{
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.35);
  flex: 1;
}

.answer-fb-btn{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 16px;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s var(--ease);
}

.answer-fb-btn:hover{
  background: rgba(255,255,255,0.08);
  border-color: #444;
}

/* Dismiss */
.answer-dismiss{
  text-align: center;
  margin-top: auto;
  padding: 40px 0 32px;
}

.answer-dismiss button{
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 36px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s var(--ease);
}

.answer-dismiss button:hover{
  color: #fff;
  border-color: #444;
  background: rgba(255,255,255,0.06);
}

/* ── RESPONSIVE ── */
@media(max-width: 768px){
  .cat{ padding: 12px 18px; }
  .questions{ padding: 40px 24px 160px; }
  .answer-inner{ padding: 24px; }
  .answer-card{ padding: 24px 20px; margin-top: 32px; }
  .answer-body{ padding: 20px; }
}

@media(max-width: 480px){
  .cats{ gap: 4px; }
  .cat{ padding: 10px 14px; }
  .cat-icon{ font-size: 18px; }
  .cat-label{ font-size: 10px; }
  .question{ padding: 16px 20px; font-size: 14px; }
  .answer-transit{ grid-template-columns: 1fr; }
  .answer-transit-img{ min-height: 80px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
}
