/* ==========================================================================
   Project OmniCalc - SEO In-Depth Guides, Formula Cards & FAQ Accordions
   Crucial for Google SEO Indexing & Google AdSense Value Verification
   ========================================================================== */

.content-guide-section {
  max-width: 820px;
  margin: 3.5rem auto 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.content-guide-header {
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
}

.content-guide-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.content-guide-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.guide-block {
  margin-bottom: 2.5rem;
}

.guide-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-block p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* Formula Highlight Box */
.formula-card {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--accent-primary-light));
  border-left: 4px solid var(--accent-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}

.formula-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.formula-math {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Real-world Examples Grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.example-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all var(--transition-fast);
}

.example-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.example-badge {
  display: inline-block;
  padding: 3px 8px;
  background-color: var(--accent-primary-light);
  color: var(--accent-primary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.example-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.example-body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Alert / Tip Callouts */
.callout-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  font-size: 0.925rem;
  line-height: 1.6;
}

.callout-tip {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--text-primary);
}
.callout-tip .callout-icon {
  color: var(--accent-green);
  font-size: 1.25rem;
}

.callout-info {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--text-primary);
}
.callout-info .callout-icon {
  color: var(--accent-blue);
  font-size: 1.25rem;
}

/* FAQ Accordion Component */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--accent-primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-icon-arrow {
  font-size: 0.9rem;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.3s ease-in-out;
  padding: 0 1.25rem 1.25rem;
}

@media (max-width: 768px) {
  .content-guide-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  .content-guide-header h2 {
    font-size: 1.35rem;
  }
}
