
/* =============================================
   V2 ADDITIONS — Premium Features
   ============================================= */

/* ── Reading Progress Bar ── */
#tt-progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--saffron), var(--green)); width: 0%; z-index: 9999; transition: width 0.1s ease-out; }

/* ── Back to Top Button ── */
#tt-back-to-top { position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%; background: var(--saffron); color: #fff; border: none; font-size: 1.2rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.2); opacity: 0; visibility: hidden; transition: opacity 0.25s, transform 0.15s; z-index: 998; }
#tt-back-to-top.show { opacity: 1; visibility: visible; }
#tt-back-to-top:hover { transform: translateY(-3px); }

/* ── Jump to Recipe ── */
.tt-jump-recipe { display: inline-block; background: var(--saffron-pale); color: var(--saffron-dark); font-weight: 700; font-size: 0.85rem; padding: 10px 18px; border-radius: 50px; margin: 12px 0 20px; }
.tt-jump-recipe:hover { background: var(--saffron); color: #fff; }

/* ── Ingredients Checklist ── */
.tt-ingredients-box { background: var(--saffron-pale); border: 1.5px solid #F4A01C55; border-radius: 14px; padding: 22px 24px; margin: 20px 0; scroll-margin-top: 80px; }
.tt-ingredients-box h3 { font-size: 1.1rem; margin-bottom: 14px; }
.tt-ingredients-list li { padding: 7px 0; border-bottom: 1px dashed #F4A01C55; }
.tt-ingredients-list li:last-child { border-bottom: none; }
.tt-ingredients-list label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; color: #333; }
.tt-ingredients-list input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.tt-ingredients-list input:checked + span { text-decoration: line-through; color: var(--soft); }

/* ── Recipe Video ── */
.tt-recipe-video { margin: 24px 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }

/* ── Share / Print Buttons ── */
.tt-share-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 28px; }
.tt-share-btn { background: var(--white); border: 1.5px solid var(--border); color: var(--mid); font-size: 0.82rem; font-weight: 600; padding: 9px 16px; border-radius: 8px; cursor: pointer; font-family: inherit; transition: all 0.15s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.tt-share-btn:hover { border-color: var(--saffron); color: var(--saffron); }

/* ── Table of Contents ── */
.tt-toc { background: var(--light); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; margin: 24px 0; }
.tt-toc summary { font-weight: 700; cursor: pointer; font-size: 0.95rem; color: var(--dark); }
.tt-toc ul { margin-top: 12px; padding-left: 18px; }
.tt-toc ul li { margin-bottom: 6px; font-size: 0.88rem; }
.tt-toc ul li a { color: var(--mid); }
.tt-toc ul li a:hover { color: var(--saffron); }

/* ── Author Box ── */
.tt-author-box { display: flex; gap: 16px; align-items: center; background: var(--light); border-radius: 14px; padding: 20px; margin: 32px 0; }
.tt-author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--saffron-pale); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; }
.tt-author-info strong { font-size: 0.95rem; color: var(--dark); display: block; margin-bottom: 3px; }
.tt-author-info span { font-size: 0.82rem; color: var(--soft); }

/* ── Star Rating ── */
.tt-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.tt-rating-stars { color: var(--saffron); font-size: 1.1rem; letter-spacing: 2px; }
.tt-rating-text { font-size: 0.82rem; color: var(--soft); }

/* ── Newsletter Section ── */
.tt-newsletter { padding: 56px 20px; background: var(--saffron-pale); }
.tt-newsletter-box { max-width: 560px; margin: 0 auto; text-align: center; }
.tt-newsletter-icon { font-size: 2.6rem; display: block; margin-bottom: 14px; }
.tt-newsletter-box h2 { margin-bottom: 10px; }
.tt-newsletter-box p { color: var(--mid); font-size: 0.92rem; margin-bottom: 22px; }
.tt-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tt-newsletter-form input { flex: 1; min-width: 160px; border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 0.9rem; font-family: inherit; outline: none; }
.tt-newsletter-form input:focus { border-color: var(--saffron); }
.tt-newsletter-form button { background: var(--saffron); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; cursor: pointer; font-family: inherit; white-space: nowrap; }
.tt-newsletter-form button:hover { background: var(--saffron-dark); }
.tt-newsletter-note { font-size: 0.75rem; color: var(--soft); margin-top: 12px; }
#tt-nl-message { font-size: 0.85rem; margin-top: 12px; font-weight: 600; }

/* ── Footer Social Icons ── */
.tt-footer-social { display: flex; gap: 12px; margin-top: 14px; }
.tt-footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: background 0.15s; }
.tt-footer-social a:hover { background: var(--saffron); }

/* ── Related Recipes "You Might Also Like" enhancement ── */
.tt-nutrition-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.tt-nutrition-table th, .tt-nutrition-table td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; font-size: 0.85rem; }
.tt-nutrition-table th { background: var(--saffron-pale); font-weight: 700; }

/* ── Print Styles ── */
@media print {
  .tt-header, .tt-footer, .tt-share-buttons, .tt-jump-recipe, #tt-back-to-top, #tt-progress-bar,
  .tt-newsletter, .tt-sidebar, .tt-post-promo, .tt-post-challenge, .tt-ad-inline, .tt-comments { display: none !important; }
  .tt-post-wrap { grid-template-columns: 1fr !important; }
  body { font-size: 12pt; }
}

/* ── Bestseller Ribbon ── */
.tt-bestseller-ribbon { position: absolute; top: 18px; right: -32px; background: var(--green); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 5px 40px; transform: rotate(45deg); box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 2; }
.tt-product-main { position: relative; overflow: hidden; }

/* ── Pinterest CTA ── */
.tt-pinterest-cta { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 22px 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.tt-pin-icon { font-size: 2.2rem; flex-shrink: 0; }
.tt-pin-text { flex: 1; min-width: 200px; }
.tt-pin-text h3 { font-size: 1rem; margin-bottom: 3px; }
.tt-pin-text p { font-size: 0.85rem; color: var(--soft); margin: 0; }

/* Mobile */
@media (max-width: 640px) {
  .tt-pinterest-cta { flex-direction: column; text-align: center; }
  .tt-bestseller-ribbon { right: -36px; top: 14px; font-size: 0.65rem; }
  .tt-newsletter-form { flex-direction: column; }
  .tt-author-box { flex-direction: column; text-align: center; }
  #tt-back-to-top { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}

