@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900\&family=Barlow:wght@300;400;500;600\&display=swap");

/* ============================================================
   surf-store-blog.css
   ------------------------------------------------------------
   Component styles for blog posts on surf-store.com.
   Drops into the Spree theme so Trix-stored posts can reference
   these classes without inline styles (which Trix strips).

   Playbook design tokens:
     --bg:       #0F0F1A  (page background)
     --surface:  #1E1E30  (dark cards)
     --surface2: #252540  (pills, hover)
     --accent:   #3F8BFF  (primary CTA, cyan)
     --gold:     #F5A623  (premium badge)
     --green:    #2ECC71  (value badge)
     --text:     #E8E8F0
     --muted:    #7E7E9A
   ============================================================ */

/* ============================================================
   PLAYBOOK PRODUCT CARDS  — dark theme, full design
   ============================================================ */
.product-card {
  display: flex;
  background: #1E1E30;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  margin: 28px 0;
  overflow: hidden;
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transition: box-shadow .2s;
}
.product-card:hover {
  box-shadow: 0 0 0 1px rgba(63,139,255,0.35), 0 8px 32px rgba(0,0,0,0.4);
}
.product-card.featured { border-top: 3px solid #3F8BFF; }
.product-card.premium  { border-top: 3px solid #F5A623; }
.product-card.value    { border-top: 3px solid #2ECC71; }

/* Image pane */
.product-card .product-img {
  flex: 0 0 180px;
  width: 180px;
  min-height: 180px;
  background: #14141F;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Body */
.product-card .product-body {
  flex: 1;
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* Header: name + badge */
.product-card .product-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.product-card .product-name {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  flex: 1;
}
.product-card .product-badge {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}
.product-card .badge-top     { background: rgba(63,139,255,0.15); color: #3F8BFF; border: 1px solid rgba(63,139,255,0.3); }
.product-card .badge-premium { background: rgba(245,166,35,0.15); color: #F5A623; border: 1px solid rgba(245,166,35,0.3); }
.product-card .badge-value   { background: rgba(46,204,113,0.15); color: #2ECC71; border: 1px solid rgba(46,204,113,0.3); }
.product-card .badge-alt     { background: rgba(180,100,255,0.15); color: #B464FF; border: 1px solid rgba(180,100,255,0.3); }

/* Spec pills */
.product-card .product-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card .spec-pill {
  background: #252540;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  color: #7E7E9A;
}
.product-card .spec-pill strong {
  color: #E8E8F0;
  font-weight: 600;
}

/* Description */
.product-card .product-desc {
  font-size: 14px;
  color: #7E7E9A;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Footer: price + button */
.product-card .product-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.product-card .product-price {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
}
.product-card .product-price-compare {
  font-size: 14px;
  color: #7E7E9A;
  text-decoration: line-through;
}
.product-card .btn-shop {
  display: inline-block;
  padding: 11px 22px;
  background: #3F8BFF;
  color: #0F0F1A;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.product-card .btn-shop:hover {
  background: #1F5FD9;
  color: #0F0F1A;
}

/* Section heading for recommended block */
.ss-recommended-heading {
  font-family: 'Barlow Condensed', 'Barlow', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #E8E8F0;
  margin: 48px 0 4px;
  letter-spacing: -.01em;
}
.ss-recommended-subhead {
  font-size: 14px;
  color: #7E7E9A;
  margin: 0 0 8px;
}

/* ============================================================
   LEGACY  ss-product-card (keeps older posts working)
   ============================================================ */
.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; }

/* ---------- Callout boxes ---------- */
.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; }
.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; }
.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; }
.ss-section-num { display: block; color: #3F8BFF; font-size: 13px; font-weight: 700; letter-spacing: .12em; margin-bottom: 8px; }
.ss-lede { font-size: 19px; line-height: 1.55; color: #1F2937; margin-bottom: 28px; }

/* ---------- CTA ---------- */
.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; }
.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) {
  .product-card { flex-direction: column; }
  .product-card .product-img { flex: 0 0 220px; width: 100%; height: 220px; }
  .product-card .product-body { padding: 20px 16px 16px; }
  .product-card .product-name { font-size: 18px; }
  .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; }
}
