/* ============================================================
   WDYS CTA Blocks - Polish Pass (July 2026)
   Break-frame coo treatment: no boxes, radial glow, bigger coos
   Tighter desktop spacing, unified orange pill buttons sitewide
   ============================================================ */

/* ---- Shared coo-block layout - NO BOX, break-frame ---- */
.coo-block {
  display: flex;
  align-items: center;
  gap: 24px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 0;
  margin: 24px 0;
  max-width: 760px;
  position: relative;
}

/* Soft radial glow behind each block - orange or blue tint depending on block type */
.coo-block::before {
  content: '';
  position: absolute;
  inset: -20px -40px;
  background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(249,115,22,0.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.coo-block > * {
  position: relative;
  z-index: 1;
}

/* App block gets a blue glow */
.coo-block.coo-block-app::before {
  background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(26,95,180,0.10), transparent 70%);
}

/* Insult block gets a smirk-orange glow */
.coo-block.coo-block-insult::before {
  background: radial-gradient(ellipse 60% 80% at 15% 50%, rgba(249,115,22,0.08), transparent 70%);
}

/* ---- Coo image: bigger, break-frame ---- */
.coo-block-img {
  flex-shrink: 0;
  width: 160px;
  height: auto;
  object-fit: contain;
  display: block;
  /* Slight upward break - coo peeks above the content line */
  margin-top: -20px;
  margin-bottom: -10px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

.coo-block-img.coo-dreich {
  padding: 0;
}

/* ---- Body text: pulled closer to coo ---- */
.coo-block-body {
  flex: 1;
  min-width: 0;
}

.coo-block-label {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5B9BD5;
  margin-bottom: 5px;
}

.coo-block-heading {
  font-family: 'Lilita One', cursive;
  font-size: 1.5rem;
  color: #F8FAFC;
  line-height: 1.15;
  margin: 0 0 8px 0;
}

.coo-block-body p {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.95rem;
  color: #AAB6C5;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

/* ---- CTA buttons - ONE style: orange pill + glow everywhere ---- */
.coo-btn,
.coo-btn-orange,
.coo-btn-blue {
  display: inline-block;
  font-family: 'League Spartan', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}

/* Orange pill - primary CTA */
.coo-btn-orange {
  background: #F97316;
  color: #fff;
  box-shadow: 0 10px 28px rgba(249,115,22,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}

.coo-btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(249,115,22,0.48), inset 0 1px 0 rgba(255,255,255,0.22);
  color: #fff;
}

/* Blue pill - secondary CTA (app store etc) */
.coo-btn-blue {
  background: #1A5FB4;
  color: #fff;
  box-shadow: 0 10px 28px rgba(26,95,180,0.30), inset 0 1px 0 rgba(255,255,255,0.12);
}

.coo-btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(26,95,180,0.42), inset 0 1px 0 rgba(255,255,255,0.16);
  color: #fff;
}

/* Base .coo-btn defaults to orange pill if no colour modifier */
.coo-btn:not(.coo-btn-blue) {
  background: #F97316;
  color: #fff;
  box-shadow: 0 10px 28px rgba(249,115,22,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
}

.coo-btn:not(.coo-btn-blue):hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(249,115,22,0.48);
  color: #fff;
}

/* ---- App store badge row ---- */
.coo-block .btn-row {
  margin-top: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---- Merch block: optional tee thumbnail ---- */
.merch-tee-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(249,115,22,0.25);
  flex-shrink: 0;
  display: block;
}

.merch-block-inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* ---- Newsletter success state ---- */
.newsletter-success-coo {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 20px;
  gap: 16px;
}

.newsletter-success-coo img {
  width: 110px;
  height: auto;
}

.newsletter-success-coo h3 {
  font-family: 'Lilita One', cursive;
  font-size: 1.4rem;
  color: #F8FAFC;
  margin: 0;
}

.newsletter-success-coo p {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.95rem;
  color: #AAB6C5;
  line-height: 1.55;
  margin: 0;
  max-width: 400px;
}

/* ---- 404 page ---- */
.error-page-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 120px;
  gap: 20px;
}

.error-page-wrap img {
  width: 200px;
  height: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 28px rgba(0,0,0,0.4));
}

.error-page-wrap h1 {
  font-family: 'Lilita One', cursive;
  font-size: 2rem;
  color: #F8FAFC;
  margin: 0;
}

.error-page-wrap p {
  font-family: 'League Spartan', sans-serif;
  font-size: 1rem;
  color: #AAB6C5;
  max-width: 420px;
  margin: 0;
  line-height: 1.55;
}

/* ---- Affiliate disclosure ---- */
.affiliate-disclosure {
  font-family: 'League Spartan', sans-serif;
  font-size: 0.85rem;
  color: #5B9BD5;
  background: rgba(91,155,213,0.07);
  border: 1px solid rgba(91,155,213,0.18);
  border-radius: 8px;
  padding: 10px 16px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* ---- Peek coo: flush to edge, break-frame ---- */
.coo-peek-wrap {
  position: relative;
  overflow: visible;
}

.coo-peek-left {
  position: absolute;
  left: -20px;
  bottom: -10px;
  width: 175px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.35));
  pointer-events: none;
  z-index: 2;
}

.coo-peek-top {
  top: 30px;
  bottom: auto;
}

.coo-peek-right {
  position: absolute;
  right: -20px;
  bottom: -10px;
  width: 175px;
  height: auto;
  filter: drop-shadow(0 6px 20px rgba(0,0,0,0.35));
  pointer-events: none;
  z-index: 2;
  transform: scaleX(-1);
}

/* ---- Dictionary hub hero with book coo ---- */
.dict-hero-wrap {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  position: relative;
}

.dict-hero-coo {
  flex-shrink: 0;
  width: 180px;
  height: auto;
  margin-bottom: -8px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
  .coo-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px 0;
    gap: 12px;
  }

  .coo-block::before {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249,115,22,0.07), transparent 70%);
  }

  .coo-block-img {
    width: 110px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .coo-block-body p {
    font-size: 0.9rem;
  }

  .coo-btn,
  .coo-btn-orange,
  .coo-btn-blue {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
    margin-bottom: 4px;
  }

  .coo-block-label {
    text-align: center;
  }

  .merch-block-inner {
    flex-direction: column;
    align-items: center;
  }

  .error-page-wrap {
    padding-bottom: 100px;
  }

  .coo-btn-orange {
    word-break: break-word;
    hyphens: auto;
  }

  .coo-peek-left,
  .coo-peek-right {
    width: 110px;
  }

  .dict-hero-coo {
    width: 120px;
  }
}

/* ---- Bottom tab bar clearance ---- */
@media (max-width: 920px) {
  .coo-block:last-of-type,
  section.section-block:last-of-type {
    margin-bottom: 80px;
  }
}


/* store badges - global (moved so every page renders them) */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 178px;
  min-height: 56px;
  padding: 10px 16px;
  border-radius: 13px;
  background: #05070D;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
}
.store-badge svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}
.store-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  text-align: left;
}
.store-small {
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
  margin-bottom: 4px;
}
.store-large {
  font-size: 1.08rem;
  font-weight: 700;
}
.store-badge,
  .text-link-button,
  .read-more {
    width: 100%;
    justify-content: center;
  }

/* app-only cards: no clickable-looking hover, wee chip instead */
.feature-card:not(.is-link):hover { border-color: rgba(91,155,213,0.18) !important; transform: none !important; box-shadow: none !important; }
.app-chip { position:absolute; top:14px; right:14px; font-family:'League Spartan',sans-serif; font-size:0.66rem; font-weight:800; letter-spacing:0.09em; text-transform:uppercase; color:#5B9BD5; border:1px solid rgba(91,155,213,0.35); border-radius:999px; padding:3px 10px; pointer-events:none; }

/* painterly icons on the money CTA cards */
.money-cta-icon { width: 96px; height: 96px; object-fit: contain; display: block; margin-bottom: 12px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4)); }
@media (max-width: 640px) { .money-cta-icon { width: 80px; height: 80px; } }

/* pack + speaker icons: brand-coloured SVG, no emoji */
.pack-icon svg { width: 26px; height: 26px; color: #5B9BD5; display: block; margin: 0 auto; }
.slang-audio-btn svg, button svg.spk { color: #F97316; }

/* ============================================
   BLOG HERO COO (mirrors dict-hero pattern)
   ============================================ */
.blog-hero-wrap {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  position: relative;
}
.blog-hero-coo {
  flex-shrink: 0;
  width: 170px;
  height: auto;
  margin-bottom: -8px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
}
@media (max-width: 640px) {
  /* On mobile the coo sits in the hero's bottom-right corner (words-hub pattern)
     instead of squeezing the text column */
  .blog-hero-wrap { display: block; }
  .blog-hero-coo {
    position: absolute;
    right: 4px;
    bottom: -4px;
    width: 104px;
    margin-bottom: 0;
  }
  .content-hero.content-wrap { padding-bottom: 96px; }
}

/* Tighter rhythm around blog app badges + related posts */
.related-posts { margin-top: 16px !important; padding-top: 20px !important; }
article .btn-row { margin: 20px 0 8px; }
