/*==========================================================
  SableVTT — Global Styles (cleaned & consolidated)
  File: /public/assets/css/sablevtt.css
==========================================================*/

/*-----------------------------
  Design Tokens / Variables
------------------------------*/
:root{
  /* Colors */
  --svtt-bg:        #0b0f14;            /* Deep night base */
  --svtt-bg-2:      #070a0e;
  --svtt-fg:        #e8ecf1;            /* Light text */
  --svtt-accent:    #9dd6ff;            /* Arcane blue */
  --svtt-accent-2:  #c6a15f;            /* Antique gold */

  /* Dimensions */
  --svtt-nav-h:     72px;               /* fixed-top navbar height */
  --svtt-footer-h:  64px;               /* desktop fixed footer height */

  /* Assets */
  --svtt-hero-img: url('/assets/images/sablehero.png');
}

/*-----------------------------
  Base / Layout
------------------------------*/
html, body {
  min-height: 100%;
  color: var(--svtt-fg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
}

/* Background: gradient + solid base to avoid mobile white flash */
html, body {
  background:
    radial-gradient(1200px 600px at 10% 10%, #0f1520 0%, #0b0f14 60%, #070a0e 80%),
    var(--svtt-bg-2);
}

/* Content flex container (helps sticky footers and short pages) */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Sections targeted by #hash should land below the fixed navbar */
section[id] { scroll-margin-top: var(--svtt-nav-h); }

/*-----------------------------
  Navbar
------------------------------*/
.svtt-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--svtt-nav-h);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(8, 12, 18, 0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1040;
}
.navbar-brand {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Replace dice icon with logo image */
.logo-icon {
  width: 28px; height: 28px;
  object-fit: contain;
  display: inline-block;
}

/* Hover underline for nav links */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--svtt-accent), var(--svtt-accent-2));
  transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Navbar buttons vertically centered and normalized */
.navbar-nav .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

/* Space between icons and text inside ALL buttons */
.btn i {
  margin-right: 0.5rem;
  display: inline-flex;
  align-items: center;
}

/* User avatar chip (when logged in) */
.nav-user .avatar{
  display:inline-grid; place-items:center;
  width:28px; height:28px; border-radius:6px;
  font-weight:700; font-size:0.9rem;
  background: linear-gradient(135deg, rgba(157,214,255,0.25), rgba(198,161,95,0.18));
  color:#fff;
  border:1px solid rgba(255,255,255,0.25);
  box-shadow: inset 0 0 18px rgba(157,214,255,0.18);
}
.nav-user:hover .avatar { filter: brightness(1.1); }

.navbar-nav .nav-item .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;        /* fill the nav item’s height */
  padding-top: 0.5rem; /* equalize padding */
  padding-bottom: 0.5rem;
}

/* Mobile menu improvements */
@media (max-width: 991.98px) {
  .navbar-nav .nav-item {
    margin-left: 0 !important;
    margin-bottom: 0.75rem;
    text-align: center;
  }
  .navbar-nav .nav-link,
  .navbar-nav .btn {
    font-size: 1.1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    width: 100%;                     /* big, tappable */
  }
  .navbar-nav .btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    text-align: center;
  }
}

/* Mobile dropdown menu style */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(8, 12, 18, 0.92);   /* darker + less transparent */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1rem;
    border-radius: 0 0 .5rem .5rem;       /* optional: rounded bottom corners */
  }
}


/* Desktop tighten buttons slightly */
@media (min-width: 992px) {
  .navbar-nav .btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}

/*-----------------------------
  Hero (landing)
------------------------------*/
.hero {
  position: relative;
  min-height: 100vh;                  /* will be overridden by 100dvh if supported */
  display: grid; place-items: center; text-align: center;
  padding-top: var(--svtt-nav-h);     /* avoid overlap with fixed navbar */
  padding-bottom: 16px;               /* breathing room */
  overflow: hidden;
}
@supports (height: 100dvh) { .hero { min-height: 100dvh; } }

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--svtt-hero-img);
  background-size: cover; background-position: center;
  filter: saturate(0.95) brightness(0.88) contrast(1.02);
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 40%,
      rgba(13,19,28,0) 0%,
      rgba(10,13,18,0.12) 50%,
      rgba(7,10,14,0.28) 75%,
      rgba(5,7,10,0.48) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.32) 100%);
  pointer-events: none;
}

/* Subtle starfield */
.stars, .stars::after {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.35) 40%, transparent 41%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.25) 40%, transparent 41%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.25) 40%, transparent 41%);
  animation: twinkle 6s ease-in-out infinite;
  mix-blend-mode: screen;
  opacity: .5;
}
.stars::after { content: ''; animation-delay: 2.5s; opacity: .35; }
@keyframes twinkle { 0%,100% { opacity: .45 } 50% { opacity: .8 } }

.hero .hero-inner { position: relative; z-index: 2; max-width: 1080px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.eyebrow {
  display: inline-block;
  font-size: clamp(0.5rem, 1vw + 0rem, .75rem); letter-spacing: .16em; text-transform: uppercase;
  color: #c0d7ff;
  background: rgba(157,214,255,0.08);
  border: 1px solid rgba(157,214,255,0.25);
  padding: .4rem .7rem; border-radius: 999px;
  margin-bottom: 2.5rem;
}
.hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 800; line-height: 1.1;
  font-size: clamp(1.5rem, 2vw + 1.2rem, 3rem);
  text-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 8px 30px rgba(0,0,0,0.45);
}
.hero p.lead {
  font-size: clamp(.75rem, 1vw + .5rem, 1.0rem);
  color: #d7e2ee;
  max-width: 720px; margin: 1rem auto 2rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

/*-----------------------------
  Auth Pages (login/register)
------------------------------*/
.auth-hero {
  position: relative;
  flex: 1; /* fill space between navbar and footer */
  display: grid; place-items: center;
  padding: var(--svtt-nav-h) 1rem 16px; /* top padding for navbar */
  overflow: hidden;
}
.auth-hero::before { content:''; position:absolute; inset:0; background-image:var(--svtt-hero-img); background-size:cover; background-position:center; filter:saturate(0.95) brightness(0.88) contrast(1.02); }
.auth-hero::after  { content:''; position:absolute; inset:0; background: radial-gradient(60% 60% at 50% 40%, rgba(13,19,28,0) 0%, rgba(10,13,18,0.12) 50%, rgba(7,10,14,0.28) 75%, rgba(5,7,10,0.48) 100%), linear-gradient(to bottom, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.32) 100%); pointer-events:none; }
.auth-hero .stars, .auth-hero .stars::after { position:absolute; inset:0; pointer-events:none; background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.35) 40%, transparent 41%), radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.25) 40%, transparent 41%), radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.25) 40%, transparent 41%); animation: twinkle 6s ease-in-out infinite; mix-blend-mode: screen; opacity:.5; }
@supports (height: 100dvh) { .auth-hero { min-height: 100dvh; } }

.auth-card {
  position: relative; z-index: 1;
  background: rgba(20,26,34,.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: .75rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.55);
}

.form-text {
	color: var(--svtt-fg);
}

/* Mobile: lighten background like hero */
@media (max-width: 576px) {
  .hero::before, .auth-hero::before { filter: saturate(1) brightness(0.95) contrast(1.0); }
  .hero::after, .auth-hero::after {
    background:
      radial-gradient(62% 62% at 50% 40%, rgba(13,19,28,0) 0%, rgba(10,13,18,0.08) 55%, rgba(7,10,14,0.18) 78%, rgba(5,7,10,0.32) 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.18) 100%);
  }
}

/*-----------------------------
  Placeholders / Sections
------------------------------*/
section.placeholder {
  min-height: 60vh;
  display: grid; 
  place-items: center;
  padding: 4rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0b0f14;
  cursor: default;   /* ✅ no more hourglass/wait cursor */
}

.placeholder .wrap { max-width: 980px; }


/* Features section */
.features-section {
  padding: 4rem 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0.0)),
    var(--svtt-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.section-title {
  font-family: 'Cinzel', serif;
  margin-bottom: .25rem;
}

/* Feature cards */
.feature-card {
  height: 100%;
  background: rgba(20,26,34,.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157,214,255,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

/* Icon medallion */
.feature-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  margin-bottom: .75rem;
  background: linear-gradient(135deg, rgba(157,214,255,0.25), rgba(198,161,95,0.18));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 0 20px rgba(157,214,255,0.15);
  font-size: 1.25rem;
}

/* Points list */
.feature-points {
  list-style: none; padding: 0; margin: .75rem 0 0;
}
.feature-points li {
  position: relative;
  padding-left: 1.25rem;
  color: #d7e2ee;
  margin-bottom: .35rem;
  font-size: .95rem;
}
.feature-points li::before {
  content: "▹";
  position: absolute; left: 0; top: 0;
  color: var(--svtt-accent-2);
}

/* Reveal on scroll */
.feature-card.reveal { opacity: 0; transform: translateY(10px); }
.feature-card.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s ease; }

/* Spacing tune for small screens */
@media (max-width: 576px) {
  .features-section { padding: 3rem 0; }
  .feature-card { padding: 1rem; }
}


/* Marketplace */
.marketplace-section {
  padding: 4rem 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    var(--svtt-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.marketplace-filters .btn.active {
  background: rgba(157,214,255,0.18);
  border-color: rgba(157,214,255,0.35);
  color: #fff;
}

/* Product Cards */
.mp-card {
  height: 100%;
  background: rgba(20,26,34,.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  opacity: 1;
}
.mp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157,214,255,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.mp-thumb {
  position: relative;
  aspect-ratio: 4 / 3; /* safe crop for your previews */
  background: #0e141c;
}
.mp-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.mp-badge {
  position: absolute; left: .75rem; top: .75rem;
  background: rgba(8, 12, 18, 0.85);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .8rem;
}

.mp-body { padding: .9rem .95rem 0; }
.mp-title { font-size: 1.05rem; margin: 0 0 .35rem; }

.mp-meta {
  display: flex; align-items: center; justify-content: space-between;
  color: #d7e2ee; margin-bottom: .35rem;
}
.mp-price { font-weight: 700; }
.mp-rating { color: #ffd86b; }
.mp-rating .bi-star-fill { margin-right: .25rem; }

.mp-tags {
  list-style: none; padding: 0; margin: 0 0 .85rem;
  display: flex; flex-wrap: wrap; gap: .4rem .5rem;
}
.mp-tags li {
  font-size: .8rem; color: #cbd7e6;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: .15rem .5rem;
}

.mp-cta { padding: 0 .95rem .95rem; }

/* Reveal animation */
.mp-card.reveal { opacity: 0; transform: translateY(10px); }
.mp-card.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s ease; }

/* Small screens */
@media (max-width: 576px) {
  .marketplace-section { padding: 3rem 0; }
  .mp-badge { font-size: .75rem; }
}


/* Community */
.community-section {
  padding: 4rem 0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(255,255,255,0)),
    var(--svtt-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Stats */
.community-stat .stat-card{
  background: rgba(20,26,34,.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: .75rem;
  text-align: center;
  padding: .9rem .5rem;
}
.stat-num { font-weight: 800; font-size: 1.25rem; }
.stat-label { font-size: .8rem; color: #cbd7e6; }

/* Updates list (dark list-group look) */
.list-group-dark .list-group-item {
  background: rgba(20,26,34,.9);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--svtt-fg);
  border-radius: .75rem;
  margin-bottom: .75rem;
  transition: transform .16s ease, border-color .2s ease, box-shadow .2s ease;
}
.list-group-dark .list-group-item:hover {
  transform: translateY(-2px);
  border-color: rgba(157,214,255,0.35);
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
}
.updates-list .badge {
  background: rgba(157,214,255,0.18);
  border: 1px solid rgba(157,214,255,0.35);
  color: #fff;
}

/* Spotlight campaigns */
.spot-card {
  background: rgba(20,26,34,.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: .75rem;
  padding: 1.25rem;
  overflow: hidden;
  transition: transform .18s ease, border-color .2s ease, box-shadow .2s ease;
}
.spot-card:hover {
  transform: translateY(-3px);
  border-color: rgba(157,214,255,0.35);
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.spot-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0e141c;
  margin-bottom: 1.25rem;
}
.spot-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.spot-badge {
  position: absolute; left: .75rem; top: .75rem;
  background: rgba(8,12,18,.85);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .2rem .5rem;
  font-size: .75rem;
}

/* Newsletter */
.newsletter-card {
  background: rgba(20,26,34,.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: .75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity .45s ease, transform .45s ease; }

/* Small screens */
@media (max-width: 576px) {
  .community-section { padding: 3rem 0; }
}


/*-----------------------------
  Footer
------------------------------*/

/* Mobile/tablet (default): footer scrolls normally */
footer {
  position: static;
  height: auto;
  margin-top: auto;
  background: rgba(8, 12, 18, 0.9);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 0;
}

/* Desktop: fixed footer always visible */
@media (min-width: 992px) {
  footer {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: var(--svtt-footer-h);
    margin-top: 0;
    display: flex; align-items: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1030;
  }

  /* Ensure content isn’t hidden behind fixed footer */
  main, .hero, .auth-hero {
    padding-bottom: calc(var(--svtt-footer-h) + 16px);
  }
}

/*-----------------------------
  Buttons (theme consistency)
------------------------------*/
.btn-cta {
  --bs-btn-padding-x: 1.4rem;
  --bs-btn-padding-y: .8rem;
  --bs-btn-border-radius: 999px;
  --bs-btn-font-weight: 700;
  border: 1px solid rgba(157,214,255,0.35);
  background: linear-gradient(135deg, rgba(157,214,255,0.18), rgba(198,161,95,0.14));
  color: var(--svtt-fg);
  box-shadow: 0 6px 28px rgba(0,0,0,0.45), inset 0 0 32px rgba(157,214,255,0.12);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(157,214,255,0.28), rgba(198,161,95,0.22));
  box-shadow: 0 12px 34px rgba(0,0,0,0.5), inset 0 0 42px rgba(157,214,255,0.18);
  color: #fff;
}

/* Outline-light buttons like Learn More */
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Make rounded pill buttons consistent */
.btn.rounded-pill { padding-left: 1.25rem; padding-right: 1.25rem; }

/*-----------------------------
  Forms (dark theme)
------------------------------*/
.card { color: var(--svtt-fg); }
.form-control {
  background-color: #11161d;
  border: 1px solid rgba(255,255,255,0.15);
  color: #f1f5fa;
}
.form-control:focus {
  background-color: #141a22;
  border-color: var(--svtt-accent);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(157,214,255,0.25);
}
.form-control::placeholder { color: rgba(240,240,240,0.5); }

/*-----------------------------
  Alerts (dark theme)
------------------------------*/
.alert {
  border: none;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
}
.alert-success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #9ff2b7;
  border-left: 4px solid #28a745;
}
.alert-warning {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffd86b;
  border-left: 4px solid #ffc107;
}
.alert-danger, .alert-error {
  background-color: rgba(220, 53, 69, 0.2);
  color: #ff9ca9;
  border-left: 4px solid #dc3545;
}

/*-----------------------------
  Mobile tuning for hero/auth
------------------------------*/
@media (max-width: 576px) {
  .hero::before { filter: saturate(1) brightness(0.95) contrast(1.0); }
  .hero::after {
    background:
      radial-gradient(62% 62% at 50% 40%, rgba(13,19,28,0) 0%, rgba(10,13,18,0.08) 55%, rgba(7,10,14,0.18) 78%, rgba(5,7,10,0.32) 100%),
      linear-gradient(to bottom, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.18) 100%);
  }
}

/*==========================================================
  Custom Scrollbar — SableVTT theme
==========================================================*/

/* Firefox */
* {
  scrollbar-width: thin;                                /* auto | thin | none */
  scrollbar-color: var(--svtt-accent) var(--svtt-bg-2); /* thumb | track */
}

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--svtt-bg-2);                         /* dark track */
}

::-webkit-scrollbar-thumb {
  background-color: var(--svtt-accent);                 /* bright thumb */
  border-radius: 6px;
  border: 2px solid var(--svtt-bg-2);                   /* gap around thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--svtt-accent-2);               /* gold on hover */
}
