/* =========================
   Global
========================= */
html { scroll-behavior: smooth; }
body { 
  position: relative; 
  margin: 0; 
  padding: 0; 
  background-color: #000;
  color: #fff;
}

/* =========================
   Theme Switcher
========================= */
.theme-label {
  color: #000;
  font-size: 0.9rem;
}

.theme-switcher .theme-btn {
  min-width: 80px;
  border-color: rgba(255, 193, 7, 0.5);
  color: rgba(255, 193, 7, 0.7);
  background-color: #4a4a4a;
  transition: all 0.2s ease;
}

.theme-switcher .theme-btn:hover {
  border-color: #ffc107;
  color: #ffc107;
  background-color: rgba(255, 193, 7, 0.1);
}

.theme-switcher .theme-btn.active {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

.theme-switcher .theme-btn.active:hover {
  background-color: #ffc107;
  border-color: #ffc107;
  color: #000;
}

/* =========================
   Fonts
========================= */
@font-face {
  font-family: 'hipeless_brushregular';
  src: url('../fonts/hipeless_brush-webfont.woff2') format('woff2'),
       url('../fonts/hipeless_brush-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'dirty_brushregular';
  src: url('../fonts/dirty_brush-webfont.woff2') format('woff2'),
       url('../fonts/dirty_brush-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* =========================
   Typography
========================= */
.letter-spacing-1 { letter-spacing: 0.06em; }

.hipeless {
  font-family: 'dirty_brushregular', cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.03em;
}
.hipeless-sub {
  font-family: 'dirty_brushregular', cursive;
  text-transform: none;
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.05em;
}
h5.text-uppercase {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.2;
}
h3 {
  font-size: clamp(0.75rem, 3vw, 1.5rem);
  margin: 0 auto;
  max-width: 90%;
  padding: 0 1rem;
}

/* Section titles */
.gallery-title {
  font-family: 'dirty_brushregular', cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Static hero subtitle */
#type-sub, .type-sub {
  font-family: 'dirty_brushregular', cursive;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  letter-spacing: 0.06em;
  display: inline-block;
  text-align: center;
  width: 100%;
  max-width: 90%;
  margin: 0 auto;
}

/* =========================
   Navbar
========================= */
.navbar {
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
  justify-content: flex-start !important;
  z-index: 1000;
}
.navbar-brand img { height: clamp(28px, 4vw, 40px); }
.navbar-brand span {
  font-family: 'hipeless_brushregular', cursive;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.navbar.navbar-scroll { background-color: #f5f5f5; }
.navbar.navbar-scroll .navbar-brand,
.navbar.navbar-scroll .nav-link,
.navbar.navbar-scroll .fa-bars { color: #212529 !important; }

.navbar.navbar-scrolled {
  background-color: #f5f5f5;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.08);
}
.navbar.navbar-scrolled .navbar-brand,
.navbar.navbar-scrolled .nav-link,
.navbar.navbar-scrolled .fa-bars { color: #212529 !important; }

.navbar .nav-link { color: #212529; transition: color .2s ease; }
.navbar.navbar-scrolled .nav-link { color: #212529; }
.navbar .nav-link.active {
  color: #ffc107 !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* Logo fade helper */
#nav-logo { transition: opacity .3s ease; }
#nav-logo.fading { opacity: 0; }

/* Center theme switcher in navbar */
.navbar .container {
  position: relative;
}

#navbarSupportedContent {
  position: relative;
  display: flex;
  width: 100%;
}

.navbar-nav.mx-auto {
  position: absolute;
  left: calc(50% - 120px);
  transform: translateX(-50%);
  width: auto;
  top: 0;
}

/* Ensure Connect Wallet stays on the right */
.navbar-nav.d-flex.flex-row {
  margin-left: auto;
  position: relative;
  z-index: 1;
}

/* Navbar icon images */
.navbar-nav .nav-icon img {
  width: 20px; height: 20px; object-fit: contain; display: block;
}

/* Collection selector in navbar */
.collection-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collection-selector input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.navbar-scrolled .collection-selector input {
  background: rgba(0, 0, 0, 0.05) !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
  color: #212529 !important;
}

.navbar-scrolled .collection-selector input::placeholder {
  color: rgba(0, 0, 0, 0.5);
}

/* =========================
   Generic bg helpers
========================= */
.bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 50vh;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* =========================
   HERO (single source of truth)
========================= */
.intro {
  position: relative;
  min-height: auto;
  background-color: #4a4a4a;
  background-image: none;
  overflow: visible;
}
.intro .mask {
  background-color: transparent;
  position: relative;
  min-height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  overflow: visible;
}

/* Modern mobile viewport fix */
@supports (height: 100svh) {
  .intro { min-height: auto; }
}

/* Reduce spacing between MY MINDFOLK and Connect Wallet button in MODERN theme only */
body.theme-modern .intro #mainTitle {
  margin-bottom: -0.5rem !important;
}

body.theme-modern .intro #mainTitle + div {
  margin-top: -0.5rem !important;
}

/* Reduce Connect Wallet button width in MODERN theme */
body.theme-modern #connectWalletBtn {
  padding-left: 0.875rem !important;
  padding-right: 0.875rem !important;
}

body.theme-modern #connectWalletBtnHero {
  padding-left: 0.875rem !important;
  padding-right: 0.875rem !important;
}

/* Disconnect button styling in MODERN theme - grey background matching MY MINDFOLK, same size as CLASSIC */
body.theme-modern #disconnectWalletBtn {
  background-color: #4a4a4a !important;
  color: #fff !important;
  border: none !important;
  font-size: 0.875rem !important;
  padding: 0.25rem 0.5rem !important;
  line-height: 1.5 !important;
  min-height: auto !important;
  height: auto !important;
  min-width: auto !important;
}

body.theme-modern #disconnectWalletBtn:hover {
  background-color: #5a5a5a !important;
  color: #fff !important;
}

/* =========================
   Footer
========================= */
.footer-dark { background-color: #000; }

/* =========================
   Utilities / Components
========================= */
.mindfolk-logo { max-height: 35px; width: auto; margin-right: 4px; }

/* Loading indicator */
.loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* =========================
   Media Queries
========================= */
@media (max-width: 768px) {
  .intro { background-position: top center; }
  .intro img { max-height: 100px; }
  .intro h3 { font-size: 1.1rem; padding: 0 1rem; }

  .logo-img { max-height: 120px; }
  h3 { font-size: clamp(0.625rem, 2.5vw, 1.25rem); }
  .hipeless-sub, h5.text-uppercase { font-size: clamp(1rem, 2.5vw, 1.6rem); }

  #navbarSupportedContent .navbar-nav.d-flex.flex-row { gap: .25rem; }
  #navbarSupportedContent .nav-icon img { height: 18px; }

  .mindfolk-logo { max-height: 30px; }

  .collection-selector {
    flex-direction: column;
    width: 100%;
    margin-top: 0.5rem;
  }

  .collection-selector input {
    width: 100% !important;
    min-width: 100% !important;
  }

  .collection-selector button {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .intro img { max-height: 100px; }
  .intro h3 { font-size: 1rem; }

  .hipeless-sub, h5.text-uppercase { font-size: clamp(0.9rem, 2vw, 1.4rem); }
  .navbar-brand img { height: clamp(20px, 3vw, 30px); }
  .navbar-brand span { font-size: clamp(1rem, 2vw, 1.4rem); }
  #navbarSupportedContent .nav-icon img { height: 16px; }

  .mindfolk-logo { max-height: 25px; }
}














