/* =============================================
   SABLE & STONE - CLEAN GLASS POPUP
   Simple glass effect with 3-level responsive design
   ============================================= */

/* Popup Overlay */
.glass-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Glass Container */
.glass-container {
  position: relative;
  min-width: 400px;
  max-width: 600px;
  width: 85vw;
  min-height: 400px;
  display: flex;
  align-items: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.007);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Animated border using pseudo-element */
.glass-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    90deg,
    hsl(25deg 70% 55%), 
    hsl(167, 80%, 28%), 
    hsl(320deg 60% 50%), 
    hsl(260deg 50% 45%), 
    hsl(25deg 70% 55%),
    hsl(167deg 80% 28%),
    hsl(320deg 60% 50%), 
    hsl(260deg 50% 45%), 
    hsl(25deg 70% 55%)
  );
  background-size: 400% 100%;
  border-radius: 22px;
  z-index: -1;
  animation: color-flow 4s linear infinite;
  mask-image: linear-gradient(to bottom, #ffffff, #ffffff), linear-gradient(to bottom, #ffffff, #ffffff);
  mask-clip: content-box, border-box;
  mask-composite: exclude;
  -webkit-mask-image: linear-gradient(to bottom, #ffffff, #ffffff), linear-gradient(to bottom, #ffffff, #ffffff);
  -webkit-mask-clip: content-box, border-box;
  -webkit-mask-composite: xor;
  padding: 2px;
}

.glass-container:hover::before {
  animation-play-state: paused;
}

/* Content Container */
.glass-content {
  padding: 2em;
  text-align: center;
  color: white;
  width: 100%;
  box-sizing: border-box;
}

/* Typography */
.glass-heading {
  font-family: var(--font-mono, "PPSupplyMono", monospace);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: white;
  margin: 0 0 0.7rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.1;
}

.glass-subtitle {
  font-family: var(--font-mono, "PPSupplyMono", monospace);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.6rem 0;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.glass-body {
  font-family: var(--font-sans, "PP Neue Montreal", sans-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2.2rem 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* CTA Button */
.glass-cta-btn {
  font-family: var(--font-sans, "PP Neue Montreal", sans-serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: none;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.glass-cta-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transition: width 0.4s ease;
}

.glass-cta-btn:hover {
  color: rgba(255, 255, 255, 1);
  border-bottom-color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.15em;
}

.glass-cta-btn:hover::after {
  width: 100%;
}

/* ========================================
   RESPONSIVE BREAKPOINTS - 3 DISTINCT SIZES
   ======================================== */

/* MOBILE: 320px - 768px */
@media (max-width: 768px) {
  .glass-container {
    min-width: 280px;
    max-width: 380px;
    width: 95vw;
    min-height: 420px;
  }
  
  .glass-container::before {
    padding: 2px;
  }
  
  .glass-content {
    padding: 2em 1.5em;
  }
  
  .glass-heading {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
  }
  
  .glass-subtitle {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }
  
  .glass-body {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 1.8rem;
  }
  
  .glass-cta-btn {
    font-size: 0.9rem;
  }
}

/* TABLET: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .glass-container {
    min-width: 450px;
    max-width: 550px;
    width: 80vw;
    min-height: 480px;
  }
  
  .glass-container::before {
    padding: 2px;
  }
  
  .glass-content {
    padding: 2.5em 2.2em;
  }
  
  .glass-heading {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
  }
  
  .glass-subtitle {
    font-size: 1.35rem;
    margin-bottom: 1.4rem;
  }
  
  .glass-body {
    font-size: 1.18rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }
  
  .glass-cta-btn {
    font-size: 1.05rem;
  }
}

/* DESKTOP: 1025px and above */
@media (min-width: 1025px) {
  .glass-container {
    min-width: 500px;
    max-width: 650px;
    width: 75vw;
    min-height: 500px;
  }
  
  .glass-container::before {
    padding: 2px;
  }
  
  .glass-content {
    padding: 3em 2.5em;
  }
  
  .glass-heading {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
  }
  
  .glass-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.6rem;
  }
  
  .glass-body {
    font-size: 1.25rem;
    line-height: 1.65;
    margin-bottom: 2.2rem;
  }
  
  .glass-cta-btn {
    font-size: 1.1rem;
  }
}

/* Animation for smooth appearance */
.glass-popup-overlay {
  animation: glassFadeIn 0.4s ease-out;
}

.glass-container {
  animation: glassSlideIn 0.5s ease-out 0.1s both;
}

.glass-heading, .glass-subtitle, .glass-body, .glass-cta-btn {
  animation: contentFadeIn 0.6s ease-out 0.3s both;
}

@keyframes glassFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(2px);
  }
}

@keyframes glassSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes contentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animated border keyframes */
@keyframes color-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}