/* =====================================================
   CHICKENPIECES BLOG THEME
   Global Stylesheet for .cp-blog component system
   Palette: Olive #8B9D3B / Burgundy #8B1E3F
   Fonts: Fraunces (serif headlines) + Sora (sans body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..700&family=Sora:wght@300..700&display=swap');

.cp-blog {
  --olive: #8B9D3B;
  --olive-dark: #6B7C2E;
  --olive-light: #A8B85C;
  --olive-pale: #f7f9f0;
  --olive-border: #d4e0c1;
  --olive-deep: #2a300e;
  --burgundy: #8B1E3F;
  --burgundy-dark: #5C1028;
  --burgundy-pale: #F5E0E6;
  --honey: #D4930C;
  --honey-pale: #FFF8E1;
  --bg: #f4f5f0;
  --pure-white: #FFFFFF;
  --dark: #1a1a1a;
  --slate: #3a3a3a;
  --mid: #6B7C2E;
  --muted: #9aaa7a;
  --border: #d4e0c1;
  --border-l: #e0e8d4;
}

/* Scroll Progress Bar */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--olive), var(--olive-light));
  z-index: 9999; transition: width 0.1s;
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* TRUST STRIP */
.trust-strip {
  background: var(--olive-deep);
  color: rgba(255,255,255,0.9);
  padding: 10px 20px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; text-align: center;
}
.trust-strip span { display: inline-block; margin: 0 14px; }
.trust-cert {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px 10px !important; border-radius: 100px;
}

/* BREADCRUMB */
.breadcrumb {
  padding: 14px 24px 0; font-size: 0.78rem;
  color: var(--muted); max-width: 1100px; margin: 0 auto;
}
.breadcrumb a { color: var(--mid); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: var(--olive); }

/* QUICK ANSWER BOX */
.quick-answer {
  background: linear-gradient(135deg, var(--olive-pale), var(--pure-white));
  border: 2px solid var(--olive-border); border-radius: 16px;
  padding: 28px 32px; margin: 24px auto; max-width: 1100px;
  position: relative; overflow: hidden;
}
.quick-answer::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 5px; height: 100%;
  background: linear-gradient(to bottom, var(--olive), var(--burgundy));
}
.qa-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--olive); color: white;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; margin-bottom: 12px;
}
.quick-answer p { font-size: 1.05rem; color: var(--slate); line-height: 1.7; margin: 0; font-weight: 500; }

/* AUTHOR BYLINE */
.author { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.author-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--olive), var(--olive-dark));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}
.author-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.author-info p { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #2a300e 0%, #6B7C2E 50%, #8B1E3F 100%);
  padding: 60px 24px 70px; position: relative; overflow: hidden; color: white;
}
.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 18px; border-radius: 100px; font-size: 0.78rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 24px; color: rgba(255,255,255,0.95); backdrop-filter: blur(4px);
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--honey); border-radius: 50%; animation: pulse-dot 2.5s infinite; }
body.blog_post .hero h1 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem); color: white;
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px;
}
body.blog_post .hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,0.85);
  max-width: 680px; line-height: 1.7; margin-bottom: 28px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: all 0.25s ease; cursor: pointer; border: none;
  font-family: 'Sora', sans-serif;
}
.btn-burgundy { background: var(--burgundy); color: white; box-shadow: 0 4px 14px rgba(139,30,63,0.4); }
.btn-burgundy:hover { background: var(--burgundy-dark); transform: translateY(-2px); }
.btn-olive { background: var(--olive); color: white; box-shadow: 0 4px 14px rgba(139,157,59,0.35); }
.btn-olive:hover { background: var(--olive-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-num { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 800; color: var(--honey); line-height: 1; }
.stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.7); font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.03em; }

/* SECTIONS */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--pure-white); }
.sec-label {
  display: inline-block; background: var(--olive-pale);
  color: var(--olive-dark); padding: 6px 16px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 14px;
}
body.blog_post .section h2 {
  font-family: 'Fraunces', serif; font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); color: var(--dark);
  line-height: 1.15; margin-bottom: 10px;
}
.sec-desc { font-size: 1.05rem; color: var(--mid); max-width: 620px; line-height: 1.7; margin-bottom: 36px; }

/* TAKEAWAY CARDS */
.tkw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tkw-card {
  background: var(--pure-white); border-radius: 14px; padding: 26px;
  border: 1px solid var(--border-l); border-left: 4px solid var(--olive);
  box-shadow: 0 1px 3px rgba(42,48,14,0.04); transition: all 0.3s ease;
}
.tkw-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(42,48,14,0.08); }
.tkw-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.tkw-card p { font-size: 0.92rem; color: var(--slate); line-height: 1.6; margin: 0; }

/* BODY TEXT */
.body-text { font-size: 1.05rem; color: var(--slate); line-height: 1.85; }
.body-text p { margin-bottom: 20px; }
.body-text h3 { font-family: 'Fraunces', serif; font-size: 1.4rem; font-weight: 700; color: var(--dark); margin: 36px 0 14px; }
.body-text blockquote {
  background: var(--olive-pale); border-left: 4px solid var(--olive);
  padding: 20px 24px; margin: 24px 0; border-radius: 0 14px 14px 0;
  font-size: 1rem;
}

/* COMPARISON TABLE */
.table-wrap { overflow-x: auto; }
.comp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--pure-white); border-radius: 14px; overflow: hidden; border: 1px solid var(--border-l); }
.comp-table th { background: var(--olive-deep); color: white; text-align: left; padding: 14px 16px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.comp-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-l); color: var(--slate); vertical-align: top; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--olive-pale); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; }
.tag-olive { background: var(--olive-pale); color: var(--olive-dark); }
.tag-honey { background: var(--honey-pale); color: var(--honey); }
.tag-burgundy { background: var(--burgundy-pale); color: var(--burgundy-dark); }

/* PRODUCT GRID */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.prod-card { background: var(--pure-white); border-radius: 16px; border: 1px solid var(--border-l); overflow: hidden; box-shadow: 0 1px 3px rgba(42,48,14,0.04); transition: all 0.35s ease; display: flex; flex-direction: column; }
.prod-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(42,48,14,0.12); }
.prod-badge { position: absolute; top: 12px; right: 12px; background: var(--burgundy); color: white; padding: 5px 12px; border-radius: 100px; font-size: 0.68rem; font-weight: 700; z-index: 2; }
.prod-img { height: 190px; background: linear-gradient(135deg, var(--olive-pale), var(--honey-pale)); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.prod-img img { max-height: 85%; max-width: 85%; object-fit: contain; border-radius: 8px; transition: transform 0.3s ease; }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.prod-name { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; line-height: 1.35; }
.prod-detail { font-size: 0.88rem; color: var(--slate); line-height: 1.6; margin-bottom: 12px; flex: 1; }
.prod-meta { display: flex; gap: 14px; padding-top: 12px; border-top: 1px solid var(--border-l); margin-bottom: 12px; }
.prod-meta span { font-size: 0.76rem; color: var(--muted); font-weight: 500; }
.prod-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.prod-btn { flex: 1; padding: 10px 14px; border-radius: 8px; background: var(--olive); color: white; font-weight: 700; font-size: 0.85rem; text-decoration: none; text-align: center; transition: all 0.25s; }
.prod-btn:hover { background: var(--olive-dark); }
.prod-spec { padding: 10px 14px; border-radius: 8px; background: var(--olive-pale); color: var(--olive-dark); font-weight: 600; font-size: 0.82rem; text-decoration: none; text-align: center; transition: all 0.25s; }
.prod-spec:hover { background: var(--olive-border); }

/* REVIEWS */
.rev-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev-card { background: var(--pure-white); border-radius: 14px; padding: 24px; border: 1px solid var(--border-l); }
.rev-stars { color: var(--honey); font-size: 0.95rem; margin-bottom: 10px; letter-spacing: 2px; }
.rev-text { font-size: 0.92rem; color: var(--slate); line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.rev-who { display: flex; align-items: center; gap: 10px; }
.rev-av { width: 36px; height: 36px; border-radius: 50%; background: var(--olive-pale); display: flex; align-items: center; justify-content: center; color: var(--olive); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.rev-name { font-weight: 700; color: var(--dark); font-size: 0.85rem; }
.rev-loc { font-size: 0.72rem; color: var(--muted); display: block; }

/* FAQ */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--pure-white); border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--border-l); overflow: hidden; transition: all 0.25s; }
.faq-item:hover { box-shadow: 0 2px 8px rgba(42,48,14,0.06); }
.faq-q { padding: 18px 22px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 1rem; color: var(--dark); }
.faq-q:hover { color: var(--olive); }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--olive-pale); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; transition: all 0.3s; flex-shrink: 0; margin-left: 14px; color: var(--olive); font-weight: 700; }
.faq-item.active .faq-icon { background: var(--olive); color: white; transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s; }
.faq-item.active .faq-a { max-height: 500px; padding: 0 22px 18px; }
.faq-a p { color: var(--slate); line-height: 1.8; font-size: 0.98rem; margin: 0; }

/* WHY-BOX */
.why-box{background:linear-gradient(135deg,var(--olive-pale),#e8eed8);border-radius:20px;padding:48px 36px;color:var(--dark);position:relative;overflow:hidden}
body.blog_post .why-box h2{font-family:'Fraunces',serif;font-size:clamp(1.4rem,3vw,2rem);font-weight:800;margin-bottom:12px;color:var(--olive-dark)}
.why-box>p{opacity:.85;max-width:600px;margin-bottom:24px;font-size:1.05rem;color:var(--slate)}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.why-item{background:var(--pure-white);border:1px solid var(--border-l);border-radius:12px;padding:20px;box-shadow:0 1px 3px rgba(42,48,14,.04)}
.why-item h5{font-size:.95rem;font-weight:700;margin-bottom:6px;color:var(--olive-dark)}
.why-item p{font-size:.85rem;opacity:.85;margin:0;color:var(--slate);line-height:1.6}
.why-cert{display:inline-block;margin-top:8px;background:var(--olive);color:#fff;padding:3px 10px;border-radius:100px;font-size:.7rem;font-weight:600}

/* CTA BOX */
.cta-box { background: linear-gradient(135deg, var(--olive-dark), var(--olive)); border-radius: 20px; padding: 56px 36px; text-align: center; color: white; position: relative; overflow: hidden; }
body.blog_post .cta-box h2 { font-family: 'Fraunces', serif; font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; color: white; }
.cta-box > p { opacity: 0.9; max-width: 540px; margin: 0 auto 24px; font-size: 1.08rem; }

/* SELLER SIGNAL */
.seller-signal {
  background: var(--olive);
  color: white; padding: 12px 20px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600; text-align: center;
  margin-bottom: 24px;
}
.seller-signal strong { color: var(--honey-pale); }

/* FORMAT TABS */
.fmt-tabs { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.fmt-tab { padding: 12px 22px; border-radius: 10px; border: 2px solid var(--border-l); background: var(--pure-white); cursor: pointer; font-weight: 600; font-size: 0.9rem; color: var(--mid); transition: all 0.25s; font-family: 'Sora', sans-serif; }
.fmt-tab:hover { border-color: var(--olive); color: var(--olive); }
.fmt-tab.active { background: var(--olive); color: white; border-color: var(--olive); }
.fmt-panel { display: none; animation: fadeUp 0.45s ease; }
.fmt-panel.active { display: block; }
.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.fmt-info .best-for { display: inline-block; background: var(--honey-pale); color: var(--honey); padding: 5px 14px; border-radius: 100px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.fmt-info h3 { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 12px; }
.fmt-info p { color: var(--slate); margin-bottom: 20px; font-size: 1rem; line-height: 1.7; }
.fmt-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.spec-box { background: var(--olive-pale); padding: 16px; border-radius: 10px; text-align: center; }
.spec-val { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 800; color: var(--olive); line-height: 1; }
.spec-lbl { font-size: 0.68rem; color: var(--mid); margin-top: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }

/* USE CASE IMAGE CARDS */
.uc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.uc-card { background: var(--pure-white); border-radius: 16px; padding: 0 0 24px; text-align: center; border: 1px solid var(--border-l); overflow: hidden; transition: all 0.35s ease; }
.uc-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(42,48,14,0.1); }
.uc-img { width: 100%; height: 150px; overflow: hidden; }
.uc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.uc-card:hover .uc-img img { transform: scale(1.08); }
.uc-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; padding: 0 16px; }
.uc-card p { font-size: 0.88rem; color: var(--mid); line-height: 1.65; padding: 0 16px; }

/* MOBILE */
@media (max-width: 768px) {
  .rev-wrap { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .fmt-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 20px 44px; }
  .section { padding: 50px 20px; }
  .quick-answer { padding: 20px 24px; }
}

/* KEYFRAMES */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(212,147,12,0.5); } 50% { box-shadow: 0 0 0 8px rgba(212,147,12,0); } }
