/* FAQ Section — detail page (dark glass theme) */
.faq-section {
  margin-top: 0;
  overflow-anchor: auto;
}
.faq-title {
  font-size: 1.05rem;
  color: var(--text-white);
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 12px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-title::-webkit-details-marker {
  display: none;
}

.faq-title:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.12);
}
.faq-section[open] .faq-title {
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: none;
  list-style: none;
}
.faq-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: var(--accent-purple);
  box-shadow: 0 2px 8px rgba(176, 38, 255, 0.35);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.faq-item {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-white);
  border-left: 4px solid var(--accent-cyan);
  cursor: default;
  display: block;
}
.faq-answer {
  padding: 12px 16px 16px;
  color: var(--text-gray);
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  max-height: none;
  overflow: visible;
}
.faq-answer a {
  color: var(--accent-cyan);
}
.faq-tab-panel .faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}
.faq-tab-panel .faq-item {
  margin-bottom: 0;
}
.faq-tab-panel .faq-answer {
  max-height: none;
  overflow: visible;
}
.faq-section-toggle .fa,
.faq-section-toggle .fa-chevron-right,
.faq-section-toggle i {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border: none;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  background: transparent;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
  font-size: 0 !important;
  line-height: 0 !important;
  overflow: visible;
  box-sizing: border-box;
}
.faq-section-toggle .fa::before,
.faq-section-toggle .fa-chevron-right::before,
.faq-section-toggle i::before {
  display: none !important;
  content: "" !important;
}
.faq-section[open] .faq-section-toggle .fa,
.faq-section[open] .faq-section-toggle .fa-chevron-right,
.faq-section[open] .faq-section-toggle i {
  transform: rotate(45deg);
}
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Game detail metadata */
.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0 0;
  padding: 8px 0;
  border-top: 1px solid var(--ink-rule, rgba(0, 0, 0, 0.12));
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-muted, var(--color-text-muted, #64748b));
}

.detail-facts .game-developer,
.detail-facts .game-publish-date,
.detail-facts .game-update-time {
  margin: 0;
}

.detail-facts + .detail-content-section > h2:first-child,
.detail-facts + .detail-content-section > .detail-split-block:first-child h2,
.detail-facts + .detail-content-sections {
  margin-top: 0;
}

.detail-facts + .detail-content-section > h2:first-child,
.detail-facts + .detail-content-section > .detail-split-block:first-child > h2 {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}
