/* FAQ Page Specific Styles - CSP Phase 4 Extraction */
/* Extracted from frontend/faq.html inline <style> block (lines 32-213) */
/* Date: 2025-12-23 */

.faq-info {
  margin-top: 2em;
  padding: 1.5em;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.faq-info h3 {
  margin-top: 1em;
  color: #333;
}

.faq-info p {
  margin: 0.5em 0;
  font-size: 0.9em;
}

.faq-info.compact {
  width: 100%;
  max-width: 1120px;
  margin: 1em auto;
  padding: 1em;
  background: #000000;
  border: 1px solid #ffee00;
  border-radius: 15px;
  box-sizing: border-box;
  margin-bottom: 1em;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  color: #fff;
}

.faq-info.compact:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px #ffee00;
}

.faq-info.compact h3 {
  font-size: 1.2em;
  color: #ffee00;
  cursor: pointer;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-info.compact .faq-question {
  cursor: pointer;
  padding: 2.5em 0;
  border-bottom: 1px solid #333;
}

.faq-info.compact .faq-answer {
  padding: 1em 0;
  display: none;
  color: #fff;
  line-height: 1.6;
}

.faq-info.compact .faq-answer section {
  margin: 0 0 0.5em 0;
}

.faq-info.compact .faq-answer.show {
  display: block;
}

.faq-info.compact .toggle-icon {
  color: #ffee00;
  font-size: 1em;
  transition: transform 0.3s;
}

.faq-info.compact .toggle-icon.rotate {
  transform: rotate(180deg);
}

/* ===== TEXT OVERFLOW FIX - Domain Zero Standard ===== */
.faq-info.compact,
.faq-question,
.faq-info.compact .faq-answer,
.faq-info.compact p,
.faq-info.compact li {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

#content {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1em;
}

.fa {
  padding: 10px;
  font-size: 15px;
  width: 25px;
  text-align: center;
  text-decoration: none;
  margin: 5px 2px;
}

.fa:hover {
  opacity: 0.7;
}

/* Black styling for main title and form labels */
header.style1 h2 {
  color: black !important;
}

.form-label,
label[for="searchFAQForm"],
label[for="categoryForm"] {
  color: black !important;
}

/* Hyperlink styling */
a {
  color: white !important;
  text-decoration: underline;
}

a:hover {
  color: #ffee00 !important;
  text-decoration: underline;
}

a:visited {
  color: white !important;
}

a:active {
  color: white !important;
}

/* Keep official source box links blue */
.official-source-box a {
  color: #0066cc !important;
}

/* FAQ answer source links styling */
.faq-answer em a {
  color: white !important;
  text-decoration: underline;
}

.faq-answer em a:hover {
  color: #ffee00 !important;
  text-decoration: underline;
}

/* Fix extra white space at bottom of page */
#footer {
  margin-bottom: 0 !important;
  padding-bottom: 1em !important;
}

#copyright {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#page-wrapper {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Move ads below content when filtering is active */
.filtering-active .native-ad {
  order: 9999;
}

.filtering-active .faq-info.compact {
  order: 1;
}

/* Wrapper for filtering */
.content-wrapper {
  display: flex;
  flex-direction: column; /* Fixed: Stack vertically */
  width: 100%;
}

/* Profile Hub and Support Container styles now in external CSS files */
/* See: styles/profile-hub.css, styles/support-container.css, styles/floating-icons-extended.css */

/* ================================================
   CSP PHASE 4 - INLINE STYLE EXTRACTION
   Added: 2025-12-23
   ================================================ */

/* Official source box - replaces inline style on lines 204-210 */
.official-source-box {
  margin-bottom: 2em;
  padding: 1em;
  background: #f0f8ff;
  border-left: 4px solid #ffee00;
  border-radius: 4px;
}

/* Source text - replaces inline style on line 212 */
.official-source-box .source-text,
.official-source-box p {
  margin: 0;
  font-size: 0.9em;
  color: #333;
}

/* External link in source box - replaces inline style on line 218 */
.official-source-box .external-link,
.official-source-box a {
  color: #0066cc !important;
  text-decoration: underline;
}

