/* =====================================================
   SLUGTRAIL WALL — SELF-CONTAINED THEME
   Dark Neon Grid for Domains & Trails (Full Width)
   ===================================================== */

/* --- VARIABLES --- */
:root {
  --black: #000;
  --dark: #0a0a0a;
  --grey: #1a1a1a;
  --white: #fff;
  --lime: #a4ff59;
  --lime-dim: rgba(164,255,89,0.2);
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
}

/* --- BASE --- */
body, .container, .row {
  margin: 0;
  padding: 0;
  background: var(--black) !important;
  color: var(--white);
  font-family: var(--font-secondary);
  overflow-x: hidden;
    max-width: none;
    width: 100%;
}

header.slugwall,
footer.slugwall {
  text-align: center;
  background: transparent;
  color: var(--white);
}

/* --- LANGUAGE SWITCHER --- */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 15px;
  z-index: 1000;
}
.lang-switch select {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-secondary);
}

/* --- CONTAINER --- */
.trail-explorer {
  padding: 60px 3vw 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto !important;
}

/* --- BREADCRUMB --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  font-family: var(--font-primary);
  font-weight: 600;
}
.breadcrumb span {
  background: var(--lime-dim);
  border: 1px solid rgba(164,255,89,0.4);
  color: var(--lime);
  border-radius: 18px;
  padding: 5px 14px;
  transition: all 0.25s ease;
  cursor: pointer;
}
.breadcrumb span:hover {
  background: rgba(164,255,89,0.3);
  transform: translateY(-1px);
}

/* --- GRID --- */
.slug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  width: 100%;
  padding: 3vw 3vw 4vw;
  max-width: none !important;
  justify-items: center;
  align-items: start;
  transition: all 0.3s ease;
  background-color: #000;    
}

/* Larger screens: slightly wider cards */
@media (min-width: 1600px) {
  .slug-grid {
    gap: 45px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .slug-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 5vw;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .slug-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 6vw 8vw;
      word-break: break-all;
      background-color: #000;
  }
} 

/* --- DOMAIN & SLUG CARDS --- */
.slug-card {
  background: linear-gradient(145deg, #0b0b0b, #141414);
  border: 1px solid #1d1d1d;
  border-radius: 22px;
  padding: 45px 25px 70px;
  text-align: center;
  box-shadow: 0 0 18px rgba(0,0,0,0.45);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  width: 100%;
  max-width: 340px;
}

.slug-card:hover {
  transform: translateY(-6px);
  border-color: var(--lime);
  box-shadow: 0 0 28px rgba(164,255,89,0.35);
}

/* --- SLUG QR IMAGE --- */
.qrimagewall {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  display: block;
  border-radius: 14px;
  box-shadow: 0 0 25px rgba(164,255,89,0.5);
  background: #fff;
  transition: all 0.25s ease;
  background-color: #000;    
}

.slug-card:hover .qrimagewall {
  transform: scale(1.05);
  box-shadow: 0 0 35px rgba(164,255,89,0.65);
}

/* --- DOMAIN LOGO --- */
.domain-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(164,255,89,0.4);
  margin-bottom: 20px;
  background-color: #000;
}

/* --- SLUG QR IMAGE --- */
.qrimagewall {
  width: 160px;
  height: 160px;
  border-radius: 12px;
  background-color: #000;
  box-shadow: 0 0 16px rgba(164,255,89,0.4);
  margin-bottom: 16px;
}

/* --- CARD TEXT --- */
.slug-card h3,
.slug-card h4 {
  color: var(--lime);
  font-family: var(--font-primary);
  margin: 8px 0 5px;
  font-size: 1.2rem;
}
.slug-card p {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0 0 5px;
}
.trail-count {
  color: var(--white);
  opacity: 0.8;
  font-size: 0.85rem;
}

/* --- OVERLAY BUTTON --- */
.slug-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 7px 18px;
  border-radius: 14px;
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 0 12px rgba(164,255,89,0.4);
}

.slug-card:hover .slug-overlay {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Always visible on mobile */
@media (max-width: 768px) {
  .slug-overlay {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* --- BACK BUTTON --- */
#backButtonWrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}
.back-btn {
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  border: none;
  border-radius: 25px;
  padding: 12px 28px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(164,255,89,0.3);
  transition: all 0.25s ease;
}
.back-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 25px rgba(164,255,89,0.5);
}

/* Sticky footer-style on mobile */
@media (max-width: 768px) {
  #backButtonWrapper {
    position: sticky;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 10;
  }
  .back-btn { width: 90%; max-width: 340px; }
}

/* --- FOOTER --- */
.footer-copy {
  text-align: center;
  padding: 40px 0 60px;
  color: #666;
  font-size: 0.85rem;
}

/* --- BACK TO TOP --- */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--lime);
  color: var(--black);
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(164,255,89,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
}
#backToTop:hover {
  box-shadow: 0 0 25px rgba(164,255,89,0.6);
}

/* --- SLIDE ANIMATION --- */
.slide {
  transform: translateY(15px);
  opacity: 0;
  transition: all 0.6s ease;
}
.slide.show {
  transform: translateY(0);
  opacity: 1;
}

/* --- SCROLLBAR (dark neon accent) --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 4px;
}
::-webkit-scrollbar-track {
  background: #111;
}

.sep{display:none; visibility: hidden;}

/* --- UNIVERSAL MOBILE POLISH --- */
@media (max-width: 600px) {

  /* Keep grid centered and consistent */
  .slug-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 1vw 1vw 1vw;
    justify-items: center;
  }
  
  /* Consistent logo/QR sizing */
  .domain-logo,
  .qrimagewall { 
    width: 100%;
    height: 100%;  
    padding: 5px;
    margin: 0 auto 14px;
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(164,255,89,0.4);
      background-color: #000;
  } 
 
  /* Cards spacing + soft glow */
  .slug-card {
    padding: 18px 12px 18px;
    max-width: 95%;
    border-radius: 18px;  
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    background: linear-gradient(145deg, #0b0b0b, #131313);
  }

  /* Hide view button for mobile */
  .slug-overlay {
    display: none !important;
  }

  /* Text alignment fine-tune */
  .slug-card h4, .slug-card h3 {
    font-size: 1rem;
    line-height: 1.3em;
    margin: 5px 0;
  }
  .slug-card p, .trail-count {
    font-size: 0.8rem;
  }

  /* Breadcrumb scrolling if long */
  .breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .breadcrumb::-webkit-scrollbar {
    display: none;
  }

  /* Keep back button centered and neat */
  .back-btn {
    padding: 10px 26px;
    font-size: 0.9rem;
    border-radius: 24px;
    box-shadow: 0 0 14px rgba(164,255,89,0.3);
  }

  footer.slugwall {
    margin-top: 0px !important;
  }
} 

.exit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.exit-modal.show {
  opacity: 1;
  pointer-events: all;
}
.exit-content {
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(168,220,84,0.4);
  box-shadow: 0 0 30px rgba(168,220,84,0.3);
  border-radius: 18px;
  text-align: center;
  padding: 25px 35px;
  color: #fff;
  max-width: 300px;
  font-family: 'Poppins', sans-serif;
}
.exit-content h3 {margin-bottom: 10px;font-size: 1.3rem;}
.exit-actions {margin-top: 20px;display: flex;justify-content: space-around;}
.exit-actions button {
  background: none;
  border: 1px solid rgba(168,220,84,0.5);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
#exitCancel:hover {background: rgba(255,255,255,0.08);}
#exitConfirm {background: var(--lime, #a8dc54);color: #000;font-weight: 600;}
#exitConfirm:hover {background: #c6ff6d;}
.hidden {display: none;}

.floating-back-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--lime, #a8dc54);
  border: 2px solid rgba(168, 220, 84, 0.5);
  box-shadow: 0 0 25px rgba(168, 220, 84, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  cursor: pointer;
  transition: all 0.25s ease;
  animation: pulseGlow 2.8s infinite ease-in-out;
}

.floating-back-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 35px rgba(168, 220, 84, 0.6);
  transform: scale(1.1);
}

/* glowing pulse animation */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 12px rgba(168, 220, 84, 0.25),
                0 0 25px rgba(168, 220, 84, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 35px rgba(168, 220, 84, 0.6),
                0 0 60px rgba(168, 220, 84, 0.25);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 12px rgba(168, 220, 84, 0.25),
                0 0 25px rgba(168, 220, 84, 0.15);
    transform: scale(1);
  }
}

svg polyline {
   
}

/* === Modal === */
.exit-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.exit-modal.show { opacity: 1; pointer-events: auto; }
.exit-content {
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(168,220,84,0.4);
  box-shadow: 0 0 30px rgba(168,220,84,0.3);
  border-radius: 18px;
  text-align: center;
  padding: 25px 35px;
  color: #fff;
  max-width: 300px;
  font-family: 'Poppins', sans-serif;
  transform: scale(0.9);
  transition: transform 0.25s ease;
}
.exit-modal.show .exit-content { transform: scale(1); }
.exit-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}
.exit-actions button {
  background: none;
  border: 1px solid rgba(168,220,84,0.5);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}
#exitCancel:hover { background: rgba(255,255,255,0.08); }
#exitConfirm {
  background: var(--lime, #a8dc54);
  color: #000;
  font-weight: 600;
}
#exitConfirm:hover { background: #c6ff6d; }
 
.builder-theme-apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    background: rgba(0, 255, 170, 0.15);
    border: 1px solid rgba(0, 255, 170, 0.4);
    color: #8affd8;

    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;

    transition: all 0.2s ease;
}

.builder-theme-apply i {
    font-size: 0.85rem;
}

.builder-theme-apply:hover {
    background: rgba(0, 255, 170, 0.25);
    border-color: #00ffaa;
    color: #c5ffe9;
    box-shadow: 0 0 8px rgba(0, 255, 170, 0.4);
}

.builder-theme-apply:active {
    transform: scale(0.96);
    box-shadow: 0 0 4px rgba(0, 255, 170, 0.3);
}

.load-more-wrap button{
    padding: 15px;
    text-align: center;
    border:1px solid #ccc;
    color: #ccc;
    border-radius: 25px;
    background-color: #000;
}

/* Initial blurry/hidden state */
.fade-img {
  opacity: 0;
  filter: blur(6px);
  transition: opacity .4s ease, filter .5s ease;
}

/* Final clean state */
.fade-img-loaded {
  opacity: 1;
  filter: blur(0);
}
