/* ══════════════════════════════════════
   TEENBUCKS UI UPGRADE v3.0
   CTA Upgrades, Premium Feel, Anti-AI-Slop
   Applied on top of existing design system
══════════════════════════════════════ */

/* ══════════════════════════════════════
   SUBSCRIBE MODAL — matches TeenBucks design system
══════════════════════════════════════ */
.tb-sub-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tb-sub-modal.open {
  opacity: 1;
  pointer-events: all;
}
.tb-sub-modal__card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px 36px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.tb-sub-modal.open .tb-sub-modal__card {
  transform: translateY(0) scale(1);
}
/* Coral top accent bar */
.tb-sub-modal__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E85D4C, #f08070);
  border-radius: 20px 20px 0 0;
}
.tb-sub-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
  font-family: system-ui, sans-serif;
}
.tb-sub-modal__close:hover {
  background: #fef2f2;
  color: #E85D4C;
}
.tb-sub-modal__icon {
  font-size: 36px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}
.tb-sub-modal__title {
  /* Uses TeenBucks display font */
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.tb-sub-modal__sub {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin: 0 0 26px;
}
.tb-sub-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tb-sub-modal__input {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  font-size: 15px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
  text-align: center;
  letter-spacing: 0.01em;
}
.tb-sub-modal__input:focus {
  border-color: #E85D4C;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232, 93, 76, 0.12);
}
.tb-sub-modal__input::placeholder {
  color: #94a3b8;
  font-size: 14px;
}
.tb-sub-modal__btn {
  width: 100%;
  padding: 15px 24px;
  background: #E85D4C;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(232, 93, 76, 0.30);
}
.tb-sub-modal__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.tb-sub-modal__btn:hover:not(:disabled) {
  background: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 93, 76, 0.45);
}
.tb-sub-modal__btn:active {
  transform: translateY(0);
}
.tb-sub-modal__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.tb-sub-modal__note {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin: 16px 0 0;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f0fdf4;
  line-height: 1.5;
}
.tb-sub-modal__note a {
  color: #E85D4C;
  text-decoration: underline;
}
.tb-sub-modal__legal {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  color: #94a3b8;
  margin: 14px 0 0;
  letter-spacing: 0.01em;
}
/* Divider between input and trust */
.tb-sub-modal__divider {
  width: 32px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 16px auto 0;
}
@media (max-width: 480px) {
  .tb-sub-modal__card { padding: 36px 24px 28px; }
  .tb-sub-modal__title { font-size: 20px; }
  .tb-sub-modal__btn { font-size: 14px; padding: 13px 20px; }
}





/* ══════════════════════════════════════
   HERO UPGRADES
══════════════════════════════════════ */

/* Animated hero badge */
.tb-hero__badge {
  animation: badge-pulse 3s ease-in-out infinite;
  position: relative;
}
.tb-hero__badge::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: rgba(232, 93, 76, 0.15);
  animation: badge-ring 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
@keyframes badge-ring {
  0%, 100% { transform: scale(1); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Hero primary button - bigger, more impactful */
.tb-btn--hero-primary {
  padding: 16px 32px !important;
  font-size: 16px !important;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.tb-btn--hero-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.tb-btn--hero-primary:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 36px rgba(232, 93, 76, 0.50) !important;
}

/* Trust badges row under hero buttons */
.tb-hero__trust {
  padding-top: var(--space-6);
}
.tb-hero__trust-text {
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* Add a stat strip to hero */
.tb-hero__stats {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}
.tb-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tb-hero__stat-num {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  color: var(--tb-coral-300);
  letter-spacing: -0.02em;
}
.tb-hero__stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  font-family: var(--font-ui);
}

/* ══════════════════════════════════════
   CATEGORY CARD UPGRADES
══════════════════════════════════════ */
.tb-cat-card {
  position: relative;
  overflow: hidden;
}
.tb-cat-card::after {
  content: '→';
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-5);
  font-size: 18px;
  color: var(--tb-coral-300);
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s var(--ease);
  font-family: var(--font-ui);
  font-weight: 600;
}
.tb-cat-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.tb-cat-card__icon {
  transition: transform 0.25s var(--ease);
}
.tb-cat-card:hover .tb-cat-card__icon {
  transform: scale(1.15) rotate(-5deg);
}

/* ══════════════════════════════════════
   POST CARD UPGRADES (Homepage Grid)
══════════════════════════════════════ */
.tb-post-card {
  position: relative;
}
.tb-post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 60%, rgba(232, 93, 76, 0.04) 100%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
  z-index: 0;
}
.tb-post-card:hover::before { opacity: 1; }

/* Read More pseudo-CTA on post cards */
.tb-post-card__read-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--tb-coral-500);
  transition: gap 0.2s var(--ease), color 0.2s;
}
.tb-post-card:hover .tb-post-card__read-cta {
  gap: 10px;
  color: var(--tb-coral-600);
}

/* ══════════════════════════════════════
   BLOG LISTING CARD UPGRADES
══════════════════════════════════════ */
.tb-blog-card {
  position: relative;
}
.tb-blog-card__read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-3);
  padding: 8px 16px;
  background: var(--tb-coral-50);
  border: 1.5px solid rgba(232, 93, 76, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-coral-600);
  transition: all 0.2s var(--ease);
  width: fit-content;
}
.tb-blog-card:hover .tb-blog-card__read-btn {
  background: var(--tb-coral-500);
  border-color: var(--tb-coral-500);
  color: white;
  gap: 10px;
}
.tb-blog-card__read-btn .arrow {
  transition: transform 0.2s var(--ease);
}
.tb-blog-card:hover .tb-blog-card__read-btn .arrow {
  transform: translateX(4px);
}

/* Reading time pill on blog cards */
.tb-blog-card__read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--tb-navy-50);
  color: var(--tb-text-muted);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-family: var(--font-ui);
  font-weight: 500;
}

/* ══════════════════════════════════════
   SECTION HEADER UPGRADES
══════════════════════════════════════ */
.tb-section__title {
  position: relative;
  display: inline-block;
}
/* Subtle underline accent for section titles */
.tb-section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--tb-coral-400);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ══════════════════════════════════════
   STICKY POST CTA BAR (Single Posts)
══════════════════════════════════════ */
.tb-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--tb-navy-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.20);
}
.tb-sticky-cta.visible {
  transform: translateY(0);
}
.tb-sticky-cta__text {
  font-family: var(--font-ui);
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tb-sticky-cta__text strong {
  color: white;
}
.tb-sticky-cta__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.tb-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.tb-sticky-cta__btn--primary {
  background: var(--tb-coral-500);
  color: white;
  box-shadow: 0 0 0 0 rgba(232, 93, 76, 0.5);
  animation: cta-pulse 2.5s ease-in-out infinite;
}
.tb-sticky-cta__btn--primary:hover {
  background: var(--tb-coral-400);
  color: white;
  transform: scale(1.03);
}
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 93, 76, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(232, 93, 76, 0); }
}
.tb-sticky-cta__close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.35);
  font-size: 18px;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}
.tb-sticky-cta__close:hover { color: rgba(255,255,255,0.70); }
@media (max-width: 640px) {
  .tb-sticky-cta { padding: 10px 16px; }
  .tb-sticky-cta__text { display: none; }
  .tb-sticky-cta__btn { padding: 9px 18px; font-size: 13px; }
}

/* ══════════════════════════════════════
   READING PROGRESS BAR UPGRADE
══════════════════════════════════════ */
.tb-read-progress {
  height: 3px !important;
  background: linear-gradient(90deg, var(--tb-coral-600), var(--tb-coral-400), #F8B4AC) !important;
  box-shadow: 0 0 8px rgba(232, 93, 76, 0.5);
}

/* ══════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════ */
.tb-back-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  z-index: 400;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--tb-navy-800);
  color: white;
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  transform: scale(0.8) translateY(10px);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-md);
}
.tb-back-top.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.tb-back-top:hover {
  background: var(--tb-coral-500);
  transform: scale(1.1);
  box-shadow: var(--shadow-coral);
}

/* ══════════════════════════════════════
   AD SLOT — Remove visible dashed border
   (clean look for AdSense review)
══════════════════════════════════════ */
.tb-ad-slot {
  background: transparent !important;
  border: none !important;
  min-height: 20px !important;
}
.tb-ad-slot span {
  display: none !important; /* hide "Advertisement" text label */
}
.tb-ad-slot--in-article {
  min-height: 50px !important;
}
.tb-ad-slot--sidebar {
  min-height: 50px !important;
}

/* ══════════════════════════════════════
   NEWSLETTER SECTION UPGRADES
══════════════════════════════════════ */
.tb-newsletter {
  position: relative;
  overflow: hidden;
}
.tb-newsletter::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 93, 76, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
/* Bigger, more confident subscribe button */
.tb-newsletter__form .tb-btn--primary {
  padding: 13px 28px !important;
  font-size: 15px !important;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.tb-newsletter__form .tb-btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
}

/* ══════════════════════════════════════
   FOOTER UPGRADE — Social proof strip
══════════════════════════════════════ */
.tb-footer__social-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.tb-footer__social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.tb-footer__social-link:hover { color: var(--tb-coral-400); }

/* ══════════════════════════════════════
   FAQ ITEM STYLING UPGRADE
══════════════════════════════════════ */
.tb-faq-item {
  border: 1px solid var(--tb-navy-100) !important;
  border-radius: var(--radius-lg) !important;
  padding: 20px 24px !important;
  margin-bottom: 16px !important;
  background: white;
  transition: all 0.2s var(--ease);
}
.tb-faq-item:hover {
  border-color: var(--tb-coral-200) !important;
  box-shadow: var(--shadow-md);
}
.tb-faq-q {
  margin-top: 0 !important;
  font-size: 17px !important;
  color: var(--tb-charcoal) !important;
  font-family: var(--font-display) !important;
}
.tb-faq-q::before {
  content: 'Q ';
  color: var(--tb-coral-500);
  font-weight: 700;
  font-family: var(--font-ui);
}
.tb-faq-a {
  font-size: 15px !important;
  color: var(--tb-text-light) !important;
  line-height: 1.7 !important;
  margin-top: 10px;
  border-top: 1px solid var(--tb-navy-50);
  padding-top: 12px;
}

/* ══════════════════════════════════════
   QUICK ANSWER BOX UPGRADE
══════════════════════════════════════ */
.tb-quick-answer {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border: 1.5px solid #86efac !important;
  border-left: 4px solid #16a34a !important;
  padding: 24px 28px !important;
  border-radius: var(--radius-lg) !important;
  margin-bottom: 36px !important;
  position: relative;
  overflow: hidden;
}
.tb-quick-answer::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.08) 0%, transparent 70%);
}

/* ══════════════════════════════════════
   META BAR UPGRADE
══════════════════════════════════════ */
.tb-meta-bar {
  border-left: 4px solid #16a34a !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, #f0fdf4 0%, white 100%) !important;
  margin-bottom: 28px !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.1);
}

/* ══════════════════════════════════════
   VIEW ALL BUTTON — More prominent
══════════════════════════════════════ */
.tb-btn--outline {
  padding: 13px 28px !important;
  font-size: 14px !important;
  border-width: 1.5px !important;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease) !important;
}
.tb-btn--outline:hover {
  background: var(--tb-coral-500) !important;
  border-color: var(--tb-coral-500) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-coral) !important;
}

/* ══════════════════════════════════════
   RELATED POSTS CARD UPGRADE
══════════════════════════════════════ */
.tb-related__card {
  transition: all 0.25s var(--ease) !important;
}
.tb-related__card:hover {
  border-color: var(--tb-coral-300) !important;
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important;
}
.tb-related__card-title {
  font-size: 14px !important;
  line-height: 1.4 !important;
}
.tb-related__body {
  padding: 14px 16px !important;
}
/* Add "Read →" text to related cards */
.tb-related__body::after {
  content: 'Read →';
  display: block;
  margin-top: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-coral-500);
  transition: letter-spacing 0.2s;
}
.tb-related__card:hover .tb-related__body::after {
  letter-spacing: 0.05em;
}

/* ══════════════════════════════════════
   SMOOTH SCROLL & HIGHLIGHT ANIMATION
══════════════════════════════════════ */
:target {
  animation: highlight-section 1.5s ease;
}
@keyframes highlight-section {
  0% { background-color: rgba(232, 93, 76, 0.06); }
  100% { background-color: transparent; }
}

/* ══════════════════════════════════════
   POST SIDEBAR — Make Popular Topics look better
══════════════════════════════════════ */
.single-post .tb-post-sidebar a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s var(--ease);
  color: var(--tb-text) !important;
  text-decoration: none !important;
  font-size: 14px;
}
.single-post .tb-post-sidebar a:hover {
  background: var(--tb-coral-50);
  color: var(--tb-coral-600) !important;
  transform: translateX(4px);
}
.single-post .tb-post-sidebar a::before {
  content: '›';
  color: var(--tb-coral-400);
  font-size: 16px;
  font-weight: 700;
}

/* ══════════════════════════════════════
   MOBILE NAV CTA BUTTON
══════════════════════════════════════ */
.tb-nav__cta.tb-btn {
  background: var(--tb-coral-500) !important;
  color: white !important;
  padding: 9px 18px !important;
  border-radius: var(--radius-full) !important;
  font-size: 13px !important;
  box-shadow: var(--shadow-coral);
}
.tb-nav__cta.tb-btn:hover {
  background: var(--tb-coral-600) !important;
  transform: scale(1.03);
}

/* ══════════════════════════════════════
   HOVER CARD LIFT — Global refinement
══════════════════════════════════════ */
.tb-post-card:hover,
.tb-blog-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
}
