/* ===== BLOG V2 — High-CR Landing Page Conversion Elements ===== */
/* Supplements blog.css — adds quiz CTA zones, sticky bar, exit modal, trust elements */

/* ===== TRUST STRIP (below header in non-scrolled state) ===== */
.blog-trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
}

.blog-trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.blog-trust-strip .trust-stars {
  color: #FFD700;
  letter-spacing: 1px;
}

.blog-trust-strip .trust-check {
  color: #10b981;
  font-weight: 700;
}

/* ===== HERO IMAGE ===== */
.article-hero-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0; /* Square on mobile by default */
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .article-hero-image {
    border-radius: var(--radius-lg, 20px); /* All corners rounded on desktop */
    margin-top: 1.5rem;
  }
}

/* ===== QUIZ CTA ZONE — The Money Element ===== */
.blog-quiz-cta-zone {
  background: linear-gradient(135deg, var(--bg-light, #f8f9fa) 0%, #e2e8f0 100%);
  border-radius: var(--radius-lg, 20px);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.blog-quiz-cta-zone .cta-badge {
  display: inline-block;
  background: #fffbeb;
  color: #d97706;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
}

.blog-quiz-cta-zone h3 {
  color: #0f172a;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  line-height: 1.3;
}

.blog-quiz-cta-zone .cta-sub {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-quiz-cta-zone .cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #d97706;
  font-weight: 700;
}

.blog-quiz-cta-zone .cta-trust .stars {
  letter-spacing: 2px;
  color: #FFC107;
}

.blog-quiz-cta-zone .cta-trust .trust-count {
  display: none; /* Hide numbers per requirement */
}

/* The BIG CTA button */
.blog-quiz-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(180deg, #FFD54F 0%, #FFC107 100%);
  color: #000000;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 1.1rem 2.8rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  z-index: 1;
  max-width: 380px;
}

.blog-quiz-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 193, 7, 0.6);
}

.blog-quiz-start-btn:active {
  transform: translateY(0);
}

.blog-quiz-start-btn svg {
  width: 20px;
  height: 20px;
}

@keyframes pulseGlowBlog {
  0% { box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5); }
  50% { box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5), 0 0 0 8px rgba(255, 193, 7, 0.15); }
  100% { box-shadow: 0 4px 20px rgba(255, 193, 7, 0.5); }
}

/* Micro-copy under CTA */
.blog-quiz-cta-zone .cta-micro {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #64748b;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .blog-quiz-cta-zone .cta-micro {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

.blog-quiz-cta-zone .cta-micro span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Urgency badge */
.blog-quiz-cta-zone .cta-urgency {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: #10b981;
  font-weight: 600;
}

.cta-urgency .urgency-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: urgencyPulse 1.5s infinite;
}

@keyframes urgencyPulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ===== INLINE QUIZ CONTAINER (hidden by default) ===== */
#blog-quiz-container {
  display: none;
  margin: 2.5rem 0;
  border-radius: var(--radius-lg, 20px);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  /* Smooth slide-down reveal */
  animation: quizReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top center;
}

#blog-quiz-container.quiz-visible {
  display: block;
}

@keyframes quizReveal {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Override quiz wrapper for inline embedding */
#blog-quiz-container .quiz-wrapper {
  min-height: auto;
  padding: 0;
  background: none;
}

#blog-quiz-container .quiz-container {
  max-width: 100%;
  border-radius: var(--radius-lg, 20px);
}

/* Scroll target anchor for smooth scroll */
.blog-quiz-anchor {
  scroll-margin-top: 80px;
}

/* ===== SINGLE PRIZE MODE (exclusive reward) ===== */
.blog-single-prize {
  text-align: center;
  padding: 1.5rem 1rem;
}

.blog-single-prize .prize-celebration {
  font-size: 1.3rem;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 1.5rem;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
}

/* Use exact same card style as the main quiz */
.blog-single-prize .prize-card {
  background: #fff;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 1.5rem;
  max-width: 280px;
  margin: 0 auto 1.5rem;
  transition: border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  animation: cardBreathe 2.5s infinite ease-in-out;
}

.blog-single-prize .prize-card:hover,
.blog-single-prize .prize-card:active {
  border-color: #FFC107;
}

@keyframes cardBreathe {
  0%, 100% { box-shadow: 0 4px 12px rgba(0,0,0,0.05); transform: scale(1); }
  50% { box-shadow: 0 8px 24px rgba(255, 193, 7, 0.25); transform: scale(1.02); }
}

.blog-single-prize .prize-img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin: 0 auto 1rem;
  display: block;
}

.blog-single-prize .prize-name {
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-single-prize .prize-scarcity {
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 1rem;
}

.blog-single-prize .prize-scarcity .pulse-dot {
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulseRed 2s infinite;
}

/* Smaller inline button looking like the grid selection button */
.blog-single-prize .prize-reserve-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--clr-primary-dark, #e6ad00);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s;
}

.blog-single-prize .prize-card:hover .prize-reserve-btn {
  color: #d97706;
}

.blog-single-prize .prize-reserve-btn svg {
  width: 16px;
  height: 16px;
}

/* ===== TESTIMONIAL STRIP ===== */
.blog-testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 3rem 0;
}

.blog-testimonial-card {
  background: var(--bg-white, #ffffff);
  border: 1px solid var(--clr-gray-200, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}

.blog-testimonial-card .testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-testimonial-card .testimonial-content {
  flex: 1;
}

.blog-testimonial-card .testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.2rem;
}

.blog-testimonial-card .testimonial-loc {
  font-size: 0.78rem;
  color: var(--clr-gray-500, #64748b);
  margin-bottom: 0.4rem;
}

.blog-testimonial-card .testimonial-stars {
  color: #FFD700;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.blog-testimonial-card .testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-body, #334155);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-testimonials {
    grid-template-columns: 1fr;
  }
}

/* ===== STICKY MOBILE CTA BAR ===== */
.blog-sticky-bar {
  display: none; /* hidden by default, shown on mobile via JS */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #1e293b;
  border-top: 1px solid rgba(255, 193, 7, 0.2);
  padding: 0.7rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-sticky-bar.visible {
  display: flex;
  transform: translateY(0);
}

.blog-sticky-bar.hidden {
  transform: translateY(100%);
}

.blog-sticky-bar .sticky-text {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-sticky-bar .sticky-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(180deg, #FFD54F 0%, #FFC107 100%);
  color: #000000;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.65rem 1.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
  transition: all 0.3s ease;
}

.blog-sticky-bar .sticky-btn:hover {
  transform: scale(1.03);
}

.blog-sticky-bar .sticky-btn svg {
  width: 16px;
  height: 16px;
}

/* Only show on mobile / tablet */
@media (min-width: 769px) {
  .blog-sticky-bar {
    display: none !important;
  }
}

/* ===== EXIT-INTENT MODAL — AGGRESSIVE VARIANT ===== */
.blog-exit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.blog-exit-modal.active {
  display: flex;
}

.blog-exit-modal .exit-card {
  background: #ffffff;
  border-radius: var(--radius-lg, 20px);
  padding: 2.5rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: exitSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes exitSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.blog-exit-modal .exit-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.blog-exit-modal .exit-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.blog-exit-modal .exit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.blog-exit-modal .exit-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.75rem;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  line-height: 1.3;
}

.blog-exit-modal .exit-card p {
  font-size: 0.95rem;
  color: var(--text-body, #334155);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.blog-exit-modal .exit-scarcity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.blog-exit-modal .exit-scarcity .pulse-dot {
  width: 6px;
  height: 6px;
  background: #dc2626;
  border-radius: 50%;
  animation: pulseRed 2s infinite;
}

.blog-exit-modal .exit-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #FFD54F 0%, #FFC107 100%);
  color: #000000;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  font-size: 1rem;
  font-weight: 800;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  width: 100%;
  max-width: 340px;
}

.blog-exit-modal .exit-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 193, 7, 0.6);
}

.blog-exit-modal .exit-cta svg {
  width: 18px;
  height: 18px;
}

.blog-exit-modal .exit-micro {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--clr-gray-500, #64748b);
}

/* ===== HEADER CTA (for blog pages — stolen from main page) ===== */
.site-header .header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(180deg, #FFD54F 0%, #FFC107 100%);
  color: #000000;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.2rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.4s ease, opacity 0.4s ease;
  white-space: nowrap;
}

.site-header.scrolled .header-cta {
  max-width: 250px;
  opacity: 1;
  pointer-events: auto;
  margin-left: auto;
}

.site-header .header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
}

.site-header .header-cta svg {
  width: 16px;
  height: 16px;
}

/* Mobile header CTA adjustments */
@media (max-width: 768px) {
  .site-header .header-cta {
    font-size: 0.75rem;
    padding: 0.45rem 0.9rem;
  }
  .site-header .header-cta .cta-text-full {
    display: none;
  }
  .site-header .header-cta .cta-text-short {
    display: inline;
  }
}

@media (min-width: 769px) {
  .site-header .header-cta .cta-text-short {
    display: none;
  }
}

/* ===== 3-STEP PROCESS (compact inline version) ===== */
.blog-steps-inline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  font-family: var(--ff-heading, 'Montserrat', sans-serif);
  flex-wrap: wrap;
}

.blog-steps-inline .step-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.blog-steps-inline .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.2);
  color: #FFC107;
  font-size: 0.7rem;
  font-weight: 800;
}

.blog-steps-inline .step-arrow {
  color: #475569;
  font-size: 0.7rem;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .blog-quiz-cta-zone {
    padding: 2rem 1.5rem;
    margin: 2rem -1.5rem;
    border-radius: 0;
  }

  .blog-quiz-cta-zone h3 {
    font-size: 1.35rem;
  }

  .blog-quiz-start-btn {
    font-size: 1rem;
    padding: 1rem 2rem;
  }

  .blog-trust-strip {
    gap: 0.8rem;
    font-size: 0.8rem;
    padding: 0.8rem 1rem;
  }

  .blog-quiz-cta-zone .cta-product-img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .blog-quiz-cta-zone h3 {
    font-size: 1.2rem;
  }

  .blog-quiz-cta-zone .cta-micro {
    flex-direction: column;
    gap: 0.3rem;
  }

  .blog-trust-strip {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ===== UI/UX SURGICAL POLISH FIXES ===== */

/* Sticky Header Responsive Fix */
@media (max-width: 500px) {
  .site-header.scrolled .logo:has(.logo-text-short) .logo-text-full {
    display: none;
  }
  .site-header.scrolled .logo-text-short {
    display: inline-block;
  }
  .header-cta {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* Testimonial Cards Mobile Width Fix */
@media (max-width: 768px) {
  .blog-testimonial-card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }
}

/* Scarcity Pulse Animation */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Fix Quiz Image Borders & Shadows from .article-content */
.reward-img, .prize-img, .quiz-checkbox-inner img, .processing-step img {
  mix-blend-mode: darken;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.reward-img, .prize-img {
  margin: 0 auto 1rem auto !important;
}
.quiz-checkbox-inner img {
  margin: 0 auto 0.5rem auto !important;
}

