/* ============================================================
   surf-store-blog.css
   ------------------------------------------------------------
   Component styles for blog posts on surf-store.com.
   Drops into the Spree theme's stylesheet so Trix-stored
   posts can reference classes like .ss-product-card without
   needing inline styles (which Trix strips).

   Brand tokens locked in the playbook:
     - Ink/Dark:   #0F0F1A
     - Accent:     #3F8BFF  (brand blue, from logo)
     - Accent deep:#1F5FD9  (hover)
     - Accent soft:#EAF2FF
     - SALE orange:#FF6B00
     - Warn (mistake): #E76F51
     - Gold (tip):     #F4A261

   ============================================================ */

/* ---------- Product card ---------- */
.ss-product-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 1px 2px rgba(15,15,26,.04), 0 8px 24px rgba(15,15,26,.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.ss-product-card__image {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F8FA;
  border-radius: 8px;
  overflow: hidden;
}
.ss-product-card__image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ss-product-card__body { flex: 1; min-width: 0; }
.ss-product-card__brand {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ss-product-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #0F0F1A;
  margin: 4px 0 8px;
  line-height: 1.25;
}
.ss-product-card__reason {
  font-size: 14px;
  color: #1F2937;
  line-height: 1.5;
}
.ss-product-card__side {
  flex: 0 0 auto;
  text-align: right;
  min-width: 140px;
}
.ss-product-card__price {
  font-size: 20px;
  font-weight: 800;
  color: #0F0F1A;
  margin-bottom: 10px;
  white-space: nowrap;
}
.ss-product-card__price-compare {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #9CA3AF;
  text-decoration: line-through;
  margin-bottom: 4px;
}

/* ---------- Buttons ---------- */
.ss-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ss-btn--primary { background: #0F0F1A; color: #fff; }
.ss-btn--primary:hover { background: #1F5FD9; color: #fff; }
.ss-btn--accent { background: #3F8BFF; color: #fff; }
.ss-btn--accent:hover { background: #1F5FD9; color: #fff; }
.ss-btn--ghost { background: transparent; color: #0F0F1A; border-color: #E5E7EB; }
.ss-btn--ghost:hover { border-color: #0F0F1A; }

/* ---------- Quick-answer / TL;DR box ---------- */
.ss-quick-answer {
  background: #EAF2FF;
  border-left: 4px solid #3F8BFF;
  padding: 24px 28px;
  border-radius: 8px;
  margin: 24px 0 32px;
}
.ss-quick-answer__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #1F5FD9;
  margin-bottom: 10px;
}
.ss-quick-answer p {
  font-size: 18px;
  color: #0F0F1A;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Tip callout (yellow) ---------- */
.ss-tip {
  background: #FFF8EE;
  border: 1px solid #FCE3B6;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: #1F2937;
  line-height: 1.55;
}
.ss-tip__label {
  font-weight: 700;
  color: #8A5A00;
  margin-right: 6px;
}

/* ---------- Mistake callout (red) ---------- */
.ss-mistake {
  background: #FFF5F3;
  border-left: 4px solid #E76F51;
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 8px;
}
.ss-mistake__label {
  display: block;
  color: #E76F51;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.ss-mistake p { margin: 0; }

/* ---------- Numbered section heading (01 — Title) ---------- */
.ss-section-num {
  display: block;
  color: #3F8BFF;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 8px;
}

/* ---------- Hero / intro lede ---------- */
.ss-lede {
  font-size: 19px;
  line-height: 1.55;
  color: #1F2937;
  margin-bottom: 28px;
}
.ss-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  margin-bottom: 32px;
  font-size: 13px;
  color: #6B7280;
  flex-wrap: wrap;
}
.ss-byline__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3F8BFF, #1F5FD9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}
.ss-byline__name { font-weight: 600; color: #0F0F1A; }

/* ---------- FAQ accordion (using <details>) ---------- */
.ss-faq details {
  border-bottom: 1px solid #E5E7EB;
  padding: 18px 0;
}
.ss-faq summary {
  font-size: 17px;
  font-weight: 600;
  color: #0F0F1A;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ss-faq summary::after {
  content: "+";
  font-size: 24px;
  color: #3F8BFF;
  line-height: 1;
  transition: transform .2s;
}
.ss-faq details[open] summary { color: #1F5FD9; }
.ss-faq details[open] summary::after { transform: rotate(45deg); }
.ss-faq details p {
  margin-top: 14px;
  color: #1F2937;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Big dark CTA at end of post ---------- */
.ss-cta {
  background: #0F0F1A;
  color: #fff;
  border-radius: 12px;
  padding: 40px 36px;
  margin: 48px 0 32px;
  text-align: center;
}
.ss-cta h3 {
  color: #fff !important;
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.ss-cta p {
  color: rgba(255,255,255,.75);
  margin: 0 0 24px;
  font-size: 15px;
}
.ss-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ss-cta .ss-btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.ss-cta .ss-btn--ghost:hover { border-color: #fff; color: #fff; }
.ss-cta__trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 22px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  flex-wrap: wrap;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .ss-product-card {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ss-product-card__image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }
  .ss-product-card__side {
    flex: 1 1 100%;
    text-align: left;
    border-top: 1px solid #E5E7EB;
    padding-top: 12px;
    min-width: 0;
  }
  .ss-product-card__price { display: inline-block; margin-right: 16px; }
  .ss-cta { padding: 28px 20px; }
  .ss-cta h3 { font-size: 22px; }
}
