/**
 * Guide Page Specific Styles
 * Extracted from inline styles for CSP compliance
 * Created: 2025-12-23 (CSP Phase 4 fix)
 */

/* ============================================
   GUIDE INFO CARDS
   ============================================ */

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

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

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

.guide-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;
  object-fit: cover;
  transition: transform 0.5s, box-shadow 0.5s;
}

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

.guide-info.compact h3 {
  font-size: 1.1em;
  color: #ffee00;
}

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

.guide-info.compact section {
  margin: 0.2em 0;
}

/* ============================================
   CONTENT CONTAINER
   ============================================ */

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

/* Ensure native ads match content width */
#content .native-ad {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

/* ============================================
   FILTERING BEHAVIOR
   ============================================ */

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

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

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

/* ============================================
   INFO CONTAINER
   ============================================ */

.info-container {
  color: #e8e8e8;
  line-height: 1.8;
  font-size: 1.05em;
}

/* ============================================
   STEPS CONTAINER
   ============================================ */

.steps-container {
  margin-top: 1em;
  padding-left: 1.5em;
  color: #e8e8e8;
  line-height: 1.8;
}

/* ============================================
   FONT AWESOME ICON ADJUSTMENTS
   ============================================ */

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

.fa:hover {
  opacity: 0.7;
}

/* ============================================
   LINK STYLING
   ============================================ */

a:active {
  color: #009b3a !important;
}

a:hover {
  color: #ffee00;
}

/* ============================================
   HEADER AND LABEL STYLING
   ============================================ */

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

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

/* ============================================
   ENHANCED TEXT VISIBILITY
   ============================================ */

/* Enhanced text visibility for Category labels in guide content */
.guide-info.compact section strong {
  color: #ffee00 !important;
  font-weight: bold;
}

/* Enhanced readability for all text in compact guide sections */
.guide-info.compact section {
  color: #e8e8e8;
  line-height: 1.8;
  font-size: 1.05em;
}

/* Ensure links are visible */
.guide-info.compact a {
  color: #ffee00;
  text-decoration: underline;
}

.guide-info.compact a:hover {
  color: #28a745;
}

/* Enhanced text visibility for steps container */
.steps-container {
  color: #e8e8e8;
  line-height: 1.8;
}

.steps-container strong {
  color: #ffee00;
  font-weight: bold;
}

.steps-container li {
  margin-bottom: 1em;
  color: #e8e8e8;
}

/* ============================================
   HEADER BACKGROUND IMAGE
   ============================================ */

/* Header background (was inline style) */
.guide-page #header.wrapper,
body.right-sidebar #header.wrapper {
  background-image: url("/assets/images/JAMWRLD_3840x1200_crisp.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   LOADING SPINNER
   ============================================ */

.loading-spinner {
  padding: 2rem;
  text-align: center;
}

.loading-spinner p {
  color: #ffee00;
  font-size: 1.2em;
}

