/**
 * Article Enhancement Styles
 * Visuelles Upgrade für Blog-Artikel: Infoboxen, Tabellen, Cards, Badges, Timeline
 * @since 1.3.0
 */

/* === Meta Box (Schwierigkeitsgrad, Inhalt) === */
.article-meta-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border-left: 4px solid #1a73e8;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
  font-size: 0.95em;
}
.article-meta-box strong { color: #1a73e8; }
.article-meta-box p { margin: 0.4em 0; }

/* === Preistabellen === */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95em;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.price-table thead th {
  background: #1a2332;
  color: #fff;
  padding: 0.8em 1em;
  text-align: left;
  font-weight: 600;
}
.price-table tbody td {
  padding: 0.7em 1em;
  border-bottom: 1px solid #e8ecf0;
}
.price-table tbody tr:nth-child(even) { background: #f8fafc; }
.price-table tbody tr:hover { background: #eef3ff; }
.price-table .price-highlight {
  font-weight: 700;
  color: #1a73e8;
}

/* === Info Box (blau, 💡) === */
.info-box {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  line-height: 1.6;
}
.info-box::before {
  content: "💡";
  font-size: 1.2em;
  margin-right: 0.5em;
}
.info-box ul { margin: 0.5em 0 0 1em; padding: 0; }
.info-box li { margin: 0.3em 0; }

/* === Warning Box (orange, ⚠️) === */
.warning-box {
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  line-height: 1.6;
}
.warning-box::before {
  content: "⚠️";
  font-size: 1.2em;
  margin-right: 0.5em;
}

/* === Highlight Box (grün, Empfehlungen) === */
.highlight-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #6ee7b7;
  border-radius: 8px;
  padding: 1.5em;
  margin: 1.5em 0;
}
.highlight-box h3 { margin-top: 0; color: #065f46; }
.highlight-box ul { margin: 0.5em 0; padding-left: 1.2em; }
.highlight-box li { margin: 0.3em 0; }

/* === Comparison Grid + Cards === */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2em;
  margin: 1.5em 0;
}
.comparison-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5em;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.comparison-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.comparison-card h4 {
  margin-top: 0;
  padding-bottom: 0.5em;
  border-bottom: 2px solid #e2e8f0;
}
.comparison-card.kiro h4 { border-color: #f59e0b; color: #92400e; }
.comparison-card.copilot h4 { border-color: #1a73e8; color: #1e40af; }
.comparison-card.claude h4 { border-color: #8b5cf6; color: #5b21b6; }

/* === Badges === */
.badge {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.4;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* === Cost Summary (dunkle Box) === */
.cost-summary {
  background: #1a2332;
  color: #fff;
  border-radius: 10px;
  padding: 1.5em 2em;
  margin: 2em 0;
}
.cost-summary h3 { color: #67e8f9; margin-top: 0; }
.cost-summary .cost-line {
  display: flex;
  justify-content: space-between;
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 0.5em;
}
.cost-summary .cost-line:last-child { border-bottom: none; }
.cost-summary .cost-amount {
  color: #67e8f9;
  font-weight: 700;
  font-size: 1.1em;
}

/* === Token/Simple Comparison Table === */
.token-comparison {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
}
.token-comparison th {
  background: #f1f5f9;
  padding: 0.6em 0.8em;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
}
.token-comparison td {
  padding: 0.6em 0.8em;
  border-bottom: 1px solid #f1f5f9;
}

/* === Timeline === */
.timeline {
  border-left: 3px solid #1a73e8;
  padding-left: 1.5em;
  margin: 1.5em 0;
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5em;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.85em;
  top: 0.4em;
  width: 12px;
  height: 12px;
  background: #1a73e8;
  border-radius: 50%;
}
.timeline-item h4 { margin: 0 0 0.3em; color: #1a73e8; }
.timeline-item p { margin: 0; }

/* === Step Box (nummerierte Schritte) === */
.step-box {
  counter-reset: steps;
  margin: 1.5em 0;
}
.step-box .step {
  counter-increment: steps;
  padding: 1em 1.2em 1em 3.5em;
  margin: 0.8em 0;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  position: relative;
}
.step-box .step::before {
  content: counter(steps);
  position: absolute;
  left: 1em;
  top: 0.9em;
  width: 1.8em;
  height: 1.8em;
  background: #1a73e8;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85em;
}

/* === Pro/Contra Box === */
.pro-contra {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin: 1.5em 0;
}
.pro-contra .pro,
.pro-contra .contra {
  padding: 1.2em;
  border-radius: 8px;
}
.pro-contra .pro {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
}
.pro-contra .contra {
  background: #fef2f2;
  border: 1px solid #fca5a5;
}
.pro-contra h4 { margin-top: 0; }
.pro-contra .pro h4 { color: #065f46; }
.pro-contra .contra h4 { color: #991b1b; }
.pro-contra ul { margin: 0; padding-left: 1.2em; }
.pro-contra li { margin: 0.3em 0; }

/* === Quote/Zitat Box === */
.quote-box {
  background: #f8fafc;
  border-left: 4px solid #8b5cf6;
  padding: 1.2em 1.5em;
  margin: 1.5em 0;
  border-radius: 0 8px 8px 0;
  font-style: italic;
}
.quote-box .quote-source {
  font-style: normal;
  font-size: 0.85em;
  color: #64748b;
  margin-top: 0.8em;
}

/* === Responsive === */
@media (max-width: 768px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .pro-contra { grid-template-columns: 1fr; }
  .cost-summary { padding: 1em 1.2em; }
  .cost-summary .cost-line { flex-direction: column; gap: 0.2em; }
  .price-table { font-size: 0.85em; }
  .price-table thead th,
  .price-table tbody td { padding: 0.5em 0.6em; }
}
