/* Article-specific Modern Styles */
.article-main {
  padding-top: 6rem;
  min-height: 100vh;
  background: var(--neutral-50);
}

.article {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

/* Modern Article Header */
.article-header {
  margin-bottom: var(--space-3xl);
  text-align: center;
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-3xl);
}

.article-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")
    repeat;
  border-radius: var(--radius-2xl);
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.article-category {
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-primary);
  box-shadow: var(--shadow-md);
}

.article-date,
.article-read-time {
  color: var(--neutral-600);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-date::before {
  content: "📅";
}

.article-read-time::before {
  content: "⏱️";
}

.article-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--neutral-800);
  margin-bottom: var(--space-md);
  line-height: 1.1;
  font-weight: 800;
  position: relative;
  z-index: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-excerpt {
  font-size: 1.375rem;
  color: var(--neutral-600);
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 400;
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* Featured Article Image */
.article-image {
  margin: var(--space-3xl) 0;
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.article-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-image:hover img {
  transform: scale(1.02);
}

/* Modern Article Content */
.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--neutral-700);
  font-family: var(--font-secondary);
}

.article-content h2 {
  font-size: 2.25rem;
  color: var(--neutral-800);
  margin: var(--space-3xl) 0 var(--space-lg) 0;
  font-weight: 700;
  position: relative;
  padding-bottom: var(--space-md);
}

.article-content h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.article-content h3 {
  font-size: 1.75rem;
  color: var(--neutral-800);
  margin: var(--space-xl) 0 var(--space-md) 0;
  font-weight: 600;
}

.article-content h4 {
  font-size: 1.375rem;
  color: var(--neutral-800);
  margin: var(--space-lg) 0 var(--space-sm) 0;
  font-weight: 600;
}

.article-content p {
  margin-bottom: var(--space-lg);
  color: var(--neutral-700);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article-content li {
  margin-bottom: var(--space-sm);
  color: var(--neutral-700);
  line-height: 1.7;
}

.article-content strong {
  color: var(--neutral-800);
  font-weight: 700;
}

.lead {
  font-size: 1.5rem;
  color: var(--neutral-600);
  font-weight: 400;
  margin-bottom: var(--space-xl);
  line-height: 1.6;
  padding: var(--space-lg);
  background: var(--primary-50);
  border-left: 4px solid var(--primary-500);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

/* Modern Evidence Badge */
.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: var(--primary-800);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  border: 1px solid var(--primary-200);
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  font-size: 1.125rem;
}

/* Modern Callout Boxes */
.callout-box {
  background: var(--gradient-card);
  border-left: 4px solid var(--primary-500);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.callout-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-500);
  opacity: 0.02;
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
}

.callout-box.success {
  border-left-color: var(--primary-500);
}

.callout-box.success::before {
  background: var(--primary-500);
}

.callout-box.warning {
  border-left-color: var(--secondary-500);
}

.callout-box.warning::before {
  background: var(--secondary-500);
}

.callout-box h3 {
  color: var(--neutral-800);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.callout-box p {
  margin-bottom: 0;
  color: var(--neutral-700);
  position: relative;
  z-index: 1;
}

/* Modern Nutrition Charts */
.nutrition-chart {
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}

.nutrition-chart h4 {
  text-align: center;
  color: var(--neutral-800);
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  font-weight: 700;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.chart-item {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
  border: 1px solid var(--neutral-200);
}

.chart-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.chart-item h5 {
  color: var(--neutral-800);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
}

.chart-item p {
  color: var(--neutral-600);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.chart-item ul {
  margin: 0;
  padding-left: var(--space-lg);
}

.chart-item li {
  color: var(--neutral-700);
  margin-bottom: 0.375rem;
  font-size: 0.95rem;
}

/* Modern Macro Recommendations */
.macro-recommendations {
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--neutral-200);
}

.macro-recommendations h3 {
  text-align: center;
  color: var(--neutral-800);
  margin-bottom: var(--space-lg);
  font-size: 1.75rem;
  font-weight: 700;
}

.macro-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.macro-bar {
  display: grid;
  grid-template-columns: 150px 1fr 200px;
  align-items: center;
  gap: var(--space-md);
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--neutral-200);
}

.macro-label {
  font-weight: 700;
  color: var(--neutral-800);
  font-family: var(--font-primary);
}

.macro-visual {
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.macro-visual.carbs {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #60a5fa 100%);
}

.macro-visual.proteins {
  background: var(--gradient-primary);
}

.macro-visual.fats {
  background: linear-gradient(135deg, var(--secondary-400) 0%, var(--secondary-600) 100%);
}

.macro-percentage {
  font-weight: 700;
  font-size: 0.875rem;
  color: white;
  z-index: 1;
  position: relative;
}

.macro-description {
  font-size: 0.875rem;
  color: var(--neutral-600);
  font-weight: 500;
}

/* Modern Fat Types Grid */
.fat-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.fat-type {
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border-top: 6px solid;
  transition: transform 0.3s ease;
  border: 1px solid var(--neutral-200);
}

.fat-type:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fat-type.good {
  border-top-color: var(--primary-500);
}

.fat-type.neutral {
  border-top-color: var(--secondary-500);
}

.fat-type.bad {
  border-top-color: #ef4444;
}

.fat-type h5 {
  color: var(--neutral-800);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.fat-status {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.fat-type.good .fat-status {
  color: var(--primary-700);
  background: var(--primary-100);
}

.fat-type.neutral .fat-status {
  color: var(--secondary-700);
  background: var(--secondary-100);
}

.fat-type.bad .fat-status {
  color: #dc2626;
  background: #fee2e2;
}

.fat-type ul {
  margin: 0;
  padding-left: var(--space-lg);
}

.fat-type li {
  margin-bottom: 0.375rem;
  font-size: 0.95rem;
  color: var(--neutral-700);
}

/* Modern Goal Adjustments */
.goal-adjustments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.goal-card {
  background: var(--gradient-card);
  padding: var(--space-lg);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-200);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.goal-card h4 {
  color: var(--neutral-800);
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
}

.goal-card p {
  color: var(--neutral-700);
  margin: 0;
  font-size: 1rem;
}

/* Modern Myth Busting */
.myth-busting {
  margin: var(--space-xl) 0;
}

.myth {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fecaca;
  border-radius: var(--radius-2xl);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.myth::before {
  content: "❌";
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 1.5rem;
}

.myth h4 {
  color: #dc2626;
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
  font-weight: 700;
  padding-right: var(--space-xl);
}

.myth p {
  color: var(--neutral-700);
  margin: 0;
}

/* Modern Article Footer */
.article-footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--neutral-200);
}

.author-info {
  background: var(--gradient-card);
  padding: var(--space-xl);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-200);
}

.author-info h3 {
  color: var(--neutral-800);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.author-info p {
  color: var(--neutral-700);
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.related-articles h3 {
  color: var(--neutral-800);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.related-articles ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-sm);
}

.related-articles li {
  background: var(--gradient-card);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  transition: transform 0.3s ease;
}

.related-articles li:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.related-articles a {
  color: var(--primary-600);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.related-articles a::before {
  content: "→";
  color: var(--primary-500);
  font-weight: bold;
}

.related-articles a:hover {
  color: var(--primary-700);
}

/* Responsive Design for Articles */
@media (max-width: 768px) {
  .article {
    padding: var(--space-md);
  }

  .article-header {
    padding: var(--space-xl) var(--space-md);
  }

  .article-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }

  .article-excerpt {
    font-size: 1.125rem;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.75rem;
  }

  .article-content h3 {
    font-size: 1.5rem;
  }

  .macro-bar {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    text-align: center;
  }

  .chart-grid,
  .fat-types-grid,
  .goal-adjustments {
    grid-template-columns: 1fr;
  }

  .article-image img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .article-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .lead {
    font-size: 1.25rem;
    padding: var(--space-md);
  }

  .nutrition-chart,
  .macro-recommendations {
    padding: var(--space-md);
  }

  .callout-box {
    padding: var(--space-md);
  }
}
