/**
 * SEO-specific styles for whealth Blog Theme
 * Includes breadcrumbs, structured data display, and other SEO enhancements
 */

/* ===================================
   BREADCRUMB NAVIGATION
   =================================== */

/* Main breadcrumb container */
.breadcrumbs {
  margin-bottom: 2rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Breadcrumb list */
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

/* Individual breadcrumb list items */
.breadcrumb-list-item {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

/* Breadcrumb item wrapper */
.breadcrumb-item {
  display: inline-block;
}

/* Breadcrumb links */
.breadcrumb-item a {
  color: #003366;
  /* var(--primary-500) */
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.breadcrumb-item a:hover {
  color: #28a745;
  /* var(--primary-600) */
}

/* Animated underline on hover */
.breadcrumb-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #28a745;
  /* var(--primary-600) */
  transition: width 0.3s ease;
}

.breadcrumb-item a:hover::after {
  width: 100%;
}

/* Current page (non-clickable) */
.breadcrumb-current {
  color: #6b7280;
  /* var(--gray-600) */
  font-weight: 500;
}

/* Breadcrumb separator */
.breadcrumb-separator {
  color: #9ca3af;
  /* var(--gray-400) */
  user-select: none;
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

/* ===================================
   BREADCRUMB RESPONSIVE DESIGN
   =================================== */

@media (max-width: 767px) {
  .breadcrumbs {
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
  }

  .breadcrumb-list {
    gap: 0.375rem;
  }

  /* Truncate long current page titles on mobile */
  .breadcrumb-current {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {

  /* Further reduce spacing on very small screens */
  .breadcrumbs {
    margin-bottom: 1rem;
  }

  .breadcrumb-current {
    max-width: 150px;
  }
}

/* ===================================
   BREADCRUMB ACCESSIBILITY
   =================================== */

/* Ensure proper focus styles for keyboard navigation */
.breadcrumb-item a:focus {
  outline: 2px solid #003366;
  outline-offset: 2px;
  border-radius: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .breadcrumb-item a {
    text-decoration: underline;
  }

  .breadcrumb-separator {
    font-weight: bold;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .breadcrumb-item a,
  .breadcrumb-item a::after {
    transition: none;
  }
}

/* ===================================
   SEO DEBUG INFO (Development only)
   =================================== */

.seo-debug-info {
  background: #f3f4f6;
  /* var(--gray-100) */
  border: 1px solid #d1d5db;
  /* var(--gray-300) */
  border-radius: 0.375rem;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.875rem;
  color: #374151;
  /* var(--gray-700) */
  font-family: 'Courier New', monospace;
}

.seo-debug-info strong {
  color: #003366;
  /* var(--primary-700) */
}

/* ===================================
   STRUCTURED DATA DISPLAY
   =================================== */

/* Container for structured data preview (if needed) */
.structured-data-preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2rem 0;
  font-size: 0.875rem;
}

.structured-data-preview h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #003366;
}

.structured-data-preview pre {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
}



/* ===================================
   YOAST SEO COMPATIBILITY
   =================================== */

/* Yoast breadcrumb compatibility */
.yoast-breadcrumbs,
#breadcrumbs {
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

/* Screen reader text for SEO plugins */
.screen-reader-text,
.yoast-seo-screen-reader-text,
.sr-only {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {

  /* Show breadcrumbs in print */
  .breadcrumbs {
    margin-bottom: 1rem;
  }

  /* Remove hover effects in print */
  .breadcrumb-item a::after {
    display: none;
  }

  /* Show URLs after links in print */
  .breadcrumb-item a::before {
    content: attr(href);
    display: none;
    /* Optional: show URLs */
  }
}

/* ===================================
   DARK MODE SUPPORT (Future enhancement)
   =================================== */

@media (prefers-color-scheme: dark) {

  /* Adjust breadcrumb colors for dark mode */


  .breadcrumb-item a {
    color: #74cac5;
    /* Lighter primary color for dark mode */
  }

  .breadcrumb-item a:hover {
    color: #a2dcd9;
  }

  .breadcrumb-current {
    color: #d1d5db;
  }

  .breadcrumb-separator {
    color: #6b7280;
  }
}

/* ===================================
   UTILITY CLASSES FOR SEO
   =================================== */

/* Hide elements visually but keep them for SEO/screen readers */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* SEO-friendly image wrapper */
.seo-image-wrapper {
  position: relative;
  display: block;
}



/* ===================================
   BREADCRUMB VARIATIONS
   =================================== */

/* Compact breadcrumb variant */
.breadcrumbs.breadcrumbs-compact {
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}

.breadcrumbs-compact .breadcrumb-list {
  gap: 0.25rem;
}

/* Breadcrumb with background */
.breadcrumbs.breadcrumbs-boxed {
  background: #f9fafb;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

/* Breadcrumb with separator icons */
.breadcrumb-separator.separator-icon::before {
  content: '›';
  font-size: 1.125rem;
  line-height: 1;
}

/* ===================================
   FAQ SECTION
   =================================== */

/* FAQ Section Container */
.faq-section {
  background-color: #F8F9FA;
  border-radius: 1rem;
  padding: 5rem 0;
  margin: 3rem 0;
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #003366, #28a745, #003366);
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* FAQ Title */
.faq-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.faq-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #003366, #004080);
  border-radius: 2px;
}

.faq-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual FAQ Item */
.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  border-color: #003366;
  box-shadow: 0 4px 12px rgba(36, 141, 136, 0.1);
  transform: translateY(-2px);
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #1f2937;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  color: #003366;
  background: #f9fafb;
}

.faq-question:focus {
  outline: 2px solid #003366;
  outline-offset: -2px;
  border-radius: 0.75rem;
}

.faq-question span {
  flex: 1;
  padding-right: 1rem;
  line-height: 1.5;
}

/* FAQ Icon */
.faq-icon {
  flex-shrink: 0;
  color: #003366;
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
}

.faq-question.active .faq-icon {
  transform: rotate(180deg);
}

.faq-question:hover .faq-icon {
  color: #28a745;
}

/* FAQ Answer */
.faq-answer {
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-answer-content p {
  margin: 0 0 1rem 0;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

/* ===================================
   FAQ RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
  .faq-section {
    padding: 2rem 0;
    margin: 2rem 0;
    border-radius: 0.75rem;
  }

  .faq-container {
    padding: 0 1rem;
  }

  .faq-title {
    font-size: 1.625rem;
  }

  .faq-subtitle {
    font-size: 0.9375rem;
    margin-bottom: 2rem;
  }

  .faq-question {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .faq-answer-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: 0.875rem;
  }

  .faq-item:hover {
    transform: none;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
  }

  .faq-title {
    font-size: 1.375rem;
  }

  .faq-subtitle {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .faq-question {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .faq-question span {
    padding-right: 0.75rem;
  }

  .faq-icon {
    width: 20px;
    height: 20px;
  }

  .faq-answer-content {
    padding: 0 1rem 1rem 1rem;
  }

  .faq-list {
    gap: 0.75rem;
  }
}

/* ===================================
   FAQ ACCESSIBILITY
   =================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
  .faq-item {
    border-width: 2px;
    border-color: #000;
  }

  .faq-question {
    font-weight: 700;
  }

  .faq-question:focus {
    outline-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  .faq-item,
  .faq-question,
  .faq-icon,
  .faq-answer,
  .faq-answer-content {
    transition: none;
    animation: none;
  }

  .faq-item:hover {
    transform: none;
  }

  .faq-question.active .faq-icon {
    transform: none;
  }
}

/* Focus visible for better keyboard navigation */
.faq-question:focus-visible {
  outline: 3px solid #003366;
  outline-offset: 2px;
}

/* ===================================
   FAQ PRINT STYLES
   =================================== */

@media print {
  .faq-section {
    background: none;
    padding: 1rem 0;
    page-break-inside: avoid;
  }

  .faq-section::before {
    display: none;
  }

  .faq-item {
    border: 1px solid #000;
    page-break-inside: avoid;
    margin-bottom: 1rem;
  }

  .faq-question {
    padding: 0.75rem;
  }

  .faq-icon {
    display: none;
  }

  .faq-answer {
    display: block !important;
  }

  .faq-answer[hidden] {
    display: block !important;
  }

  .faq-answer-content {
    padding: 0.75rem;
  }
}

/* ===================================
   FAQ DARK MODE SUPPORT
   =================================== */

@media (prefers-color-scheme: dark) {
  .faq-section {
    background-color: #F8F9FA;
  }

  .faq-title {
    color: #000000;
  }

  .faq-subtitle {
    color: #4D4D4D;
  }

  .faq-item {
    background: #ffffff;
    border-color: #e5e7eb;
  }

  .faq-question {
    color: #000000;
  }

  .faq-answer-content {
    color: #4D4D4D;
  }
}

/* ===================================
   FAQ ANIMATIONS & INTERACTIONS
   =================================== */

/* Pulse animation for attention */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* Add subtle animation on first load */
.faq-item:nth-child(1) {
  animation: fadeInUp 0.4s ease 0.1s both;
}

.faq-item:nth-child(2) {
  animation: fadeInUp 0.4s ease 0.2s both;
}

.faq-item:nth-child(3) {
  animation: fadeInUp 0.4s ease 0.3s both;
}

.faq-item:nth-child(4) {
  animation: fadeInUp 0.4s ease 0.4s both;
}

.faq-item:nth-child(5) {
  animation: fadeInUp 0.4s ease 0.5s both;
}

.faq-item:nth-child(n+6) {
  animation: fadeInUp 0.4s ease 0.6s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Disable animations on reduced motion */
@media (prefers-reduced-motion: reduce) {
  .faq-item {
    animation: none !important;
  }
}

/* ===================================
   FAQ SEO ENHANCEMENTS
   =================================== */

/* Ensure FAQ content is indexable */
.faq-answer-content {
  /* Content is visible to search engines even when collapsed */
  visibility: visible;
}

/* Structured data is now handled via JSON-LD schema only */