/* ========================================
   SLUGTRAIL THEME — MIDNIGHT PLATINUM
   Industrial Sharp Edition (6px corners)
   ======================================== */

:root {
  --theme: #9FD8FF;             /* primary accent (ice blue) */
  --theme-accent: #5EC3FF;      /* hover accent */
  --bg: #020308;                /* deep midnight */
  --bg-soft: #050814;           /* panel contrast */
  --text: #050814 ;              /* main text */
  --muted: #9BA3B5;             /* subtle text */
  --border-soft: rgba(255,255,255,0.10);
  --border-strong: rgba(159,216,255,0.35);
  --shadow-soft: 0 8px 20px rgba(0,0,0,0.65);
  --radius: 6px;
  --font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===========================
   GLOBAL
   =========================== */

* {
  box-sizing: border-box;
}

::selection,
::-moz-selection {
  background: var(--theme);
  color: #000;
}

body {
  margin: 0;
  padding: 10px;
  font-family: var(--font);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top, #1b283e 0, transparent 55%),
    radial-gradient(circle at bottom, #fff 0, #eee 70%);
  transition: background 0.3s ease, color 0.3s ease;
}


body::before {    
  content: ""; 
  position: fixed;       /* ✅ KEY FIX */
  inset: 0;
  background-image: url("https://www.slugtrail.com/asset/images/patterns/zig-zag.png");
  background-size: 40px;
  opacity: 0.55;
   pointer-events: none;
  z-index: 1;            /* ✅ sits ABOVE gradients */
}

body::before {
  animation: drift 80s linear infinite;
}   

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.02) 25%,
      rgba(0,0,0,0.65) 80%
    );
  z-index: -1;
}
 
@keyframes drift {
  from { background-position: 200px 800px; } 
  to   { background-position: 1200px 1300px; }
}

body > * {
  position: relative;
  z-index: 2;            /* ✅ content stays above pattern */
}

.slugtrail-page{
    padding:20px !important;
    width: 100%;
    margin: 10px auto; 
} 
.container {
  max-width: 550px;
  margin: 0 auto;
  padding: 20px;  background:  none;

}

/* ===========================
   BLOCKS & TYPOGRAPHY
   =========================== */

.block {
  margin: 1.2rem 0;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background:  #DFDFDF;
   
}

.block img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 2px);
}

p {
  margin: 0 0 0.6rem;
  color: var(--text);
}

h1, h2, h3, ul {
  margin: 0 0 0.6rem;
}

h1, h2 {
  color: var(--theme);
  line-height: 1.2;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; }

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

ul {
  padding-left: 1.2rem;
}

/* ===========================
   LINKS & BUTTONS
   =========================== */

a,
button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--theme);
  color: #021018;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease,
              border-color 0.2s ease, transform 0.15s ease;
}

a:hover,
button:hover {
  background: var(--theme-accent);
  color: #020308;
  transform: translateY(-1px);
}

/* Primary full-width call-to-action */
.blink {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #101722, #1e2a3a);
  color: var(--theme);
  border: 1px solid var(--border-soft);
  box-shadow: 0 6px 16px rgba(0,0,0,0.65);
  letter-spacing: 0.35px;
}

.blink:hover {
  background: linear-gradient(135deg, #1b2839, #253549);
  color: var(--theme-accent);
  transform: translateY(-1px);
}

/* Make sure generic anchor links inside content stay clean */
.block a:not(.blink):not(.slugtrail a):not(.trail-path a) {
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  color: var(--theme-accent);
}

.block a:not(.blink):not(.slugtrail a):not(.trail-path a):hover {
  text-decoration: underline;
}

/* ===========================
   CONTACT CARD
   =========================== */

.contact-card {
  background: #050814;
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.contact-row i {
  width: 22px;
  text-align: center;
  font-size: 1rem;
  color: var(--theme);
  flex-shrink: 0;
}


.contact-value {
  flex: 1;
}

.contact-value a {
  display: block;
  width: 100%;
  padding: 7px 8px;
  text-align: left;
  border-radius: var(--radius);
  background: #050814;
  border: 1px solid var(--border-soft);
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
}

.contact-value a:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

/* When a whole row is a link */
.contact-row.is-link a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  text-align: center;
  background: linear-gradient(135deg, #182130, #222f43);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  font-weight: 600;
}

.contact-row.is-link a:hover {
  border-color: var(--theme-accent);
}

/* ===========================
   SOCIAL LINKS
   =========================== */

.social-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: none;
  padding: 0;
}

.social-links a i {
  font-size: 1.4rem;
  color: #ffffff;
  transition: color 0.2s ease, transform 0.15s ease;
}

.social-links a:hover i {
  color: var(--theme-accent);
  transform: translateY(-2px);
}

/* ===========================
   IMAGES & EMBEDS
   =========================== */

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 1px);
}

.embed-wrapper {
  margin: 1.5rem 0;
  padding: 5px;
  border-radius: var(--radius);
  background: #050814;
  border: 1px solid var(--border-soft);
}

.embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 315px;
  border-radius: calc(var(--radius) - 1px);
  border: none;
  background: #000;
}

/* QR block */
.slugs-qr {
  text-align: center;
  margin: 20px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: #050814;
  border: 1px solid var(--border-soft);
}

.slugs-qr img {
  width: 180px;
  height: 180px;
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  padding: 10px;
}

/* ===========================
   SLUGSY FOOTER
   =========================== */

.slugsy-footer {
  margin-top: 14px;
  text-align: center;
  padding: 10px 0 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.slugsy-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  color: var(--theme-accent);
}

.slugsy-footer a:hover {
  transform: translateY(-1px);
}

.slugsy-footer img {
  margin: 0;
  border-radius: 0;
}

/* ===========================
   BREADCRUMB (INLINE)
   =========================== */

.slugtrail {
  font-size: 0.9rem;
  margin: 0 0 18px;
  color: var(--muted);
  word-break: break-word;
}

.slugtrail a {
  color: #000;
    background-color: #fff;
  text-decoration: none;
}

.slugtrail a:hover {
  text-decoration: none;
  background-color: #222;    
  color: #fff !important;    
}

.slugtrail .sep {
  margin: 0 6px;
  color: rgba(255,255,255,0.25);
}

.slugtrail .current {
  color: #FFF;
    font-weight: bold;
  font-weight: 600;
    margin-left: 10px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 600px) {
  .container { padding: 14px; }
  .block { padding: 1rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .blink { font-size: 0.9rem; }
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */

#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d141f;
  color: var(--theme);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
              background 0.2s ease, color 0.2s ease;
  z-index: 999;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--theme-accent);
  color: #020308;
}

/* ===========================
   FLOATING TRAIL COMPANION
   =========================== */

.trail-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.trail-float.show {
  opacity: 1;
  transform: translateY(0);
}

#trailMainBtn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #9fd8ff 22%, #1a2434 70%, #050814 100%);
  color: #020308;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.75);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

#trailMainBtn:hover {
  transform: translateY(-1px) rotate(180deg);
  box-shadow: 0 12px 26px rgba(0,0,0,0.85);
  border-color: var(--theme-accent);
}

/* soft pulse */
#trailMainBtn.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(159,216,255,0.4);
  box-shadow: 0 0 16px rgba(159,216,255,0.6);
  opacity: 0.4;
  animation: mpPulse 2.4s infinite ease-in-out;
}

@keyframes mpPulse {
  0%   { transform: scale(1);   opacity: 0.3; }
  50%  { transform: scale(1.18); opacity: 0.7; }
  100% { transform: scale(1);   opacity: 0.3; }
}

/* Trail dropdown */
.trail-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  width: 230px;
  margin-bottom: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(5,8,20,0.96);
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 28px rgba(0,0,0,0.9);
}

.trail-float.open .trail-menu {
  display: flex;
}

/* Menu items */
.trail-item {
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #111827, #1c2637);
  color: var(--theme);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  box-shadow: none;
}

.trail-item:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

/* Path stack inside menu */
.trail-path {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trail-path a,
.trail-path .current {
  display: block;
  width: 100%;
  padding: 8px 9px;
  border-radius: var(--radius);
  background: #050814;
  border: 1px solid var(--border-soft);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

.trail-path a:hover {
  border-color: var(--theme-accent);
  color: var(--theme-accent);
}

.trail-path .current {
  background: linear-gradient(135deg, #1b2839, #253549);
  color: var(--theme);
  border-color: var(--border-strong);
}

/* Share submenu */
.share-menu {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.trail-menu .share-menu.show {
  display: flex;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: var(--radius);
  background: #050814;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}

.share-option i {
  color: var(--theme);
  font-size: 1rem;
}

.share-option:hover {
  background: #0c1420;
  color: var(--theme-accent);
}

/* ===========================
   LEAD FORM
   =========================== */

.lead-form-block {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: #050814;
  border: 1px solid var(--border-soft);
}

.lead-form-block h3 {
  margin: 0 0 14px;
  padding: 9px 10px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #131b27, #1c2736);
  border: 1px solid var(--border-soft);
  color: var(--theme);
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.35px;
}

.lead-form-block form input,
.lead-form-block form textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: #020308;
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font);
  transition: border-color 0.2s ease, background 0.2s ease,
              box-shadow 0.2s ease;
}

.lead-form-block form input::placeholder,
.lead-form-block form textarea::placeholder {
  color: rgba(155,163,181,0.7);
}

.lead-form-block form input:focus,
.lead-form-block form textarea:focus {
  outline: none;
  border-color: var(--theme-accent);
  background: #050814;
  box-shadow: 0 0 0 1px rgba(159,216,255,0.25);
}

.lead-form-block button[type="submit"] {
  width: 100%;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0f1724, #182435);
  color: var(--theme);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.lead-form-block button[type="submit"]:hover {
  background: linear-gradient(135deg, #172233, #213044);
  color: var(--theme-accent);
  transform: translateY(-1px);
}

/* Success message */
.lead-success {
  display: none;
  margin-top: 12px;
  text-align: center;
  font-size: 0.9rem;
  color: #a1ffce;
}

.lead-success.show {
  display: block;
}

/* ===========================
   VIDEO BLOCK
   =========================== */

.video-block {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 18px auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #050814;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.video-block iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}

/* ===========================
   LIGHTBOX
   =========================== */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(3,6,14,0.95);
  z-index: 9999;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
  cursor: zoom-out;
}

.lightbox-overlay .close-btn {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 30px;
  color: var(--muted);
  cursor: pointer;
}

.lightbox-overlay .close-btn:hover {
  color: var(--theme-accent);
}

.slugimglink,
.slugimglink a {
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* ===========================
   SCROLLBARS
   =========================== */

/* WebKit */
::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: rgba(8,12,22,0.9);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #283449, #111827);
  border-radius: 8px;
  border: 1px solid rgba(159,216,255,0.35);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #324059, #182233);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #323d52 #050814;
}

/* ===========================
   LINK BLOCK BUTTON RESET
   =========================== */

.block.link a.blink,
.block.link .blink,
.block.link button {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #101722, #1a2332);
  color: var(--theme);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 22px rgba(0,0,0,0.7);
}

.block.link a.blink:hover,
.block.link .blink:hover,
.block.link button:hover {
  background: linear-gradient(135deg, #182233, #222f42);
  color: var(--theme-accent);
}


@media (max-width: 600px) {
    .slugtrail-page{
        width: 94%;
        margin: 3%;  
    }     
 
    /* === SlugTrail Path (Breadcrumb) === */
.slugtrail {
  font-family: var(--font);
  color: var(--text);
  font-size: 0.7rem;
  margin: 0 0 20px 0;
  text-align: left;
  word-break: break-word;
     
}
    .slugtrail .current {
    font-weight: bold;
    font-weight: 700;
    opacity: 0.9; 
    float: left;
    width: 100%;     
    text-align: center !important;
    padding: 5px;
    margin-bottom: 15px;    
 }
}   
/* === FINAL FIX — ANIMATION OVERRIDE PRIORITY === */
.block.visible[class*="anim-"] {
    opacity: 1 !important;
    transform: none !important;
}
