/* ============================================
   Gostosa Hub - Dark Adult Theme
   ============================================ */

/* Base */
body { font-family: 'Inter', sans-serif; background-color: #0a0a14; color: #e8e8f0; -webkit-font-smoothing: antialiased; }
.font-headline, h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; }
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
html { scroll-behavior: smooth; }
::selection { background-color: #7938D5; color: #fff; }

/* ========== AGE GATE ========== */
html:not(.verified) #main-content { display: none !important; }
html:not(.verified) #mobile-bottom-nav { display: none !important; }
html:not(.verified) header { display: none !important; }
html:not(.verified) footer { display: none !important; }
html.verified #age-gate { display: none !important; }

#age-gate {
  position: fixed; inset: 0; z-index: 99999;
  background: #0a0a14;
  display: flex; align-items: center; justify-content: center;
}

/* ========== NAVIGATION ========== */
.nav-bar {
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-bar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 10px rgba(0,0,0,0.08);
}
.nav-bar.scrolled a,
.nav-bar.scrolled button,
.nav-bar.scrolled span.material-symbols-outlined {
  color: #7938D5 !important;
}
.nav-bar.scrolled input {
  background: rgba(121,56,213,0.08);
  color: #1a1a30;
  border-color: rgba(121,56,213,0.2);
}
.nav-bar.scrolled input::placeholder {
  color: rgba(121,56,213,0.4);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-overlay {
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

/* ========== MOBILE BOTTOM NAV ========== */
#mobile-bottom-nav {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* ========== CATEGORY PILLS ========== */
#category-pills {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#category-pills::-webkit-scrollbar { display: none; }

/* ========== VIDEO CARD ========== */
.video-card { transition: transform 0.2s; }
.video-card:hover { transform: translateY(-2px); }
.video-card .thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}
.video-card .thumb-wrap img {
  transition: transform 0.4s;
}
.video-card:hover .thumb-wrap img {
  transform: scale(1.05);
}
.video-card .duration {
  position: absolute; bottom: 4px; right: 4px;
  background: rgba(0,0,0,0.85);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 5px; border-radius: 3px;
}
.video-card .live-badge {
  position: absolute; top: 6px; left: 6px;
  background: #ff3b5c; color: #fff;
  font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 4px;
}
.video-card .live-badge::before {
  content: ''; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ========== GRADIENT ========== */
.brand-gradient { background: linear-gradient(135deg, #7938D5 0%, #d63384 100%); }

/* ========== GALLERY GRID ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
@media (min-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}

/* ========== SEARCH OVERLAY ========== */
#search-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(10, 10, 20, 0.98);
  backdrop-filter: blur(20px);
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a14; }
::-webkit-scrollbar-thumb { background: #2d2d48; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a58; }

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute; top: -100%; left: 0; z-index: 99999;
  padding: 0.5rem 1rem; background: #7938D5; color: #fff;
  font-weight: bold; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ========== FOCUS ========== */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid #7938D5; outline-offset: 2px; border-radius: 4px;
}
