/**
 * Exercise Comparison Plugin Styles
 *
 * A clean, modern stylesheet for comparing exercises.
 * All selectors prefixed with .excomp- to avoid theme conflicts.
 */

/* ==========================================================================
   CSS Custom Properties
   ========================================================================== */

:root {
  /* Colors */
  --excomp-primary: #f97316;
  --excomp-primary-hover: #ea580c;
  --excomp-primary-light: #fff7ed;
  --excomp-secondary: #3b82f6;
  --excomp-secondary-hover: #2563eb;
  --excomp-secondary-light: #eff6ff;

  /* Neutrals */
  --excomp-bg: #fafaf9;
  --excomp-bg-card: #ffffff;
  --excomp-text: #1c1917;
  --excomp-text-muted: #78716c;
  --excomp-text-light: #a8a29e;
  --excomp-border: #e7e5e4;
  --excomp-border-light: #f5f5f4;

  /* Shadows */
  --excomp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --excomp-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --excomp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --excomp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Spacing */
  --excomp-spacing-xs: 0.25rem;
  --excomp-spacing-sm: 0.5rem;
  --excomp-spacing-md: 1rem;
  --excomp-spacing-lg: 1.5rem;
  --excomp-spacing-xl: 2rem;
  --excomp-spacing-2xl: 3rem;

  /* Border Radius */
  --excomp-radius-sm: 0.375rem;
  --excomp-radius: 0.5rem;
  --excomp-radius-lg: 1rem;
  --excomp-radius-full: 9999px;

  /* Typography */
  --excomp-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --excomp-font-size-sm: 0.875rem;
  --excomp-font-size-base: 1rem;
  --excomp-font-size-lg: 1.125rem;
  --excomp-font-size-xl: 1.25rem;
  --excomp-font-size-2xl: 1.5rem;
  --excomp-font-size-3xl: 2rem;
  --excomp-font-size-4xl: 2.5rem;

  /* Transitions */
  --excomp-transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --excomp-transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --excomp-max-width: 1200px;
  --excomp-content-width: 800px;
}

/* ==========================================================================
   Base & Reset (scoped)
   ========================================================================== */

.excomp-hub,
.excomp-comparison {
  font-family: var(--excomp-font);
  font-size: var(--excomp-font-size-base);
  line-height: 1.6;
  color: var(--excomp-text);
  background-color: var(--excomp-bg);
  box-sizing: border-box;
}

.excomp-hub *,
.excomp-comparison * {
  box-sizing: border-box;
}

/* ==========================================================================
   Shared Components
   ========================================================================== */

/* Container */
.excomp-container {
  max-width: var(--excomp-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--excomp-spacing-md);
  padding-right: var(--excomp-spacing-md);
}

@media (min-width: 640px) {
  .excomp-container {
    padding-left: var(--excomp-spacing-lg);
    padding-right: var(--excomp-spacing-lg);
  }
}

/* Section */
.excomp-section {
  padding-top: var(--excomp-spacing-xl);
  padding-bottom: var(--excomp-spacing-xl);
}

@media (min-width: 768px) {
  .excomp-section {
    padding-top: var(--excomp-spacing-2xl);
    padding-bottom: var(--excomp-spacing-2xl);
  }
}

/* Buttons */
.excomp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--excomp-spacing-sm);
  padding: var(--excomp-spacing-sm) var(--excomp-spacing-lg);
  font-family: var(--excomp-font);
  font-size: var(--excomp-font-size-base);
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border: none;
  border-radius: var(--excomp-radius);
  cursor: pointer;
  transition: all var(--excomp-transition);
}

.excomp-btn:focus {
  outline: 2px solid var(--excomp-primary);
  outline-offset: 2px;
}

.excomp-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.excomp-btn--primary {
  background-color: var(--excomp-primary);
  color: #ffffff;
}

.excomp-btn--primary:hover:not(:disabled) {
  background-color: var(--excomp-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--excomp-shadow-md);
}

.excomp-btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.excomp-btn--secondary {
  background-color: var(--excomp-secondary);
  color: #ffffff;
}

.excomp-btn--secondary:hover:not(:disabled) {
  background-color: var(--excomp-secondary-hover);
  transform: translateY(-1px);
  box-shadow: var(--excomp-shadow-md);
}

.excomp-btn--outline {
  background-color: transparent;
  color: var(--excomp-text);
  border: 1px solid var(--excomp-border);
}

.excomp-btn--outline:hover:not(:disabled) {
  background-color: var(--excomp-bg);
  border-color: var(--excomp-text-muted);
}

.excomp-btn--lg {
  padding: var(--excomp-spacing-md) var(--excomp-spacing-xl);
  font-size: var(--excomp-font-size-lg);
}

/* Badge */
.excomp-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--excomp-spacing-xs) var(--excomp-spacing-sm);
  font-size: var(--excomp-font-size-sm);
  font-weight: 500;
  line-height: 1;
  border-radius: var(--excomp-radius-full);
  background-color: var(--excomp-border-light);
  color: var(--excomp-text-muted);
}

.excomp-badge--primary {
  background-color: var(--excomp-primary-light);
  color: var(--excomp-primary);
}

.excomp-badge--secondary {
  background-color: var(--excomp-secondary-light);
  color: var(--excomp-secondary);
}

/* Loading Spinner */
.excomp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--excomp-spacing-xl);
}

.excomp-loading::after {
  content: "";
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--excomp-border);
  border-top-color: var(--excomp-primary);
  border-radius: 50%;
  animation: excomp-spin 0.8s linear infinite;
}

@keyframes excomp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Hub Page - Search Section
   ========================================================================== */

.excomp-hub {
  min-height: 100vh;
  padding-bottom: var(--excomp-spacing-2xl);
}

.excomp-search-section {
  background: linear-gradient(135deg, var(--excomp-primary) 0%, var(--excomp-primary-hover) 100%);
  padding: var(--excomp-spacing-2xl) var(--excomp-spacing-md);
  text-align: center;
}

.excomp-search-section h1 {
  color: #ffffff;
  font-size: var(--excomp-font-size-3xl);
  font-weight: 700;
  margin: 0 0 var(--excomp-spacing-sm) 0;
}

@media (min-width: 768px) {
  .excomp-search-section h1 {
    font-size: var(--excomp-font-size-4xl);
  }
}

.excomp-search-section p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--excomp-font-size-lg);
  margin: 0 0 var(--excomp-spacing-xl) 0;
}

.excomp-search-form {
  display: flex;
  flex-direction: column;
  gap: var(--excomp-spacing-md);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .excomp-search-form {
    flex-direction: row;
    align-items: flex-start;
  }
}

.excomp-search-field {
  flex: 1;
  position: relative;
}

.excomp-search-input {
  width: 100%;
  padding: var(--excomp-spacing-md) var(--excomp-spacing-lg);
  font-family: var(--excomp-font);
  font-size: var(--excomp-font-size-base);
  border: 2px solid transparent;
  border-radius: var(--excomp-radius-lg);
  background-color: #ffffff;
  box-shadow: var(--excomp-shadow-lg);
  transition: all var(--excomp-transition);
}

.excomp-search-input::placeholder {
  color: var(--excomp-text-light);
}

.excomp-search-input:focus {
  outline: none;
  border-color: var(--excomp-secondary);
  box-shadow: var(--excomp-shadow-lg), 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Search Results Dropdown */
.excomp-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: var(--excomp-spacing-xs);
  background-color: var(--excomp-bg-card);
  border-radius: var(--excomp-radius);
  box-shadow: var(--excomp-shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.excomp-search-results.is-active {
  display: block;
}

.excomp-search-item {
  display: flex;
  align-items: center;
  gap: var(--excomp-spacing-sm);
  padding: var(--excomp-spacing-sm) var(--excomp-spacing-md);
  cursor: pointer;
  transition: background-color var(--excomp-transition);
  text-align: left;
  border-bottom: 1px solid var(--excomp-border-light);
}

.excomp-search-item:last-child {
  border-bottom: none;
}

.excomp-search-item:hover,
.excomp-search-item.is-highlighted {
  background-color: var(--excomp-primary-light);
}

.excomp-search-item-name {
  font-weight: 500;
  color: var(--excomp-text);
}

.excomp-search-item-meta {
  font-size: var(--excomp-font-size-sm);
  color: var(--excomp-text-muted);
}

/* Selected Exercise Display */
.excomp-selected-exercise {
  display: flex;
  align-items: center;
  gap: var(--excomp-spacing-sm);
  padding: var(--excomp-spacing-sm) var(--excomp-spacing-md);
  background-color: var(--excomp-primary-light);
  border: 2px solid var(--excomp-primary);
  border-radius: var(--excomp-radius);
  font-weight: 500;
}

.excomp-selected-exercise .excomp-remove {
  margin-left: auto;
  padding: var(--excomp-spacing-xs);
  background: none;
  border: none;
  color: var(--excomp-text-muted);
  cursor: pointer;
  line-height: 1;
  font-size: 1.25rem;
}

.excomp-selected-exercise .excomp-remove:hover {
  color: var(--excomp-primary);
}

/* VS Divider */
.excomp-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: #ffffff;
  border-radius: 50%;
  font-weight: 700;
  color: var(--excomp-text-muted);
  box-shadow: var(--excomp-shadow);
  flex-shrink: 0;
}

/* Compare Button */
.excomp-compare-btn {
  width: 100%;
}

@media (min-width: 640px) {
  .excomp-compare-btn {
    width: auto;
  }
}

/* ==========================================================================
   Hub Page - Popular Comparisons
   ========================================================================== */

.excomp-popular-section {
  padding: var(--excomp-spacing-2xl) var(--excomp-spacing-md);
}

.excomp-popular-section h2 {
  font-size: var(--excomp-font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin: 0 0 var(--excomp-spacing-xl) 0;
  color: var(--excomp-text);
}

.excomp-popular-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--excomp-spacing-md);
  max-width: var(--excomp-max-width);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .excomp-popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .excomp-popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.excomp-popular-card {
  display: flex;
  flex-direction: column;
  padding: var(--excomp-spacing-lg);
  background-color: var(--excomp-bg-card);
  border-radius: var(--excomp-radius-lg);
  box-shadow: var(--excomp-shadow);
  text-decoration: none;
  color: inherit;
  transition: all var(--excomp-transition);
  border: 1px solid var(--excomp-border-light);
}

.excomp-popular-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--excomp-shadow-lg);
  border-color: var(--excomp-primary);
}

.excomp-popular-card-title {
  font-size: var(--excomp-font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--excomp-spacing-sm) 0;
  color: var(--excomp-text);
}

.excomp-popular-card-meta {
  display: flex;
  gap: var(--excomp-spacing-sm);
  flex-wrap: wrap;
  margin-top: auto;
}

/* ==========================================================================
   Comparison Page
   ========================================================================== */

.excomp-comparison {
  min-height: 100vh;
}

/* Header */
.excomp-header {
  background: linear-gradient(135deg, var(--excomp-primary) 0%, var(--excomp-primary-hover) 100%);
  padding: var(--excomp-spacing-xl) var(--excomp-spacing-md);
  text-align: center;
}

.excomp-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--excomp-spacing-sm);
  margin-bottom: var(--excomp-spacing-md);
  font-size: var(--excomp-font-size-sm);
}

.excomp-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.excomp-breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.excomp-breadcrumb span {
  color: rgba(255, 255, 255, 0.6);
}

.excomp-title {
  font-size: var(--excomp-font-size-2xl);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .excomp-title {
    font-size: var(--excomp-font-size-4xl);
  }
}

.excomp-title .excomp-vs-inline {
  display: inline-block;
  padding: 0 var(--excomp-spacing-sm);
  font-size: 0.7em;
  opacity: 0.8;
  font-weight: 400;
}

/* Exercise Cards Container */
.excomp-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--excomp-spacing-lg);
  padding: var(--excomp-spacing-xl) var(--excomp-spacing-md);
  max-width: var(--excomp-max-width);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .excomp-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--excomp-spacing-xl);
  }
}

/* Individual Exercise Card */
.excomp-card {
  background-color: var(--excomp-bg-card);
  border-radius: var(--excomp-radius-lg);
  box-shadow: var(--excomp-shadow-md);
  overflow: hidden;
  border-top: 4px solid var(--excomp-border);
}

.excomp-card--primary {
  border-top-color: var(--excomp-primary);
}

.excomp-card--secondary {
  border-top-color: var(--excomp-secondary);
}

.excomp-card-header {
  padding: var(--excomp-spacing-lg);
  border-bottom: 1px solid var(--excomp-border-light);
}

.excomp-card-title {
  font-size: var(--excomp-font-size-xl);
  font-weight: 700;
  margin: 0 0 var(--excomp-spacing-sm) 0;
  color: var(--excomp-text);
}

.excomp-card--primary .excomp-card-title {
  color: var(--excomp-primary-hover);
}

.excomp-card--secondary .excomp-card-title {
  color: var(--excomp-secondary-hover);
}

.excomp-card-body {
  padding: var(--excomp-spacing-lg);
}

/* Card Meta Info */
.excomp-card-meta {
  display: flex;
  flex-direction: column;
  gap: var(--excomp-spacing-sm);
}

.excomp-meta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--excomp-spacing-sm);
  padding: var(--excomp-spacing-sm) 0;
  border-bottom: 1px solid var(--excomp-border-light);
}

.excomp-meta-item:last-child {
  border-bottom: none;
}

.excomp-meta-label {
  flex-shrink: 0;
  width: 100px;
  font-size: var(--excomp-font-size-sm);
  font-weight: 600;
  color: var(--excomp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.excomp-meta-value {
  flex: 1;
  font-size: var(--excomp-font-size-base);
  color: var(--excomp-text);
}

/* Card Image */
.excomp-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--excomp-border-light);
}

/* ==========================================================================
   Instructions Section
   ========================================================================== */

.excomp-instructions {
  padding: var(--excomp-spacing-xl) var(--excomp-spacing-md);
  max-width: var(--excomp-content-width);
  margin: 0 auto;
}

.excomp-instructions h2 {
  font-size: var(--excomp-font-size-2xl);
  font-weight: 700;
  margin: 0 0 var(--excomp-spacing-lg) 0;
  color: var(--excomp-text);
}

.excomp-instructions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--excomp-spacing-xl);
}

@media (min-width: 768px) {
  .excomp-instructions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.excomp-instructions-card {
  background-color: var(--excomp-bg-card);
  border-radius: var(--excomp-radius-lg);
  padding: var(--excomp-spacing-lg);
  box-shadow: var(--excomp-shadow-sm);
  border: 1px solid var(--excomp-border-light);
}

.excomp-instructions-card h3 {
  font-size: var(--excomp-font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--excomp-spacing-md) 0;
  color: var(--excomp-text);
}

.excomp-instructions-card ol {
  margin: 0;
  padding-left: var(--excomp-spacing-lg);
  counter-reset: step;
  list-style: none;
}

.excomp-instructions-card li {
  position: relative;
  padding: var(--excomp-spacing-sm) 0;
  padding-left: var(--excomp-spacing-lg);
  color: var(--excomp-text);
  line-height: 1.6;
}

.excomp-instructions-card li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 0;
  top: var(--excomp-spacing-sm);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--excomp-primary-light);
  color: var(--excomp-primary);
  font-size: var(--excomp-font-size-sm);
  font-weight: 600;
  border-radius: 50%;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.excomp-faq {
  padding: var(--excomp-spacing-xl) var(--excomp-spacing-md);
  background-color: var(--excomp-bg-card);
  max-width: var(--excomp-content-width);
  margin: 0 auto var(--excomp-spacing-xl);
  border-radius: var(--excomp-radius-lg);
  box-shadow: var(--excomp-shadow-sm);
}

.excomp-faq h2 {
  font-size: var(--excomp-font-size-2xl);
  font-weight: 700;
  margin: 0 0 var(--excomp-spacing-lg) 0;
  color: var(--excomp-text);
}

.excomp-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--excomp-spacing-md);
}

.excomp-faq-item {
  border-bottom: 1px solid var(--excomp-border-light);
  padding-bottom: var(--excomp-spacing-md);
}

.excomp-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.excomp-faq-question {
  font-size: var(--excomp-font-size-lg);
  font-weight: 600;
  margin: 0 0 var(--excomp-spacing-sm) 0;
  color: var(--excomp-text);
}

.excomp-faq-answer {
  font-size: var(--excomp-font-size-base);
  color: var(--excomp-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Collapsible FAQ (optional enhancement) */
.excomp-faq-item.is-collapsible .excomp-faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.excomp-faq-item.is-collapsible .excomp-faq-question::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--excomp-text-muted);
  transition: transform var(--excomp-transition);
}

.excomp-faq-item.is-collapsible.is-open .excomp-faq-question::after {
  content: "-";
}

.excomp-faq-item.is-collapsible .excomp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--excomp-transition-slow);
}

.excomp-faq-item.is-collapsible.is-open .excomp-faq-answer {
  max-height: 500px;
}

/* ==========================================================================
   Related Comparisons Section
   ========================================================================== */

.excomp-related {
  padding: var(--excomp-spacing-xl) var(--excomp-spacing-md);
  background-color: var(--excomp-border-light);
}

.excomp-related h2 {
  font-size: var(--excomp-font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin: 0 0 var(--excomp-spacing-xl) 0;
  color: var(--excomp-text);
}

.excomp-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--excomp-spacing-md);
  max-width: var(--excomp-max-width);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .excomp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .excomp-related-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.excomp-related-card {
  display: block;
  padding: var(--excomp-spacing-md);
  background-color: var(--excomp-bg-card);
  border-radius: var(--excomp-radius);
  box-shadow: var(--excomp-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all var(--excomp-transition);
  text-align: center;
}

.excomp-related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--excomp-shadow-md);
}

.excomp-related-card-title {
  font-size: var(--excomp-font-size-base);
  font-weight: 600;
  margin: 0;
  color: var(--excomp-text);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.excomp-text-center {
  text-align: center;
}

.excomp-text-muted {
  color: var(--excomp-text-muted);
}

.excomp-mt-sm {
  margin-top: var(--excomp-spacing-sm);
}

.excomp-mt-md {
  margin-top: var(--excomp-spacing-md);
}

.excomp-mt-lg {
  margin-top: var(--excomp-spacing-lg);
}

.excomp-mb-sm {
  margin-bottom: var(--excomp-spacing-sm);
}

.excomp-mb-md {
  margin-bottom: var(--excomp-spacing-md);
}

.excomp-mb-lg {
  margin-bottom: var(--excomp-spacing-lg);
}

.excomp-hidden {
  display: none;
}

.excomp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Responsive Helpers
   ========================================================================== */

@media (max-width: 639px) {
  .excomp-hide-mobile {
    display: none;
  }
}

@media (min-width: 640px) {
  .excomp-hide-desktop {
    display: none;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes excomp-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.excomp-animate-fadeIn {
  animation: excomp-fadeIn 0.3s ease-out forwards;
}

@keyframes excomp-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.excomp-animate-pulse {
  animation: excomp-pulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .excomp-hub,
  .excomp-comparison {
    background: #ffffff;
  }

  .excomp-search-section,
  .excomp-header {
    background: none;
    color: #000000;
  }

  .excomp-search-section h1,
  .excomp-title {
    color: #000000;
  }

  .excomp-card {
    box-shadow: none;
    border: 1px solid #cccccc;
    break-inside: avoid;
  }

  .excomp-btn,
  .excomp-search-input,
  .excomp-related {
    display: none;
  }
}

/* ==========================================================================
   AI Content Progressive Loading
   ========================================================================== */

/* Loading State Container */
.excomp-ai-loading {
  padding: var(--excomp-spacing-2xl) var(--excomp-spacing-lg);
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-radius: var(--excomp-radius-lg);
  text-align: center;
  margin: var(--excomp-spacing-xl) auto;
  max-width: var(--excomp-content-width);
  border: 1px solid #d1fae5;
}

.excomp-ai-loading__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--excomp-spacing-md);
}

/* Animated Spinner */
.excomp-ai-loading__spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #d1fae5;
  border-top-color: #059669;
  border-radius: 50%;
  animation: excomp-ai-spin 1s linear infinite;
}

@keyframes excomp-ai-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading Message */
.excomp-ai-loading__message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--excomp-spacing-sm);
  font-size: var(--excomp-font-size-xl);
  font-weight: 600;
  color: #065f46;
  margin: 0;
}

.excomp-ai-loading__icon {
  font-size: 1.5rem;
  animation: excomp-ai-bounce 2s ease-in-out infinite;
}

@keyframes excomp-ai-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.excomp-ai-loading__text {
  transition: opacity 0.3s ease;
}

/* Progress Bar */
.excomp-ai-loading__progress {
  width: 100%;
  max-width: 300px;
  height: 8px;
  background: #d1fae5;
  border-radius: var(--excomp-radius-full);
  overflow: hidden;
}

.excomp-ai-loading__bar {
  height: 100%;
  background: linear-gradient(90deg, #059669, #34d399);
  border-radius: var(--excomp-radius-full);
  transition: width 0.5s ease;
  position: relative;
}

.excomp-ai-loading__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: excomp-ai-shimmer 1.5s infinite;
}

@keyframes excomp-ai-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Hint Text */
.excomp-ai-loading__hint {
  font-size: var(--excomp-font-size-sm);
  color: #6b7280;
  margin: 0;
}

/* ==========================================================================
   AI Content Loaded State
   ========================================================================== */

.excomp-ai-content--loaded {
  animation: excomp-ai-fadeIn 0.5s ease forwards;
}

@keyframes excomp-ai-fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* AI Content Sections */
.excomp-ai-content .excomp-section {
  background: var(--excomp-bg-card);
  border-radius: var(--excomp-radius-lg);
  padding: var(--excomp-spacing-xl);
  margin-bottom: var(--excomp-spacing-lg);
  box-shadow: var(--excomp-shadow-sm);
  border: 1px solid var(--excomp-border-light);
}

.excomp-ai-content .excomp-section__title {
  font-size: var(--excomp-font-size-2xl);
  font-weight: 700;
  color: var(--excomp-text);
  margin: 0 0 var(--excomp-spacing-lg) 0;
  padding-bottom: var(--excomp-spacing-sm);
  border-bottom: 2px solid var(--excomp-primary-light);
}

/* Overview Section */
.excomp-overview__text {
  font-size: var(--excomp-font-size-lg);
  line-height: 1.8;
  color: var(--excomp-text);
  margin: 0;
}

/* Comparison Section Items */
.excomp-comparison-section__content {
  display: flex;
  flex-direction: column;
  gap: var(--excomp-spacing-lg);
}

.excomp-comparison-item {
  padding: var(--excomp-spacing-md);
  background: var(--excomp-border-light);
  border-radius: var(--excomp-radius);
  border-left: 4px solid var(--excomp-primary);
}

.excomp-comparison-item__label {
  font-size: var(--excomp-font-size-base);
  font-weight: 600;
  color: var(--excomp-primary-hover);
  margin: 0 0 var(--excomp-spacing-xs) 0;
  text-transform: capitalize;
}

.excomp-comparison-item__text {
  font-size: var(--excomp-font-size-base);
  color: var(--excomp-text);
  margin: 0;
  line-height: 1.6;
}

/* Pros & Cons Section */
.excomp-pros-cons__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--excomp-spacing-xl);
}

@media (min-width: 768px) {
  .excomp-pros-cons__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.excomp-pros-cons__column {
  background: var(--excomp-border-light);
  border-radius: var(--excomp-radius);
  padding: var(--excomp-spacing-lg);
}

.excomp-pros-cons__heading {
  font-size: var(--excomp-font-size-lg);
  font-weight: 600;
  color: var(--excomp-text);
  margin: 0 0 var(--excomp-spacing-md) 0;
  padding-bottom: var(--excomp-spacing-sm);
  border-bottom: 1px solid var(--excomp-border);
}

.excomp-pros,
.excomp-cons {
  list-style: none;
  padding: 0;
  margin: var(--excomp-spacing-sm) 0;
}

.excomp-pros li,
.excomp-cons li {
  display: flex;
  align-items: flex-start;
  gap: var(--excomp-spacing-sm);
  padding: var(--excomp-spacing-xs) 0;
  font-size: var(--excomp-font-size-base);
  color: var(--excomp-text);
}

.excomp-pros__icon {
  color: #059669;
  font-weight: 700;
  flex-shrink: 0;
}

.excomp-cons__icon {
  color: #dc2626;
  font-weight: 700;
  flex-shrink: 0;
}

/* Winner Scenarios Section */
.excomp-winner-scenarios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--excomp-spacing-md);
}

@media (min-width: 640px) {
  .excomp-winner-scenarios__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.excomp-winner-card {
  background: var(--excomp-border-light);
  border-radius: var(--excomp-radius);
  padding: var(--excomp-spacing-lg);
  border: 1px solid var(--excomp-border);
  transition: all var(--excomp-transition);
}

.excomp-winner-card:hover {
  border-color: var(--excomp-primary);
  box-shadow: var(--excomp-shadow);
}

.excomp-winner-card__scenario {
  font-size: var(--excomp-font-size-base);
  font-weight: 600;
  color: var(--excomp-text-muted);
  margin: 0 0 var(--excomp-spacing-sm) 0;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  font-size: var(--excomp-font-size-sm);
}

.excomp-winner-card__winner {
  font-size: var(--excomp-font-size-lg);
  color: var(--excomp-primary-hover);
  margin: 0 0 var(--excomp-spacing-sm) 0;
}

.excomp-winner-card__winner strong {
  color: var(--excomp-text-muted);
  font-weight: 400;
  font-size: var(--excomp-font-size-sm);
}

.excomp-winner-card__reason {
  font-size: var(--excomp-font-size-sm);
  color: var(--excomp-text);
  margin: 0;
  line-height: 1.6;
}

/* Verdict Section */
.excomp-verdict__content {
  background: linear-gradient(135deg, var(--excomp-primary-light) 0%, #fef3c7 100%);
  border-radius: var(--excomp-radius);
  padding: var(--excomp-spacing-lg);
  border-left: 4px solid var(--excomp-primary);
}

.excomp-verdict__content p {
  font-size: var(--excomp-font-size-lg);
  line-height: 1.8;
  color: var(--excomp-text);
  margin: 0;
}

/* FAQ Items from AI Content */
.excomp-ai-content .excomp-faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--excomp-spacing-md);
}

.excomp-ai-content .excomp-faq-item {
  background: var(--excomp-border-light);
  border-radius: var(--excomp-radius);
  padding: var(--excomp-spacing-lg);
  border: 1px solid var(--excomp-border);
}

.excomp-ai-content .excomp-faq-item__question {
  font-size: var(--excomp-font-size-lg);
  font-weight: 600;
  color: var(--excomp-text);
  margin: 0 0 var(--excomp-spacing-sm) 0;
}

.excomp-ai-content .excomp-faq-item__answer p {
  font-size: var(--excomp-font-size-base);
  color: var(--excomp-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   AI Content Error State
   ========================================================================== */

.excomp-ai-error {
  padding: var(--excomp-spacing-2xl) var(--excomp-spacing-lg);
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: var(--excomp-radius-lg);
  text-align: center;
  margin: var(--excomp-spacing-xl) auto;
  max-width: var(--excomp-content-width);
  border: 1px solid #fecaca;
}

.excomp-ai-error__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--excomp-spacing-md);
}

.excomp-ai-error__icon {
  font-size: 3rem;
}

.excomp-ai-error__title {
  font-size: var(--excomp-font-size-xl);
  font-weight: 600;
  color: #991b1b;
  margin: 0;
}

.excomp-ai-error__message {
  font-size: var(--excomp-font-size-base);
  color: #dc2626;
  margin: 0;
}

.excomp-ai-error__retry {
  padding: var(--excomp-spacing-sm) var(--excomp-spacing-xl);
  font-family: var(--excomp-font);
  font-size: var(--excomp-font-size-base);
  font-weight: 600;
  color: #ffffff;
  background-color: #dc2626;
  border: none;
  border-radius: var(--excomp-radius);
  cursor: pointer;
  transition: all var(--excomp-transition);
}

.excomp-ai-error__retry:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: var(--excomp-shadow-md);
}
