/* ═══════════════════════════════════════════════════════════
   style.css — design system aligned with Foxy Lady reference
═══════════════════════════════════════════════════════════ */

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #555; }
.scrollbar-none::-webkit-scrollbar,
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-none,
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Story gradient ring ─────────────────────────────────── */
.story-ring {
  padding: 2px; border-radius: 9999px; flex-shrink: 0;
  background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
}
.story-ring-inner {
  background: #030712; border-radius: 9999px; padding: 2px;
}

/* ── Nav helpers ─────────────────────────────────────────── */
.nav-link {
  color: #d1d5db; font-size: .875rem; font-weight: 500;
  padding: .375rem .5rem; border-radius: .375rem;
  transition: color .15s;
  white-space: nowrap;
}
.nav-link:hover { color: #D4AF37; }

.mobile-nav-link {
  display: block; color: #d1d5db; font-size: .875rem; font-weight: 500;
  padding: .625rem .5rem; border-radius: .5rem;
  transition: color .15s, background .15s;
}
.mobile-nav-link:hover { color: #ffffff; background: #1f2937; }

/* ── Skeleton loading ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #111827 25%, #1f2937 50%, #111827 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skeleton-pulse {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Shimmer (alias used in reviews.html) ────────────────────── */
.animate-shimmer {
  background: linear-gradient(90deg, #111827 25%, #1f2937 50%, #111827 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.6s ease-in-out infinite;
}

/* ── Card root ───────────────────────────────────────────── */
.card-root {
  background: #111827;
  border-radius: .5rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-root:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0,0,0,.8);
}

/* ── Card image zoom on hover ────────────────────────────── */
.card-img-wrap { overflow: hidden; }
.card-img-wrap img {
  transition: transform .5s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}
.card-root:hover .card-img-wrap img { transform: scale(1.05); }

/* ── Card footer strip ───────────────────────────────────── */
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .75rem;
  background: #0f172a;
  border-top: 1px solid #1f2937;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge-verified-blue {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #93c5fd;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.badge-online {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ade80;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.online-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ade80; flex-shrink: 0;
  animation: pulse-green 2s ease-in-out infinite;
}
@keyframes pulse-green { 0%,100%{opacity:1} 50%{opacity:.45} }

/* ── Media count badges (on card photo) ──────────────────── */
.media-count-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  color: #ddd; font-size: 10px; font-weight: 600;
  padding: 2px 5px; border-radius: 4px;
}

/* ── Slider arrows (card) ────────────────────────────────── */
.card-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.72); border: 1px solid rgba(255,255,255,0.15);
  color: #fff; border-radius: 9999px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; z-index: 10;
  opacity: 0; transition: opacity .18s, background .18s;
}
.card-root:hover .card-slider-arrow { opacity: .8; }
.card-slider-arrow:hover { opacity: 1 !important; background: rgba(0,0,0,.9); }
.card-slider-arrow.prev { left: 6px; }
.card-slider-arrow.next { right: 6px; }
@media (max-width: 640px) { .card-slider-arrow { display: none; } }

/* ── Slider dots (card) ──────────────────────────────────── */
.card-dot {
  width: 5px; height: 5px; border-radius: 9999px;
  background: rgba(255,255,255,0.3);
  transition: background .2s, width .2s; cursor: pointer;
}
.card-dot.active { background: #D4AF37; width: 12px; }

/* ── Filter dropdown buttons ─────────────────────────────── */
.filter-drop-btn { transition: border-color .15s, color .15s, background .15s; }
.filter-drop-btn:hover { background: #374151; color: #ffffff; }
.filter-drop-btn.active-filter { background: #D4AF37 !important; color: #000 !important; border-color: #D4AF37 !important; }

/* ── Pill filter active ──────────────────────────────────── */
.pill-active { background: #D4AF37 !important; color: #000 !important; border-color: #D4AF37 !important; font-weight: 700; }

/* ── Profile modal tabs ──────────────────────────────────── */
.cm-tab-panel { position: absolute; inset: 0; }
.cm-tab-panel.hidden { display: none !important; }

.cm-modal-tab {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: .4rem .6rem; border-radius: .625rem;
  color: #6b7280; cursor: pointer;
  transition: color .15s, background .15s;
  min-width: 48px;
}
.cm-modal-tab:hover:not(:disabled) { color: #f9fafb; background: #1f2937; }
.cm-modal-tab.active-tab { background: #D4AF37; color: #000 !important; }
.cm-modal-tab:disabled { cursor: not-allowed; }

.cm-tab-count { font-size: 9px; color: inherit; }

/* ── Photo thumbnail strip (modal) ──────────────────────── */
.cm-thumb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: .5rem;
  overflow: hidden; border: 2px solid #374151;
  transition: border-color .15s;
}
@media (min-width: 768px) { .cm-thumb { width: 80px; height: 80px; } }
.cm-thumb:hover { border-color: #6b7280; }
.cm-thumb-active { border-color: #D4AF37 !important; box-shadow: 0 0 0 2px #D4AF37; }

/* ── Modal animate-in ────────────────────────────────────── */
#card-modal > div { animation: slideUp .22s ease; }

/* ── Lightbox ────────────────────────────────────────────── */
#lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.97); z-index: 9999;
  align-items: center; justify-content: center; cursor: zoom-out;
}
#lightbox.open { display: flex; animation: fadeIn .2s ease; }
#lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 8px; object-fit: contain; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  background: #111827; border: 1px solid #1f2937;
  color: #f9fafb; border-radius: 8px;
  padding: .75rem 1.1rem; font-size: .85rem;
  pointer-events: auto; min-width: 200px;
  animation: slideUp .2s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.7);
}
.toast.success { border-left: 3px solid #22c55e; }
.toast.error   { border-left: 3px solid #ef4444; }

/* ── Mobile bottom tab bar ───────────────────────────────── */
.mobile-tab {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 2px;
  flex: 1; text-decoration: none;
  color: #4b5563; font-size: 10px; font-weight: 600;
  transition: color .18s;
  position: relative;
}
.mobile-tab:hover, .mobile-tab:active { color: #9ca3af; }
.mobile-tab.active { color: #D4AF37; }
.mobile-tab.active::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 2px; background: #D4AF37; border-radius: 0 0 2px 2px;
}

/* ── Stories Viewer ──────────────────────────────────────── */
#stories-viewer {
  display: none; position: fixed; inset: 0;
  background: #000; z-index: 10000;
  align-items: center; justify-content: center;
}
#stories-viewer.open { display: flex; animation: fadeIn .2s ease; }
.sv-progress-bar { display: flex; gap: 3px; padding: 8px 12px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.sv-progress-segment { flex: 1; height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.sv-progress-fill { height: 100%; width: 0%; background: #fff; border-radius: 2px; transition: width .15s linear; }
.sv-progress-fill.animating { transition: width linear; }
.sv-progress-fill.done { width: 100% !important; }
.sv-header { position: absolute; top: 14px; left: 12px; right: 12px; z-index: 11; display: flex; align-items: center; justify-content: space-between; }
.sv-user-info { display: flex; align-items: center; gap: 10px; }
.sv-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #D4AF37; object-fit: cover; }
.sv-username { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.sv-close { width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.sv-close:hover { background: rgba(0,0,0,.8); }
.sv-image-container {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sv-image-container img {
  /* Fixa proporção 9:16 (portrait) e recorta para preencher uniformemente */
  width: min(100%, calc(100vh * 9/16));
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  flex-shrink: 0;
}
.sv-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 12; transition: background .15s, opacity .15s; opacity: .7; }
.sv-arrow:hover { background: rgba(0,0,0,.85); opacity: 1; }
.sv-arrow.prev { left: 12px; }
.sv-arrow.next { right: 12px; }
.sv-tap-left, .sv-tap-right { position: absolute; top: 60px; bottom: 0; z-index: 9; cursor: pointer; }
.sv-tap-left { left: 0; width: 35%; }
.sv-tap-right { right: 0; width: 65%; }
@media (max-width: 768px) { .sv-arrow { display: none; } }
@media (min-width: 769px) {
  .sv-tap-left, .sv-tap-right { display: none; }
  #stories-viewer .sv-image-container { max-width: 420px; margin: 0 auto; border-radius: 12px; overflow: hidden; }
}

/* ── Accordion ───────────────────────────────────────────── */
.acc-body { max-height: 0; overflow: hidden; transition: max-height .28s ease, padding .28s; }
.acc-open .acc-body { max-height: 320px; }
.acc-chevron { transition: transform .22s; }
.acc-open .acc-chevron { transform: rotate(180deg); }

/* ── Tabs (profile page) ─────────────────────────────────── */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .2s ease; }

/* ── Media item ──────────────────────────────────────────── */
.media-item { transition: opacity .18s; }
.media-item:hover { opacity: .82; }

/* ── Misc ────────────────────────────────────────────────── */
.no-select { -webkit-user-select: none; user-select: none; }
.gold-text {
  background: linear-gradient(90deg, #D4AF37, #E8D080, #D4AF37);
  background-size: 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.preset-btn { padding: 5px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; background: #1f2937; color: #6b7280; border: 1px solid #374151; cursor: pointer; transition: border-color .15s, color .15s; }
.preset-btn:hover { background: #374151; color: #f9fafb; }
.preset-btn.active-preset { background: #D4AF37; color: #000; border-color: #D4AF37; }

/* ── Form inputs (reference style) ──────────────────────── */
.form-input {
  width: 100%;
  background: #1f2937;
  border: 1px solid #374151;
  color: #f9fafb;
  border-radius: .5rem;
  padding: .625rem .875rem;
  font-size: .875rem;
  outline: none;
  transition: border-color .15s;
}
.form-input::placeholder { color: #6b7280; }
.form-input:focus { border-color: #D4AF37; }

/* ── Auth tab switcher ───────────────────────────────────── */
.auth-tab {
  flex: 1; padding: .625rem 1rem;
  font-size: .875rem; font-weight: 600;
  color: #9ca3af; border-radius: .375rem;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.auth-tab.active { background: #D4AF37; color: #000; }

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeIn  { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
