/* =========================================================
   ChaturbateList — Custom site styles
   ========================================================= */

/* ---------- QR (chat) block ---------- */
.qr-card {
  border: 1px solid #e9ecef;
  border-radius: .75rem;
  background: #fff;
  padding: .75rem;
  box-shadow: 0 2px 10px rgba(10,20,30,.05);
}
.qr-title {
  font-size: .95rem;
  font-weight: 600;
  margin: 0 0 .25rem 0;
}
.qr-wrap {
  display:flex; align-items:center; justify-content:center;
  min-height: 200px; border-radius:.5rem; background:#f8f9fa;
}
.qr-meta {
  font-size:.8rem; color:#6c757d;
}

/* ---------- Share buttons (pretty pills) ---------- */
.share-block { }
.share-row { display:flex; flex-wrap:wrap; gap:.5rem .5rem; }

.share-btn{
  --share-clr:#6c757d;
  display:inline-flex; align-items:center; gap:.4rem;
  padding:.4rem .65rem; border-radius:999px;
  border:1px solid var(--share-clr);
  color:var(--share-clr); background:#fff;
  font-size:.875rem; line-height:1.2; text-decoration:none;
  transition:transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease, border-color .12s ease;
  box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.share-btn:hover{ background:var(--share-clr); color:#fff; transform:translateY(-1px); box-shadow:0 6px 16px rgba(0,0,0,.10); text-decoration:none; }
.share-btn:focus-visible{ outline:3px solid color-mix(in oklch, var(--share-clr) 35%, white); outline-offset:2px; }
.share-btn .icon{ width:1rem; height:1rem; flex:0 0 1rem; }

.share-twitter  { --share-clr:#1da1f2; }
.share-reddit   { --share-clr:#ff4500; }
.share-facebook { --share-clr:#1877f2; }
.share-telegram { --share-clr:#229ed9; }
.share-whatsapp { --share-clr:#25d366; }
.share-copy     { --share-clr:#6c757d; }
.share-system   { --share-clr:#0d6efd; }


/* ---------- Root / layout ---------- */
:root { --navbar-sticky-offset: 84px; }

@media (min-width: 992px){
  .profile-sidebar { position: sticky; top: var(--navbar-sticky-offset); }
}

img { height: auto; }
a.text-decoration-none:hover { text-decoration: underline; }

/* ---------- Typography clamps ---------- */
.line-clamp-1 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
.card-title { /* 1 line clamp */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1;
  overflow: hidden;
}
.card-text {  /* 2 lines clamp */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ---------- Chips / badges ---------- */
.stat-chip{
  background:#f8f9fa; border:1px solid #e9ecef; border-radius:999px;
  padding:.35rem .6rem; font-size:.84rem;
}
.badge-outline { border:1px solid #ced4da; background:#fff; color:#6c757d; }
.badge-pill    { border-radius: 10rem; }
.flag-emoji    { font-size: 1.15em; line-height: 1; }
.badge-country { border:1px solid #dee2e6; background:#fff; color:#6c757d; }

/* Small flag images from helpers */
.flag{ width:18px; height:14px; object-fit:cover; border:1px solid rgba(0,0,0,.08); border-radius:2px; }

/* ---------- Cards & images ---------- */
.card-thumb{ aspect-ratio:16/9; object-fit:cover; width:100%; display:block; }
.ratio > img{ width:100%; height:100%; object-fit:cover; }

/* Ensure the image area clips the gradient/badges overlay (fix) */
.model-thumb{ position:relative; overflow:hidden; }
.model-overlay{
  position:absolute; inset:auto 0 0 0;
  padding:.5rem .6rem .55rem;
  background:linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  color:#fff; font-size:.9rem; z-index:2;
  display:flex; flex-direction:column; gap:.25rem;
}
.model-overlay .overlay-badges .badge{
  font-size:.72rem; font-weight:600; border-radius:.6rem;
}

/* The stat bar stays separate under the image */
.statbar{
  position: relative; z-index: 1;
  display:flex; justify-content:space-between; align-items:center;
  font-size:.85rem; color:#6c757d; border-top:1px solid #f0f1f2; padding:.45rem .6rem;
}

/* ---------- Filters (index.php) ---------- */
.filters-card{
  border:0; border-radius:14px; background:#fff;
  box-shadow:0 4px 18px rgba(10,20,30,.06);
}
.filters-card .form-label{ font-size:.82rem; color:#6c757d; }

.tags-box{ min-height:190px; }
@media (min-width: 1200px){ .tags-box{ min-height:220px; } }

.tag-chips{ display:flex; flex-wrap:wrap; gap:.35rem; }
.tag-chips .chip{
  background:#f8f9fa; border:1px solid #e9ecef; border-radius:999px;
  padding:.2rem .5rem; font-size:.83rem; color:#495057;
}
.chip .x{ margin-left:.35rem; cursor:pointer; opacity:.65; }
.chip .x:hover{ opacity:1; }

/* Density buttons */
.density-wrap{ gap:.5rem; }
.density-wrap .btn{ border-radius:10px; }
.density-wrap .btn[aria-pressed="true"]{ box-shadow: inset 0 0 0 2px #0d6efd20; }

/* ---------- Result grid cards (index.php) ---------- */
.model-card{
  border:0; overflow:hidden; border-radius:.75rem; background:#fff;
}
.model-card:hover{
  box-shadow:0 .5rem 1rem rgba(0,0,0,.08);
  transform:translateY(-1px); transition:.15s;
}
.model-title{
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  overflow:hidden; margin:0;
}

/* ---------- Hero header & neighbor arrows (model.php) ---------- */
.title-bar { gap:.75rem; }
.title-bar h1 { margin:0; }

.hero-wrap{ position:relative; overflow:visible; } /* so popovers aren’t clipped */
.hero-badges{ position:absolute; left:.75rem; bottom:.75rem; display:flex; gap:.4rem; }

.nav-arrow{
  width:48px; height:48px; border-radius:50%;
  font-size:1.5rem; display:flex; align-items:center; justify-content:center;
  background-color:rgba(0,0,0,.25);
  border-color:rgba(255,255,255,.6);
  color:#fff; opacity:0;                        /* hidden until hover */
  transition: opacity .15s ease, background-color .15s ease, transform .15s ease;
}
.nav-arrow:hover{ opacity:1; background-color:rgba(0,0,0,.4); transform:translateY(-1px); }
.hero-wrap:hover .nav-arrow{ opacity:.85; }

/* Compact prev/next buttons in the title bar */
.nav-neighbor{ white-space: nowrap; }

/* ---------- Popovers (neighbor previews) ---------- */
.popover.neighbor-popover{ max-width:320px; }
.popover.neighbor-popover .popover-header{ padding:.35rem .5rem; font-size:.875rem; }
.popover.neighbor-popover .popover-body{ padding:.5rem; }
.popover.neighbor-popover .neighbor-tip-img{ display:block; width:100%; height:auto; border-radius:.5rem; }

/* Generic popover tweaks (current JS) */
.popover{ max-width:260px; }
.popover .neighbor-tip-img{
  max-width:240px; height:auto; display:block; border-radius:.5rem; margin-bottom:.35rem;
}
.popover .neighbor-tip-title{ margin:0; white-space: normal; }

/* ---------- Gallery ---------- */
.gallery img{ aspect-ratio:1/1; object-fit:cover; }
.related img.card-img-top{ aspect-ratio:4/3; object-fit:cover; }

/* ---------- Image Modal (site-wide) ---------- */
.modal-img-wrap{
  position:relative; background:#000;
  display:flex; align-items:center; justify-content:center;
}
.modal-img-wrap img{
  width:100%; height:auto; max-height:80vh; object-fit:contain; background:#000;
}
.modal-prev, .modal-next{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:42px; height:42px; border:0; border-radius:50%;
  background:rgba(255,255,255,.2); color:#fff; font-size:1.5rem; line-height:1;
}
.modal-prev:hover, .modal-next:hover{ background:rgba(255,255,255,.35); }
.modal-prev{ left:.5rem; } .modal-next{ right:.5rem; }

/* “Enter Chat” button over hero image */
.enter-chat-over-hero{ position:absolute; right:.75rem; bottom:.75rem; z-index:3; }

/* ---------- BTC Tip (modal + sidebar widget) ---------- */
.btc-live-rate-label{ opacity:.8; }
#btcQr canvas, #btcQr img{ display:block; width:240px; height:240px; }

/* ---------- Footer strips (recently viewed, snapshots) ---------- */
.scroll-x{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.strip-row{ display:flex; gap:.75rem; padding-bottom:.25rem; }
.strip-card{ min-width:190px; max-width:190px; }
.strip-thumb{ aspect-ratio:16/9; object-fit:cover; width:100%; border-radius:.5rem; }
.snap-thumb{ width:180px; height:110px; object-fit:cover; border-radius:.5rem; }
.strip-meta{ font-size:.8rem; color:#6c757d; }
.strip-title{ font-size:.9rem; line-height:1.2; margin:.35rem 0 0; }

@media (max-width:575.98px){
  .strip-card{ min-width:160px; max-width:160px; }
  .snap-thumb{ width:150px; height:92px; }
}

/* ---------- Floating Back-to-top ---------- */
.back-to-top{
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1060;
  display: none; border-radius: 999px; box-shadow: 0 .25rem .75rem rgba(0,0,0,.15);
}
.back-to-top.show{ display: inline-flex; }

/* ---------- Share buttons (model sidebar) ---------- */
.share-block { }
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .5rem;
}

.share-btn {
  --share-clr: #6c757d;                 /* default */
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .65rem;
  border-radius: 999px;
  border: 1px solid var(--share-clr);
  color: var(--share-clr);
  background: #fff;
  font-size: .875rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease, border-color .12s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.share-btn:hover {
  background: var(--share-clr);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.10);
  text-decoration: none;
}
.share-btn:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--share-clr) 35%, white);
  outline-offset: 2px;
}

.share-btn .icon {
  display: inline-block;
  width: 1rem; height: 1rem;
  flex: 0 0 1rem;
}

.share-twitter  { --share-clr:#1da1f2; }   /* X/Twitter */
.share-reddit   { --share-clr:#ff4500; }
.share-facebook { --share-clr:#1877f2; }
.share-telegram { --share-clr:#229ed9; }
.share-whatsapp { --share-clr:#25d366; }
.share-copy     { --share-clr:#6c757d; }
.share-system   { --share-clr:#0d6efd; }   /* primary */

