/* ===================================== */
/* PROBLEM/AGITATE SECTION STYLES */
/* Warm Analog Aesthetic - ADHD-Focused */
/* ===================================== */

.problem-section {
  background: var(--background-pure) !important;
  padding: var(--space-4xl) 0;
}

/* Section Subtitle */
.problem-zen-subtitle {
  font-size: var(--font-base);
  color: var(--text-secondary);
  max-width: 700px;
  margin: var(--space-md) auto 0;
  text-align: center;
  line-height: 1.7;
  font-family: var(--font-body);
}

/* Problem Cards Grid */
.problem-zen-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1100px;
  margin: var(--space-3xl) auto 0;
  text-align: left;
}

/* Problem Card Base Styles */
.problem-zen-card {
  padding: var(--space-xl);
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-paper-md);
  position: relative;
  overflow: hidden;
}

/* Subtle paper texture overlay */
.problem-zen-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='2' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  opacity: 0.025;
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 0;
}

/* Warm accent bar on left edge */
.problem-zen-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--text-muted) 0%, var(--border) 100%);
  opacity: 0.3;
  transition: opacity var(--transition-base);
  z-index: 1;
}

/* Hover Effect */
.problem-zen-card:hover {
  transform: translateY(-4px) rotate(0.3deg);
  box-shadow: var(--shadow-paper-lg);
  border-color: var(--accent-light);
}

.problem-zen-card:hover::after {
  opacity: 1;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
}

/* Highlighted Problem Cards (Main Issues) */
.problem-zen-card.problem-highlight {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--primary-subtle) 100%);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-paper-lg);
}

.problem-zen-card.problem-highlight::after {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  opacity: 0.6;
}

.problem-zen-card.problem-highlight:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-paper-xl);
}

.problem-zen-card.problem-highlight:hover::after {
  opacity: 1;
}

/* Problem Icon */
.problem-zen-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
  position: relative;
  z-index: 2;
  filter: grayscale(10%);
}

/* Problem Title */
.problem-zen-title {
  font-size: var(--font-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-sm) 0;
  font-family: var(--font-display);
  line-height: 1.3;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}

/* Problem Description */
.problem-zen-description {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.8;
  font-family: var(--font-body);
  position: relative;
  z-index: 2;
}

.problem-zen-description:last-child {
  margin-bottom: 0;
}

/* Emphasis within descriptions */
.problem-zen-description em {
  color: var(--text-primary);
  font-style: italic;
  font-weight: 500;
}

.problem-zen-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ===================================== */
/* AGITATION STATEMENT */
/* ===================================== */

.problem-zen-agitation {
  max-width: 800px;
  margin: var(--space-3xl) auto 0;
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, var(--accent-subtle) 0%, var(--primary-subtle) 100%);
  border-radius: var(--radius-xl);
  border: 2px solid var(--accent-light);
  position: relative;
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-paper-md);
}

/* Subtle texture on agitation */
.problem-zen-agitation::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  opacity: 0.04;
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.agitation-text {
  font-size: var(--font-base);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.7;
  font-family: var(--font-body);
  position: relative;
  z-index: 1;
}

.agitation-text strong {
  color: var(--accent-dark);
  font-weight: 600;
}

.agitation-text em {
  color: var(--primary-dark);
  font-style: italic;
  font-weight: 500;
}

/* ===================================== */
/* RESPONSIVE - TABLET (768px+) */
/* ===================================== */

@media (min-width: 768px) {
  .problem-zen-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  .problem-zen-title {
    font-size: var(--font-xl);
  }

  .problem-zen-description {
    font-size: var(--font-base);
  }

  .problem-zen-agitation {
    padding: var(--space-3xl) var(--space-2xl);
  }

  .agitation-text {
    font-size: var(--font-lg);
  }
}

/* ===================================== */
/* RESPONSIVE - DESKTOP (1024px+) */
/* ===================================== */

@media (min-width: 1024px) {
  .problem-zen-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 1100px;
    gap: var(--space-2xl);
  }

  /* Slight rotation variations for paper aesthetic */
  .problem-zen-card:nth-child(odd) {
    transform: rotate(-0.3deg);
  }

  .problem-zen-card:nth-child(even) {
    transform: rotate(0.2deg);
  }

  .problem-zen-card:hover {
    transform: translateY(-4px) rotate(0deg) !important;
  }
}

/* ===================================== */
/* ACCESSIBILITY - REDUCED MOTION */
/* ===================================== */

@media (prefers-reduced-motion: reduce) {
  .problem-zen-card,
  .problem-zen-agitation {
    transition: none;
  }

  .problem-zen-card:hover {
    transform: none;
  }

  .problem-zen-card:nth-child(odd),
  .problem-zen-card:nth-child(even) {
    transform: none;
  }
}
