/* ═══════════════════════════════════════════════════════════
   tenvo.css — minimal custom styles on top of Bootstrap 5
   ═══════════════════════════════════════════════════════════ */

:root {
  --accent:  #FF3B1F;
  --dark:    #111111;
  --radius:  10px;
}

/* ─── FONTS ──── */
body { font-family: 'DM Sans', sans-serif; font-size: 1rem; color: #111; }
h1, h2, h3, h4, .serif { font-family: 'DM Serif Display', serif; }

/* ─── EYEBROW LABELS ──── */
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}

/* ─── SECTION HEADERS ──── */
.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.5px; line-height: 1.1;
}
.section-header h2 em { color: var(--accent); font-style: italic; }

/* ─── NAV ──── */
.site-nav { background: var(--dark); padding: 0.85rem 0; }
.site-nav .navbar-brand {
  font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: #fff;
}
.site-nav .navbar-brand em { font-style: italic; color: var(--accent); }
.site-nav .nav-link { color: rgba(255,255,255,0.7); font-size: 0.95rem; font-weight: 500; }
.site-nav .nav-link:hover { color: #fff; }

/* ─── FOOTER ──── */
.site-footer {
  background: var(--dark); color: rgba(255,255,255,0.5);
  padding: 2.5rem 0; font-size: 0.95rem;
}
.site-footer .footer-brand {
  font-family: 'DM Serif Display', serif; font-size: 1.4rem; color: #fff;
}
.site-footer .footer-brand em { font-style: italic; color: var(--accent); }
.site-footer a { color: rgba(255,255,255,0.5); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ─── BUTTONS ──── */
.btn-accent {
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent); border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; padding: 0.55rem 1.4rem;
  transition: background 0.15s, border-color 0.15s;
}
.btn-accent:hover { background: #e02e10; border-color: #e02e10; color: #fff; }
.btn-accent.btn-lg { font-size: 1rem; padding: 0.7rem 2rem; }

.btn-outline-accent {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; padding: 0.55rem 1.4rem;
}
.btn-outline-accent:hover { background: var(--accent); color: #fff; }

.btn-outline-light-custom {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.4); border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; padding: 0.55rem 1.4rem;
  transition: border-color 0.15s;
}
.btn-outline-light-custom:hover { border-color: rgba(255,255,255,0.85); color: #fff; }

/* ─── LANDING HERO (video) ──── */
.landing-hero {
  position: relative;
  min-height: 90vh;
  min-height: 90svh; /* svh excludes browser chrome — prevents zoom on scroll on mobile */
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.10) 0%,
    rgba(0,0,0,0.30) 40%,
    rgba(0,0,0,0.78) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; padding: 0 0 5.5rem;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem;
}
.landing-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  color: #fff; letter-spacing: -1.5px; line-height: 1.05;
}
.landing-hero h1 em { color: var(--accent); font-style: italic; }
.landing-hero .hero-sub {
  color: rgba(255,255,255,0.82); font-size: 1.15rem;
  line-height: 1.65; max-width: 480px;
}

/* ─── CATEGORIES SECTION ──── */
.section-categories { padding: 5rem 0; }

.cat-card {
  display: block; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3/2; text-decoration: none; cursor: pointer;
  border: 1px solid #e8e8e8;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(255,59,31,0.12);
}
.cat-card .cat-bg {
  position: absolute; inset: 0;
  transition: transform 0.35s ease;
}
.cat-card:hover .cat-bg { transform: scale(1.05); }

.cat-card[data-cat="yoga"]       .cat-bg { background: linear-gradient(135deg,#e8f7f0,#b8e8d4); }
.cat-card[data-cat="pilates"]    .cat-bg { background: linear-gradient(135deg,#e8f2fd,#b8d5f5); }
.cat-card[data-cat="hiit"]       .cat-bg { background: linear-gradient(135deg,#fff0ea,#ffcbb2); }
.cat-card[data-cat="stretch"]    .cat-bg { background: linear-gradient(135deg,#fff4dc,#ffe09a); }
.cat-card[data-cat="meditation"] .cat-bg { background: linear-gradient(135deg,#f3eeff,#d9caff); }
.cat-card[data-cat="strength"]   .cat-bg { background: linear-gradient(135deg,#fdecea,#f9bbba); }

.cat-card .cat-body {
  position: relative; z-index: 2; padding: 1.4rem 1.25rem;
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end;
}
.cat-card .cat-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem; color: #111; margin-bottom: 0.15rem; line-height: 1.2;
}
.cat-card .cat-count { font-size: 0.85rem; color: #666; font-weight: 500; }

/* ─── HOW IT WORKS ──── */
.section-how {
  background: #f7f7f5;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  padding: 5rem 0;
}
.how-step { padding-right: 1.5rem; }
.how-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem; color: var(--accent);
  opacity: 0.22; line-height: 1;
}
.how-step h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem; font-weight: 400;
}
.how-step p { font-size: 0.95rem; line-height: 1.75; }

/* ─── BOTTOM CTA ──── */
.section-cta { padding: 5.5rem 0; }
.cta-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 2rem;
}
.section-cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.5px; line-height: 1.1;
}
.section-cta h2 em { color: var(--accent); font-style: italic; }

/* ─── SOURCE BANNER ──── */
.source-banner {
  background: #f8f9fa; border: 1px solid #dee2e6;
  border-radius: var(--radius); padding: 0.75rem 1rem;
  font-size: 0.95rem; color: #6c757d;
  display: flex; align-items: center; gap: 0.5rem;
}
.source-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.source-dot.live  { background: #22c55e; }
.source-dot.error { background: var(--accent); }
.source-dot.local { background: #f59e0b; }

/* ─── CATEGORY FILTER BUTTONS (library) ──── */
.cat-btn {
  border: 1.5px solid #ddd; background: #fff; color: #555;
  border-radius: 100px; padding: 0.4rem 1.1rem;
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; font-family: 'DM Sans', sans-serif;
}
.cat-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

/* ─── VIDEO CARD (library) ──── */
.video-card {
  border: 1px solid #e8e8e8; border-radius: 12px;
  overflow: hidden; cursor: pointer; background: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(255,59,31,0.10);
}
.video-card .thumb-wrap {
  position: relative; aspect-ratio: 16/9;
  background: #f0f0f0; overflow: hidden;
}
.video-card .thumb-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.video-card:hover .thumb-wrap img { transform: scale(1.04); }
.thumb-dur {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.72); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  padding: 2px 8px; border-radius: 5px;
}
.thumb-play {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  background: rgba(255,59,31,0.06);
}
.video-card:hover .thumb-play { opacity: 1; }
.play-ring {
  width: 48px; height: 48px; background: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.play-ring svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.video-card .card-body-inner { padding: 0.9rem 1rem; }
.video-card .card-title-text { font-size: 0.97rem; font-weight: 600; line-height: 1.4; margin-bottom: 0.2rem; color: #111; }
.video-card .card-instructor { font-size: 0.85rem; color: #6c757d; }

/* ─── BADGE ──── */
.tv-badge {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 8px; border-radius: 5px;
}
.badge-yoga       { background: #e8f7f0; color: #166534; }
.badge-pilates    { background: #e8f2fd; color: #1e40af; }
.badge-hiit       { background: #fff0ea; color: #c2410c; }
.badge-stretch    { background: #fff4dc; color: #92400e; }
.badge-meditation { background: #f3eeff; color: #6d28d9; }
.badge-strength   { background: #fdecea; color: #991b1b; }

/* ─── VOTE MINI ──── */
.vote-mini { display: flex; align-items: center; gap: 4px; }
.vote-mini-btn { background: none; border: none; cursor: pointer; font-size: 0.9rem; padding: 2px; line-height: 1; }
.vote-mini-score { font-size: 0.8rem; font-weight: 600; color: #6c757d; min-width: 18px; text-align: center; }
.vote-mini-score.pos { color: #16a34a; }
.vote-mini-score.neg { color: var(--accent); }
.vote-mini-btn.voted-up   { color: #16a34a; }
.vote-mini-btn.voted-down { color: var(--accent); }

/* ─── CARD BOOKMARK ──── */
.card-bookmark {
  position: absolute; top: 8px; left: 8px;
  background: rgba(255,255,255,0.92); border: none; border-radius: 6px;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity 0.15s; z-index: 2;
}
.video-card:hover .card-bookmark { opacity: 1; }
.card-bookmark.bookmarked { opacity: 1; background: #fff0ee; }
.card-bookmark svg { width: 14px; height: 14px; stroke: #555; fill: none; stroke-width: 2; }
.card-bookmark.bookmarked svg { stroke: var(--accent); fill: var(--accent); }

/* ─── BOOKMARK HEADER BTN ──── */
.btn-bookmarks {
  display: flex; align-items: center; gap: 6px;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid rgba(255,255,255,0.25); border-radius: 100px;
  background: transparent; color: rgba(255,255,255,0.8);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; transition: all 0.15s; position: relative;
}
.btn-bookmarks:hover { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-bookmarks.has-bookmarks { border-color: var(--accent); color: var(--accent); }
.btn-bookmarks svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn-bookmarks.has-bookmarks svg { fill: var(--accent); }
.bookmark-count-badge {
  position: absolute; top: -6px; right: -6px;
  width: 17px; height: 17px; background: var(--accent); color: #fff;
  border-radius: 50%; font-size: 10px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}
.btn-bookmarks.has-bookmarks .bookmark-count-badge { display: flex; }

/* ─── MODAL OVERLAY ──── */
.overlay {
  position: fixed; inset: 0; z-index: 1050;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.overlay .modal-box {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
  transform: translateY(12px); transition: transform 0.2s; position: relative;
}
.overlay.open .modal-box { transform: translateY(0); }
.modal-x {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid #ddd; background: #f8f9fa;
  color: #555; cursor: pointer; display: flex; align-items: center;
  justify-content: center; font-size: 13px; z-index: 2;
}
.modal-x:hover { background: #eee; }

/* ─── VIDEO MODAL ──── */
.embed-wrap { aspect-ratio: 16/9; background: #000; border-radius: 15px 15px 0 0; overflow: hidden; }
.embed-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.modal-inner { padding: 1.5rem; }
.modal-title-text { font-family: 'DM Serif Display', serif; font-size: 1.5rem; font-weight: 400; color: #111; }
.modal-desc-text  { font-size: 1rem; color: #555; line-height: 1.75; }
.modal-stat       { font-size: 0.95rem; color: #6c757d; }
.modal-stat svg   { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: middle; }

/* ─── VOTE PANEL ──── */
.vote-panel {
  border-top: 1px solid #eee; border-bottom: 1px solid #eee;
  padding: 1rem 0; margin: 1rem 0;
  display: flex; align-items: center; justify-content: space-between;
}
.vote-label    { font-size: 0.95rem; color: #6c757d; }
.vote-controls { display: flex; align-items: center; gap: 6px; }
.vote-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 0.45rem 1rem; border: 1.5px solid #dee2e6; border-radius: 8px;
  background: transparent; color: #555; font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.vote-btn:hover           { border-color: #999; color: #111; }
.vote-btn.voted-up        { background: #f0fdf4; border-color: #16a34a; color: #16a34a; }
.vote-btn.voted-down      { background: #fff5f5; border-color: var(--accent); color: var(--accent); }
.vote-tally               { font-size: 1rem; font-weight: 600; color: #6c757d; padding: 0 0.5rem; }
.vote-tally.pos           { color: #16a34a; }
.vote-tally.neg           { color: var(--accent); }
.vote-reset-note          { font-size: 0.82rem; color: #aaa; margin-top: 3px; }

/* ─── ACTION BTNS ──── */
.action-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.88rem; color: #555; background: transparent;
  border: 1.5px solid #dee2e6; padding: 0.4rem 0.85rem;
  border-radius: 8px; cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.action-btn:hover { border-color: #999; color: #111; }
.action-btn svg   { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.action-btn.bookmarked { color: var(--accent); border-color: var(--accent); background: #fff5f3; }
.action-btn.bookmarked svg { fill: var(--accent); }

/* ─── FLAG / SHARE / BOOKMARKS MODALS ──── */
.flag-overlay, .share-overlay, .bm-overlay { z-index: 1060; }
.flag-overlay  .modal-box { max-width: 460px; }
.share-overlay .modal-box { max-width: 400px; }
.bm-overlay    .modal-box { max-width: 500px; }

.flag-success { padding: 3rem 1.5rem; text-align: center; display: none; }
.flag-success.show { display: block; }

.share-link-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.share-link-input {
  flex: 1; border: 1px solid #dee2e6; border-radius: 8px;
  padding: 0.5rem 0.75rem; font-size: 0.9rem; min-width: 0; outline: none;
}
.copy-btn {
  padding: 0.5rem 1rem; border-radius: 8px; border: none;
  background: var(--accent); color: #fff; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap;
}
.copy-btn:hover  { background: #e02e10; }
.copy-btn.copied { background: #16a34a; }

.share-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.social-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.85rem; border: 1px solid #dee2e6; border-radius: 8px;
  background: #f8f9fa; color: #333; font-size: 0.9rem; font-weight: 500;
  text-decoration: none; transition: border-color 0.15s; cursor: pointer;
}
.social-btn:hover { border-color: var(--accent); color: #111; }

.bm-body    { padding: 1rem 1.5rem 1.5rem; max-height: 55vh; overflow-y: auto; }
.bm-empty   { text-align: center; padding: 2.5rem 1rem; color: #6c757d; font-size: 1rem; }
.bm-list    { display: flex; flex-direction: column; gap: 0.6rem; }
.bm-item    {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem; border: 1px solid #dee2e6; border-radius: 8px;
  cursor: pointer; transition: border-color 0.15s;
}
.bm-item:hover { border-color: var(--accent); }
.bm-thumb  { width: 80px; height: 45px; object-fit: cover; border-radius: 6px; flex-shrink: 0; background: #eee; }
.bm-info   { flex: 1; min-width: 0; }
.bm-title  { font-size: 0.92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-meta   { font-size: 0.82rem; color: #6c757d; }
.bm-remove { background: none; border: none; cursor: pointer; color: #bbb; font-size: 1rem; padding: 4px; }
.bm-remove:hover { color: var(--accent); }

/* ─── FORM ELEMENTS ──── */
.form-label-sm {
  font-size: 0.73rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: #6c757d; margin-bottom: 4px; display: block;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: none; }

/* ─── ABOUT PAGE ──── */
.about-lead { font-size: 1.1rem; color: #444; line-height: 1.8; }
.principle-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff0ee; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.principle-dot svg { width: 11px; height: 11px; stroke: var(--accent); fill: none; stroke-width: 2.5; }

/* ─── MISC (library) ──── */
.setup-notice {
  background: #fffbeb; border: 1px solid #f59e0b;
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: 0.95rem; color: #78350f;
}
.count-label { font-size: 0.95rem; color: #6c757d; margin-bottom: 1.25rem; }
.empty-state  { text-align: center; padding: 4rem 1rem; color: #6c757d; font-size: 1.05rem; }
.loading-state { text-align: center; padding: 5rem 1rem; color: #6c757d; }
.check-circle {
  width: 56px; height: 56px; background: #f0fdf4; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.check-circle svg { width: 28px; height: 28px; stroke: #16a34a; fill: none; stroke-width: 2.5; }

/* ─── RESPONSIVE ──── */
@media (max-width: 768px) {
  .landing-hero {
    min-height: 85vh;
    min-height: 85svh; /* prevents zoom-on-scroll caused by browser chrome hiding */
  }
  .landing-hero h1 { letter-spacing: -0.8px; }
  .section-categories, .section-cta { padding: 3.5rem 0; }
  .section-how { padding: 3.5rem 0; }
  .cta-inner { flex-direction: column; gap: 1.5rem; }
  .how-step { padding-right: 0; }
  .share-socials { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
  .cat-card { aspect-ratio: 4/3; }
}
