/* === SHARED ARTICLE CONTENT STYLES ===
   These styles are used by $article->content HTML generated by SiteGenerator.
   All themes must include this CSS for proper article rendering.
*/

/* Product Hero */
.product-hero { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; margin-bottom: 28px; }
.product-hero-inner { display: flex; gap: 28px; align-items: flex-start; flex-wrap: wrap; }
.product-info-left { flex: 1 1 55%; }
.product-image-right { flex: 1 1 35%; display: flex; justify-content: center; align-items: center; }
.product-image { background: #f9fafb; border-radius: 12px; padding: 12px; width: 220px; height: 220px; display: flex; justify-content: center; align-items: center; }
.product-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.product-name { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #1f2937; }
.product-category { color: #6b7280; font-size: 14px; margin-bottom: 12px; }
.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.product-stars { color: #f59e0b; font-size: 18px; }
.product-stars .star-empty { color: #d1d5db; }
.product-summary { background: #eff6ff; border-left: 4px solid #3b82f6; padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.6; color: #1e40af; margin-bottom: 16px; }
.price-tag { font-size: 22px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.price-old { text-decoration: line-through; color: #9ca3af; font-size: 15px; margin-left: 8px; font-weight: 400; }
.main-cta { display: inline-block; background: #3b82f6; color: #fff; font-weight: 700; padding: 12px 28px; font-size: 14px; border: none; border-radius: 8px; cursor: pointer; text-transform: uppercase; text-decoration: none; transition: opacity 0.2s; }
.main-cta:hover { opacity: 0.9; color: #fff; }

/* Recommendation Header (starter article) */
.rec-header { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 28px; margin-bottom: 28px; }
.rec-content { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 28px; }
.rec-info { flex: 1 1 60%; }
.rec-title { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0 0 4px; }
.rec-category { color: #6b7280; font-size: 14px; margin-bottom: 12px; }
.rec-rating { display: flex; align-items: center; margin-bottom: 14px; }
.rec-stars { display: flex; gap: 3px; }
.rec-stars .star { color: #f59e0b; font-size: 18px; }
.rec-stars .star.empty { color: #d1d5db; }
.rec-rating-text { margin-left: 10px; color: #6b7280; font-size: 14px; font-weight: 500; }
.rec-summary { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.rec-price { font-size: 22px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.rec-price-old { text-decoration: line-through; color: #9ca3af; font-size: 15px; margin-left: 8px; font-weight: 400; }
.rec-cta { display: inline-block; background: #3b82f6; color: #fff; font-weight: 700; padding: 12px 28px; font-size: 14px; border: none; border-radius: 8px; cursor: pointer; text-transform: uppercase; text-decoration: none; transition: opacity 0.2s; }
.rec-cta:hover { opacity: 0.9; color: #fff; }
.rec-image-wrap { flex: 1 1 35%; display: flex; justify-content: center; align-items: center; }
.rec-image { background: #f9fafb; border-radius: 12px; padding: 10px; width: 200px; height: 200px; display: flex; justify-content: center; align-items: center; }
.rec-image img { width: 100%; height: 100%; object-fit: contain; }

/* Gallery */
.gallery-section { background: transparent; padding: 28px; border: 1px solid var(--gallery-border, #e5e7eb); border-radius: 16px; margin-bottom: 28px; }
.gallery-section .gallery-title { font-size: 18px; font-weight: 800; margin-bottom: 16px; color: inherit; display: flex; align-items: center; gap: 8px; }
.gallery-section .gallery-title::before { content: '📸'; font-size: 20px; }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.gallery-large { border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, #f8fafc, #f1f5f9); cursor: zoom-in; position: relative; transition: box-shadow 0.3s; border: 2px solid var(--gallery-border, #e5e7eb); }
.gallery-large:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.gallery-large img { width: 100%; height: 100%; object-fit: contain; display: block; min-height: 300px; padding: 12px; transition: transform 0.4s ease; }
.gallery-large:hover img { transform: scale(1.02); }
.gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; aspect-ratio: 1; border: 2px solid var(--gallery-border, #e5e7eb); }
.gallery-thumbs img:hover { transform: scale(1.05); border-color: var(--gallery-active, #3b82f6); opacity: 1; box-shadow: 0 4px 16px var(--gallery-glow, rgba(59,130,246,0.2)); }

/* Section Card (shared for features, specs, etc) */
.section-card { background: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.section-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid #f3f4f6; }
.section-card-icon { width: 40px; height: 40px; border-radius: 10px; background: #eff6ff; color: #3b82f6; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.section-card-title { font-size: 20px; font-weight: 800; color: #1f2937; }

/* Key Features */
.features-section { background: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.features-section .features-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: #1f2937; padding-bottom: 14px; border-bottom: 2px solid #f3f4f6; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.feature-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 16px; text-align: center; transition: all 0.25s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.feature-icon { font-size: 30px; margin-bottom: 10px; display: inline-block; width: 52px; height: 52px; line-height: 52px; background: #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.feature-title { font-weight: 700; font-size: 14px; color: #1f2937; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: #6b7280; line-height: 1.5; }

/* How We Test */
.test-section { background: #f9fafb; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.test-section .test-title { font-size: 20px; font-weight: 800; margin-bottom: 20px; color: #1f2937; padding-bottom: 14px; border-bottom: 2px solid #e5e7eb; }
.test-steps { display: flex; flex-direction: column; gap: 14px; }
.test-step { border-left: 4px solid #3b82f6; padding: 16px 20px; background: #fff; border-radius: 0 12px 12px 0; }
.test-step-number { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff; background: #3b82f6; padding: 2px 10px; border-radius: 4px; margin-bottom: 8px; }
.test-step-title { font-size: 15px; font-weight: 700; color: #1f2937; margin-bottom: 4px; }
.test-step-desc { font-size: 14px; color: #6b7280; line-height: 1.6; }

/* Review Body Content */
.review-content { background: #fff; border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.review-content h2 { font-size: 20px; font-weight: 800; color: #1f2937; margin: 24px 0 12px; padding-top: 18px; border-top: 2px solid #f3f4f6; }
.review-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.review-content p { font-size: 15px; line-height: 1.8; color: #4b5563; margin-bottom: 14px; }
.review-content ul, .review-content ol { margin: 12px 0 16px 20px; }
.review-content li { font-size: 15px; line-height: 1.7; color: #4b5563; margin-bottom: 6px; }
.review-body { margin-bottom: 24px; }

/* Review Rich Sections */
.review-intro { font-size: 16px; line-height: 1.8; color: #374151; margin-bottom: 24px; }
.review-intro p { font-size: 16px; line-height: 1.8; }
.review-highlight-box { display: flex; align-items: flex-start; gap: 14px; background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 20px 0; }
.review-highlight-box .highlight-icon { font-size: 24px; flex-shrink: 0; }
.review-highlight-box .highlight-text { font-size: 14px; line-height: 1.6; color: #374151; }
.review-highlight-box .highlight-text strong { color: #d97706; }

.review-score-breakdown { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; margin: 20px 0; }
.score-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.score-row:last-child { margin-bottom: 0; padding-top: 12px; border-top: 1px solid #e5e7eb; }
.score-label { font-size: 14px; font-weight: 600; color: #4b5563; min-width: 130px; }
.score-bar { flex: 1; height: 10px; background: #e5e7eb; border-radius: 99px; overflow: hidden; }
.score-fill { height: 100%; background: linear-gradient(90deg, #fbbf24, #f59e0b); border-radius: 99px; transition: width 0.6s ease; }
.score-fill-primary { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.score-value { font-size: 15px; font-weight: 800; color: #1f2937; min-width: 30px; text-align: right; }

.review-callout { background: #f0fdf4; border: 1px dashed #86efac; border-radius: 12px; padding: 18px 22px; margin: 20px 0; }
.review-callout .callout-label { font-size: 15px; font-weight: 700; color: #16a34a; margin-bottom: 6px; }
.review-callout p { font-size: 14px; line-height: 1.6; color: #6b7280; margin: 0; }

/* Pros & Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.pros-box, .cons-box { padding: 22px; border-radius: 14px; }
.pros-box { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border: 1px solid #bbf7d0; }
.cons-box { background: linear-gradient(135deg, #fef2f2, #fee2e2); border: 1px solid #fecaca; }
.pros-cons-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pros-box .pros-cons-title { color: #16a34a; }
.cons-box .pros-cons-title { color: #dc2626; }
.pros-cons-list { list-style: none; padding: 0; margin: 0; }
.pros-cons-list li { padding: 8px 0 8px 28px; position: relative; font-size: 14px; color: #4b5563; border-bottom: 1px solid rgba(0,0,0,0.05); line-height: 1.5; }
.pros-cons-list li:last-child { border-bottom: none; }
.pros-box .pros-cons-list li::before { content: '\2705'; position: absolute; left: 0; }
.cons-box .pros-cons-list li::before { content: '\274C'; position: absolute; left: 0; }

/* Specs Table */
.specs-table { margin-bottom: 24px; }
.specs-table table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; }
.specs-table td { padding: 12px 16px; font-size: 14px; border: none; }
.specs-table tr { border-bottom: 1px solid #f3f4f6; }
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr:nth-child(odd) { background: #f9fafb; }
.specs-table tr:nth-child(even) { background: #fff; }
.specs-table td:first-child { font-weight: 700; color: #1f2937; width: 40%; }

/* FAQ */
.faq-section { margin-bottom: 24px; }
.faq-item { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-question { font-weight: 700; font-size: 15px; padding: 14px 18px; background: #f9fafb; color: #1f2937; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-answer { padding: 14px 18px; font-size: 14px; line-height: 1.7; color: #6b7280; background: #fff; }

/* CTA */
.cta-button { display: inline-block; background: #3b82f6; color: #fff; padding: 14px 36px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: all 0.25s; text-decoration: none; text-transform: uppercase; }
.cta-button:hover { transform: translateY(-2px); opacity: 0.9; color: #fff; }
.cta-box { text-align: center; margin: 28px 0; }

/* Customer Reviews */
.reviews-section { margin-bottom: 24px; }
.reviews-section .reviews-title { font-size: 20px; font-weight: 800; margin-bottom: 18px; color: #1f2937; padding-bottom: 14px; border-bottom: 2px solid #f3f4f6; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.review-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px; position: relative; }
.review-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.reviewer-name { font-weight: 700; font-size: 14px; color: #1f2937; }
.reviewer-date { font-size: 12px; color: #9ca3af; }
.review-card-stars { color: #f59e0b; font-size: 15px; margin-bottom: 10px; }
.review-card-text { font-size: 14px; line-height: 1.65; color: #6b7280; }

/* Final Verdict */
.verdict-section { background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 20px; padding: 40px 28px; margin-bottom: 24px; text-align: center; }
.verdict-score { margin-bottom: 12px; }
.verdict-score .score-number { font-size: 48px; font-weight: 800; color: #3b82f6; line-height: 1; }
.verdict-score .score-max { font-size: 22px; color: #9ca3af; font-weight: 400; }
.verdict-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 16px; }
.verdict-stars .star { color: #f59e0b; font-size: 24px; }
.verdict-stars .star.empty { color: #d1d5db; }
.verdict-title { font-size: 22px; font-weight: 800; color: #1f2937; margin-bottom: 10px; }
.verdict-text { font-size: 15px; color: #6b7280; line-height: 1.7; max-width: 560px; margin: 0 auto 24px; }
.verdict-cta { display: inline-block; background: #3b82f6; color: #fff; font-weight: 700; padding: 14px 36px; font-size: 15px; border-radius: 10px; text-decoration: none; text-transform: uppercase; transition: all 0.25s; }
.verdict-cta:hover { transform: translateY(-2px); opacity: 0.9; color: #fff; }

/* Discount Badge */
.discount-badge { position: absolute; top: 12px; left: 12px; background: #ef4444; color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; z-index: 2; }

/* Related Grid */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.related-card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: block; background: #fff; }
.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.related-card-img { height: 160px; background: #f9fafb; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: contain; }
.related-card-body { padding: 12px; }
.related-card-body h3 { font-size: 14px; font-weight: 600; margin: 4px 0; line-height: 1.3; }
.related-card-body .rating { font-size: 13px; color: #f59e0b; font-weight: 600; }
.related-price { font-size: 15px; font-weight: 700; color: #3b82f6; }

/* Ad Inline */
.ad-inline { text-align: center; margin: 20px 0; padding: 14px 0; }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox-overlay img { max-width: 90%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; color: #fff; font-size: 32px; cursor: pointer; background: none; border: none; }

/* === RESPONSIVE === */
@media (max-width: 991px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .pros-cons { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-large img { min-height: 220px; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .rec-content, .product-hero-inner { flex-direction: column; }
  .rec-image-wrap, .product-image-right { width: 100%; justify-content: center; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
  .features-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .gallery-section { padding: 16px; }
  .gallery-thumbs img { border-radius: 8px; }
  .verdict-section { padding: 28px 18px; }
  .verdict-score .score-number { font-size: 40px; }
  .related-grid { grid-template-columns: 1fr; }
  .rec-header, .product-hero { padding: 18px; }
}

/* Trust Badges (shared base) */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.trust-badge { padding: 12px 18px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; font-size: 14px; font-weight: 600; color: #1f2937; }

/* Lede Features (shared base) */
.lede-features { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.lede-feature { padding: 12px 18px; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; line-height: 1.6; color: #4b5563; margin-bottom: 0.1em; }

@media (max-width: 576px) {
  .trust-badges { flex-direction: column; }
}

.breadcrumb {
  margin-bottom: 1em;
}

