/* ==========================================================================
   HEALTH CONCERNS ENCYCLOPEDIA STYLESHEET (Matches React HealthConcernList.tsx 1:1)
   ========================================================================== */

.concerns-page-wrapper {
  width: 100%;
  background-color: var(--color-bg-base, #fcfbf7);
  min-height: 100vh;
  padding: 1.5rem 0 3.5rem;
}

@media (min-width: 640px) {
  .concerns-page-wrapper {
    padding: 3rem 0 5rem;
  }
}

.concerns-container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 640px) {
  .concerns-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .concerns-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Header Section (Exact Shop Header Design Replica) */
.concerns-header {
  text-align: center;
  max-width: 48rem; /* max-w-3xl */
  margin: 0 auto 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .concerns-header {
    margin-bottom: 3rem;
    gap: 0.625rem;
  }
}

.concerns-header-eyebrow {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent, #c5a880);
  font-weight: 600;
  display: block;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .concerns-header-eyebrow {
    font-size: 0.75rem;
  }
}

.concerns-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark, #1d3c1a);
  line-height: 1.15;
  margin: 0;
  margin-top: -0.2rem;
}

@media (min-width: 640px) {
  .concerns-title {
    font-size: 3rem; /* sm:text-5xl */
    margin-top: -0.25rem;
  }
}

.concerns-subtitle {
  font-size: 0.75rem;
  color: #78716c; /* text-stone-500 */
  padding: 0 1rem;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 640px) {
  .concerns-subtitle {
    font-size: 0.875rem;
  }
}

/* Concerns Grid (2 col mobile, 2 col tablet, 3 col desktop) */
.concerns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .concerns-grid {
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .concerns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .concerns-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

/* Concern Card */
.concern-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.concern-card {
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #e7e5e4; /* border-stone-200 */
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.concern-card-link:hover .concern-card {
  box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.15);
  transform: translateY(-0.35rem);
}

/* Banner Image Container */
.concern-banner-wrap {
  height: 8rem;
  overflow: hidden;
  position: relative;
}

@media (min-width: 640px) {
  .concern-banner-wrap {
    height: 11rem;
  }
}

@media (min-width: 768px) {
  .concern-banner-wrap {
    height: 14rem;
  }
}

@media (min-width: 1024px) {
  .concern-banner-wrap {
    height: 15.5rem;
  }
}

.concern-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.concern-card-link:hover .concern-banner-img {
  transform: scale(1.08);
}

.concern-banner-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a2b 0%, #0f241a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.concern-banner-fallback-icon {
  font-size: 2rem;
  opacity: 0.25;
}

@media (min-width: 768px) {
  .concern-banner-fallback-icon {
    font-size: 2.75rem;
  }
}

/* Dark Gradient Overlay */
.concern-banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}

.concern-card-link:hover .concern-banner-overlay {
  background-color: rgba(0, 0, 0, 0.45);
}

/* Title on Banner Overlay */
.concern-title-wrap {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

@media (min-width: 768px) {
  .concern-title-wrap {
    bottom: 1.25rem;
    left: 1.25rem;
    right: 1.25rem;
  }
}

.concern-name {
  font-family: var(--font-family-sans, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 640px) {
  .concern-name {
    font-size: 1.15rem;
  }
}

@media (min-width: 768px) {
  .concern-name {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }
}

@media (min-width: 1024px) {
  .concern-name {
    font-size: 1.45rem;
  }
}

.concern-underline-bar {
  height: 2px;
  width: 1.75rem;
  background-color: var(--color-primary, #2d5a27);
  transition: width 0.3s ease;
  border-radius: 2px;
}

@media (min-width: 768px) {
  .concern-underline-bar {
    height: 3px;
    width: 2.75rem;
  }
}

.concern-card-link:hover .concern-underline-bar {
  width: 100%;
}

/* Card Body */
.concern-body {
  padding: 0.75rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

@media (min-width: 640px) {
  .concern-body {
    padding: 1.25rem;
  }
}

@media (min-width: 768px) {
  .concern-body {
    padding: 1.5rem 1.75rem;
  }
}

.concern-desc {
  color: #57534e; /* text-stone-600 */
  line-height: 1.45;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .concern-desc {
    font-size: 0.85rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.55;
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .concern-desc {
    font-size: 0.925rem;
    line-height: 1.65;
    margin-bottom: 1.25rem;
  }
}

.concern-read-link {
  color: var(--color-primary, #2d5a27);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) {
  .concern-read-link {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }
}

.concern-read-arrow {
  margin-left: 0.25rem;
  transition: transform 0.2s ease;
}

.concern-card-link:hover .concern-read-link {
  gap: 0.35rem;
}

.concern-card-link:hover .concern-read-arrow {
  transform: translateX(4px);
}

/* Empty State */
.concerns-empty-state {
  text-align: center;
  padding: 5rem 1.5rem;
  color: #a8a29e;
}

.concerns-empty-state p {
  font-size: 1.25rem;
  margin: 0;
}

/* ==========================================================================
   CONCERN DETAIL PAGE STYLES (Matches React HealthConcernDetail.tsx 1:1)
   ========================================================================== */

.concern-detail-page {
  background-color: #ffffff;
  min-height: 100vh;
  width: 100%;
}

/* Hero Header (Compact & Elegant) */
.concern-detail-hero {
  position: relative;
  height: 220px;
  min-height: 200px;
  width: 100%;
  background-color: #1c1917; /* bg-stone-900 */
  overflow: hidden;
}

@media (min-width: 640px) {
  .concern-detail-hero {
    height: 260px;
  }
}

.concern-detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.concern-detail-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.concern-detail-hero-content {
  text-align: center;
  padding: 0 1rem;
  max-width: 52rem;
}

.concern-detail-back-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.concern-detail-back-link:hover {
  color: #ffffff;
  transform: translateX(-3px);
}

.concern-detail-title {
  font-family: var(--font-family-sans, "Inter", sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

@media (min-width: 768px) {
  .concern-detail-title {
    font-size: 2.5rem;
  }
}

/* Main Content Container (Matches Site Container 1440px) */
.concern-detail-main {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1rem 3.5rem;
}

@media (min-width: 640px) {
  .concern-detail-main {
    padding: 2.75rem 1.5rem 4rem;
  }
}

@media (min-width: 1024px) {
  .concern-detail-main {
    padding: 3rem 2rem 4.5rem;
  }
}

/* Section Headings */
.concern-section {
  margin-bottom: 2.5rem;
}

.concern-section-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .concern-section-heading {
    font-size: 1.5rem;
  }
}

.concern-accent-bar {
  width: 2rem;
  height: 3px;
  background-color: var(--color-primary, #2d5a27);
  margin-right: 0.75rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.concern-desc-lead {
  font-size: 1rem;
  color: #57534e;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.25rem;
}

.concern-prose {
  color: #44403c;
  line-height: 1.65;
  font-size: 0.9375rem;
}

.concern-prose p {
  margin-bottom: 0.875rem;
}

.concern-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.concern-prose li {
  margin-bottom: 0.35rem;
}

/* 2-Column Symptoms & Approach Grid */
.concern-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .concern-split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.concern-symptoms-card {
  background-color: #fafaf9; /* bg-stone-50 */
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  border: 1px solid #f5f5f4;
}

.concern-approach-card {
  background-color: rgba(45, 90, 39, 0.04);
  padding: 1.5rem 1.75rem;
  border-radius: 8px;
  border: 1px solid rgba(45, 90, 39, 0.12);
}

.concern-card-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   RECOMMENDATIONS SLICK AYURVEDIC CARD
   ========================================================================== */

.concern-recom-box {
  background-color: #1b382b; /* Authentic Dhanvantari signature forest green */
  color: #ffffff;
  border-radius: 8px; /* Clean 8px, matching site cards */
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.25rem;
  box-shadow: 0 4px 16px -2px rgba(15, 40, 26, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.concern-recom-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 640px) {
  .concern-recom-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.concern-recom-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.concern-recom-subtitle {
  display: block;
  font-size: 0.775rem;
  color: #a3c2af;
  margin-top: 0.2rem;
  font-weight: 400;
}

.concern-recom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #ffffff;
  color: #1b382b;
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  align-self: flex-start;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (min-width: 640px) {
  .concern-recom-cta-btn {
    align-self: auto;
  }
}

.concern-recom-cta-btn:hover {
  background-color: #f3f6f4;
  color: #142a20;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.concern-recom-cta-arrow {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.concern-recom-cta-btn:hover .concern-recom-cta-arrow {
  transform: translateX(3px);
}

.concern-recom-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .concern-recom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.concern-recom-col {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 1rem 1.15rem;
}

.concern-recom-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d1fae5;
  margin-bottom: 0.45rem;
}

.concern-recom-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-botanicals {
  background-color: #4ade80;
}

.dot-benefits {
  background-color: #facc15;
}

.concern-recom-text {
  color: #f1f5f3;
  line-height: 1.6;
  font-size: 0.875rem;
  margin: 0;
}

/* FAQ Section */
.concern-faq-section {
  margin-bottom: 2.5rem;
}

.concern-faq-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.75rem;
  color: #1c1917;
}

.concern-faq-list {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.concern-faq-item {
  border-bottom: 1px solid #f5f5f4;
  padding-bottom: 1.25rem;
}

.concern-faq-question {
  font-size: 1.05rem;
  font-weight: 700;
  color: #292524;
  margin-bottom: 0.35rem;
}

.concern-faq-answer {
  color: #57534e;
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Products Section */
.concern-products-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #f5f5f4;
}

.concern-products-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 1.75rem;
  text-align: center;
}

.concern-products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .concern-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .concern-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

/* References Footer */
.concern-references-footer {
  padding-top: 1.75rem;
  border-top: 1px solid #f5f5f4;
  text-align: center;
}

.concern-references-text {
  font-size: 0.75rem;
  color: #a8a29e;
  font-style: italic;
}
