/* ==========================================
   GLOBAL THEME VARIABLES
========================================== */
:root {
  --max-width: 1200px;
  --transition-speed: 0.5s;

  /* Dark mode default */
  --bg: #0b0b0d;
  --card: #0f1114;
  --muted: #9aa4b2;
  --text: #ffffff;
  --accent: #1DA1f2;      /* Sky Blue */
  --accent-2: #ff6b00;    /* Icefame Orange */
  --glass: rgba(255, 255, 255, 0.04);
  --gold: #ffd166;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Light Mode Theme */
html[data-theme='light'] {
  --bg: #fbfcfe;
  --card: #ffffff;
  --text: #0b0b0d;
  --muted: #6b7280;
  --accent: #0066ff;
  --accent-2: #ff6b00;
  --glass: rgba(0, 0, 0, 0.05);
  --gold: #e0b300;
  color-scheme: light;
}

/* Smooth transition for all theme-related elements */
body, header, section, footer, .faq-item, .faq-question, .faq-answer {
  transition:
    background var(--transition-speed) ease,
    color var(--transition-speed) ease,
    border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

/* ==========================================
   BODY + WRAPPER
========================================== */
body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

.wrap {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ==========================================
   FAQ SECTION STYLING
========================================== */
.faq-section {
  padding: 6rem 1rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--card) 100%);
  display: flex;
  justify-content: center;
  transition: background var(--transition-speed) ease;
}

.faq-title {
  font-size: 2.8rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  transition: color var(--transition-speed) ease;
}

.faq-subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ==========================================
   CATEGORY HEADER
========================================== */
.faq-category {
  margin-bottom: 4rem;
}

.faq-category h2 {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-left: 4px solid var(--accent-2);
  padding-left: 0.75rem;
  letter-spacing: 0.3px;
}

/* ==========================================
   FAQ CONTAINER
========================================== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ==========================================
   FAQ ITEM
========================================== */
.faq-item {
  background: var(--card);
  border: 1px solid var(--glass);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background var(--transition-speed) ease;
}

html[data-theme='light'] .faq-item {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-2);
}

/* ==========================================
   QUESTION
========================================== */
.faq-question {
  background: transparent;
  color: var(--text);
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  outline: none;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform 0.3s ease, color 0.3s ease;
}

.faq-question.active::after {
  transform: rotate(45deg);
  color: var(--accent-2);
}

.faq-question:hover {
  color: var(--accent);
}

/* ==========================================
   ANSWER
========================================== */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 1.5rem;
}

html[data-theme='light'] .faq-answer {
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-answer.open {
  padding: 1rem 1.5rem;
}

.faq-answer p {
  color: var(--muted);
  margin: 1rem 0;
  line-height: 1.8;
  font-size: 0.98rem;
}

.faq-question.active + .faq-answer {
  padding: 1rem 1.5rem;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 768px) {
  .faq-title {
    font-size: 2.2rem;
  }

  .faq-subtitle {
    font-size: 1rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-category h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .faq-title {
    font-size: 1.9rem;
  }
}
