/* ========================================
   SLUGTRAIL THEME — AZURE BOLT
   ======================================== */

:root { 
  --theme: #00A8FF;         /* electric azure */
  --theme-accent: #00F5FF;  /* aqua neon */
  --bg: #020712;            /* deep night */
  --text: #F5FBFF;
  --font: "Poppins", sans-serif;
  --block-bg: rgba(0, 168, 255, 0.10);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, 0.5);
  --radius: 14px;
}

/* ================================
   Text selection
   ================================ */
::selection {
  background-color: var(--theme);
  color: #000;
}
::-moz-selection {
  background-color: var(--theme);
  color: #000;
}

/* ================================
   Base Layout
   ================================ */
body {
  background: radial-gradient(circle at top, #06142A 0%, #01030A 38%, #000 100%);
  color: var(--text);
  font-family: var(--font);
  margin: 0;
  padding: 10px;
  line-height: 1.6;
  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/swirl.png");
  background-size: 300px;
  opacity: 0.25;
   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: 0 0; }
  to   { background-position: 900px 400px; }
}
body > * {
  position: relative;
  z-index: 2;            /* ✅ content stays above pattern */
}

.container {
  max-width: 550px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 24px;
  background: radial-gradient(circle at top, rgba(0, 168, 255, 0.08), rgba(0, 0, 0, 0.96));
  box-shadow: var(--shadow-soft);
}

/* ================================
   Blocks
   ================================ */
.block {
  margin: 1.2rem 0;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(4, 18, 40, 0.9);
  border: 1px solid rgba(0, 245, 255, 0.08);
  backdrop-filter: blur(16px);
}

.block img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

p {
  color: var(--text);
}

/* ================================
   Typography
   ================================ */
h1, h2, h3, p, ul {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

h1, h2 {
  color: var(--theme-accent);
  line-height: 1.2;
  text-shadow: 0 0 14px rgba(0, 245, 255, 0.35);
}

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

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

ul {
  padding-left: 1.2rem;
}

/* ================================
   Generic Links & Buttons
   ================================ */
a,
button {
  color: #020712;
  background: var(--theme);
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-block;
}

a:hover,
button:hover {
  color: #020712 !important;
  background: var(--theme-accent);
  transform: translateY(-2px);
}

/* Main CTA-style button in content blocks */
.blink {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--theme), var(--theme-accent));
  color: #020712 !important;
  text-decoration: none;
  padding: 14px 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.3px;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 168, 255, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blink:hover {
  background: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 245, 255, 0.45);
}

/* Maintain button identity in pure link blocks */
.block.link a.blink,
.block.link .blink,
.block.link button {
  display: block;
  width: 100%;
  text-align: center;
}

/* ================================
   Contact Card
   ================================ */
.contact-card {
  background: rgba(4, 18, 40, 0.95);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(0, 245, 255, 0.12);
  color: var(--text);
}

.contact-row {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 1rem;
  gap: 10px;
}

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

/* Full-width linked contact rows */
.contact-row.is-link {
  width: 100%;
}

.contact-row.is-link a {
  flex-grow: 1;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 168, 255, 0.12);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease, color 0.2s ease;
}

.contact-row.is-link a:hover {
  background: linear-gradient(135deg, var(--theme), var(--theme-accent));
  color: #020712;
  transform: translateX(3px);
}

/* Text links (email, phone, etc.) */
.contact-value {
  flex-grow: 1;
  width: 100%;
}

.contact-value a {
  display: block;
  width: 100% !important;
  color: #020712 !important;
  background-color: #F7FBFF !important;
  text-decoration: none;
  font-weight: 600;
  border: none;
  text-align: center !important;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.contact-value a:hover {
  color: #F7FBFF !important;
  background-color: #020712 !important;
  transform: translateY(-1px);
}

/* ================================
   Social Links
   ================================ */
.social-links {
  margin-top: 12px;
  text-align: center;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Flat icon-only style */
.social-links a {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

.social-links a i {
  color: #FFFFFF !important;
  font-size: 1.8rem;
  text-shadow: 0 0 10px rgba(0, 168, 255, 0.55);
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

.social-links a:hover i {
  color: var(--theme-accent) !important;
  transform: translateY(-2px) scale(1.05);
  text-shadow: 0 0 16px rgba(0, 245, 255, 0.75);
}

/* ================================
   Images
   ================================ */
img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Unstyled image links */
.slugimglink,
.slugimglink a {
  padding: 0 !important;
  margin: 0 !important;
  display: block;
  line-height: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.slugimglink a:hover,
.slugimglink a:focus {
  background: transparent !important;
  box-shadow: none !important;
}

/* ================================
   Embed / Video / Map
   ================================ */
.embed-wrapper {
  margin: 1.5rem 0;
  background: #020712;
  border-radius: 12px;
  padding: 6px;
  border: 1px solid rgba(0, 245, 255, 0.12);
}

.embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 315px;
  border-radius: 10px;
  background: #000;
  border: none;
}

/* Video block (YouTube etc.) */
.video-block {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  border-radius: 12px;
  overflow: hidden;
  background: #020712;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.video-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(0, 245, 255, 0.45);
}

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

.video-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 0 10px rgba(255,255,255,0.05);
}

/* ================================
   Lightbox
   ================================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
}

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

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

.lightbox-overlay .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.2s;
}

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

/* ================================
   Slug QR Display
   ================================ */
.slugs-qr {
  text-align: center;
  margin: 20px 0;
  padding: 20px;
  background: #020712;
  border-radius: 14px;
}

.slugs-qr img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  display: inline-block;
  background: #fff;
  padding: 10px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 0 16px rgba(0, 168, 255, 0.45);
}

.slugs-qr img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.7);
}

.slugs-qr.no-qr {
  font-size: 0.9rem;
  color: #7A8A9A;
  padding: 40px 0;
}

/* ================================
   Slugsy Footer
   ================================ */
.slugsy-footer {
  margin-top: 13px;
  text-align: center;
  padding: 13px 0 10px;
  font-size: 0.9rem;
  color: #8FA5C0;
  opacity: 0.95;
  border-radius: 0 0 20px 20px;
  background: none;
}

.slugsy-footer a {
  color: var(--theme-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  padding: 0;
  background: none !important;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.25s ease, opacity 0.25s ease, color 0.25s ease;
}

.slugsy-footer a:hover {
  opacity: 1;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.slugsy-footer img {
  vertical-align: middle;
  margin: 0;
  border-radius: 0;
  transition: transform 0.25s ease;
}

.slugsy-footer a:hover img {
  transform: rotate(-3deg) scale(1.12);
}

.slugsy-footer .slugsy {
  max-width: 250px !important;
  margin: 0 auto;
}

.qr {
  max-width: 350px !important;
  margin: 0 auto;
}

/* ================================
   Breadcrumb (Top Path) — .slugtrail
   ================================ */
.slugtrail {
  font-family: var(--font);
  color: var(--text);
  font-size: 0.95rem;
  margin: 0 0 20px 0;
  text-align: left;
  word-break: break-word;
}

.slugtrail a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.25s ease;
  margin-bottom: 5px !important;
  background: rgba(2, 7, 18, 0.9);
  backdrop-filter: blur(6px);
  display: inline-block;
}

.slugtrail a:hover {
  color: #020712;
  background: #F7FBFF;
  box-shadow: 0 4px 14px rgba(0, 168, 255, 0.35);
  transform: translateY(-1px);
}

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

.slugtrail .current {
  color: #020712 !important;
  font-weight: 700;
  opacity: 1;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--theme) 0%, var(--theme-accent) 100%);
  box-shadow: 0 0 14px rgba(0, 245, 255, 0.7);
  margin-left: 10px;
}

/* ================================
   Trail Float + Menu
   ================================ */
/* Wrapper */
.trail-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Main circular button */
#trailMainBtn {
  background: radial-gradient(circle at top, var(--theme-accent), var(--theme));
  color: #020712;
  border: none;
  outline: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 245, 255, 0.75);
  transition: all 0.3s ease;
  position: relative;
}

#trailMainBtn:hover {
  transform: rotate(180deg) scale(1.05);
}

/* Pulse glow */
#trailMainBtn.pulse::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  inset: 0;
  box-shadow: 0 0 18px 8px rgba(0, 245, 255, 0.65);
  opacity: 0.4;
  animation: pulseGlowAzure 2.5s infinite ease-in-out;
}

@keyframes pulseGlowAzure {
  0%   { transform: scale(1);   opacity: 0.4; }
  50%  { transform: scale(1.3); opacity: 0.9; }
  100% { transform: scale(1);   opacity: 0.4; }
}

/* Dropdown tray */
.trail-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  background: rgba(4, 18, 40, 0.95);
  padding: 14px 12px;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.65);
  border: 1px solid rgba(0, 245, 255, 0.15);
  width: 240px;
  margin-bottom: 10px;
  transform-origin: bottom right;
  animation: fadeInTrail 0.25s ease;
}

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

/* Menu buttons (Top / Share etc.) */
.trail-item {
  background: linear-gradient(135deg, var(--theme), var(--theme-accent));
  color: #020712 !important;
  font-weight: 700;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 168, 255, 0.4);
  transition: all 0.25s ease;
}

.trail-item:hover {
  background: #FFFFFF;
  color: #020712 !important;
  transform: translateY(-2px);
}

/* Animated breadcrumb stack inside trail menu */
.trail-path {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  padding: 0;
}

.trail-path a,
.trail-path .current {
  display: block;
  width: 100%;
  background: rgba(2, 7, 18, 0.9);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.25s ease;
}

.trail-path a:hover {
  background: linear-gradient(135deg, var(--theme), var(--theme-accent));
  color: #020712;
}

.trail-path .current {
  background: linear-gradient(145deg, var(--theme), var(--theme-accent));
  color: #020712;
  font-weight: 800;
}

/* Entrance animations */
@keyframes fadeInTrail {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.trail-float.open .trail-menu .trail-item,
.trail-float.open .trail-menu .trail-path a,
.trail-float.open .trail-menu .trail-path .current {
  opacity: 0;
  animation: trailPopAzure 0.25s forwards;
}

.trail-float.open .trail-menu .trail-item:nth-child(1) { animation-delay: 0.05s; }
.trail-float.open .trail-menu .trail-item:nth-child(2) { animation-delay: 0.10s; }

@keyframes trailPopAzure {
  0%   { transform: translateY(15px) scale(0.9);  opacity: 0; }
  60%  { transform: translateY(-4px) scale(1.03); opacity: 1; }
  80%  { transform: translateY(2px)  scale(0.98); }
  100% { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Share submenu */
.share-menu {
  position: relative;
  margin-top: 8px;
  background: rgba(2, 7, 18, 0.96);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 0 12px rgba(0,168,255,0.5);
  display: none;
  flex-direction: column;
  gap: 8px;
  animation: bounceInAzure 0.4s ease;
}

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

.share-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0,168,255,0.10);
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.share-option i {
  color: var(--theme-accent);
  font-size: 1.1rem;
  transition: all 0.25s ease;
}

.share-option:hover {
  background: linear-gradient(135deg, var(--theme), var(--theme-accent));
  color: #020712;
  transform: translateX(4px);
}

.share-option:hover i {
  color: #020712;
}

@keyframes bounceInAzure {
  0%   { transform: scale(0.9); opacity: 0; }
  60%  { transform: scale(1.04); opacity: 1; }
  80%  { transform: scale(0.98); }
  100% { transform: scale(1);    opacity: 1; }
}

/* ================================
   Back to Top Button
   ================================ */
#backToTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 998;
  background: linear-gradient(135deg, var(--theme), var(--theme-accent));
  color: #020712;
  border: none;
  outline: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.6);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}

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

#backToTop:hover {
  background: #FFFFFF;
  transform: translateY(-3px) scale(1.05);
}

#backToTop i {
  pointer-events: none;
}

/* ================================
   Lead Form Block
   ================================ */
.lead-form-block {
  padding: 22px 20px;
  border-radius: 12px;
  margin: 5px 0 !important;
  background: rgba(4, 18, 40, 0.95);
  border: 1px solid rgba(0, 245, 255, 0.16);
}

.lead-form-block h3 {
  margin: 0 0 18px 0;
  padding: 12px 18px;
  text-align: center;
  color: #E5F7FF;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: radial-gradient(circle at top, rgba(0, 168, 255, 0.55), rgba(1, 3, 15, 0.95));
  border-radius: 30px;
  border: 1px solid rgba(0,245,255,0.35);
}

.lead-form-block form input,
.lead-form-block form textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(0,168,255,0.35);
  background: rgba(0, 7, 20, 0.9);
  color: #E5F7FF;
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  font-family: var(--font) !important;
}

.lead-form-block form input::placeholder,
.lead-form-block form textarea::placeholder {
  color: rgba(205, 230, 255, 0.55);
}

.lead-form-block form input:focus,
.lead-form-block form textarea:focus {
  background: #020712;
  border-color: var(--theme-accent);
  box-shadow: 0 0 10px rgba(0,245,255,0.6);
  outline: none;
}

/* Submit button */
.lead-form-block button[type="submit"] {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, var(--theme), var(--theme-accent));
  color: #020712 !important;
  font-weight: 700;
  padding: 14px 0;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 168, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.25s ease, opacity 0.25s;
  font-family: var(--font) !important;
}

.lead-form-block button[type="submit"]:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 6px 22px rgba(0, 245, 255, 0.7);
}

/* Success message */
.lead-success {
  display: none;
  text-align: center;
  color: #8CFFEA;
  margin-top: 16px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.4s ease;
}

.lead-success.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ================================
   Scrollbar — Frosted Azure
   ================================ */
::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: rgba(0, 22, 45, 0.8);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--theme-accent), var(--theme));
  border-radius: 10px;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
  border: 2px solid rgba(2, 7, 18, 0.95);
}

::-webkit-scrollbar-thumb:hover {
  background: #FFFFFF;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--theme-accent) rgba(2,7,18,0.9);
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 600px) {
  .container { padding: 12px; }
  .block { padding: 1rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  .blink { font-size: 0.95rem; }
}


@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;
     
}
    
}   
/* === FINAL FIX — ANIMATION OVERRIDE PRIORITY === */
.block.visible[class*="anim-"] {
    opacity: 1 !important;
    transform: none !important;
}
