/* ===========================
   NATUREO GLASSMORPHISM SYSTEM
   =========================== */

/* Core glass layer mixin equivalent */
.glass-layer {
  position: relative;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  box-shadow:
    0 35px 90px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.glass-layer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  pointer-events: none;
  z-index: 1;
}

/* Variants */
.glass-light {
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.3);
}

.glass-dark {
  background: rgba(57,67,54,0.12);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255,255,255,0.1);
}

.glass-strong {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow:
    0 35px 90px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.4);
}

/* Depth shadows */
.shadow-float-sm {
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.shadow-float-md {
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.shadow-float-lg {
  box-shadow: 0 35px 90px rgba(0,0,0,0.1);
}

.shadow-float-xl {
  box-shadow: 0 50px 120px rgba(0,0,0,0.12);
}

/* Hover glow effect */
.hover-glow {
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.hover-glow:hover {
  box-shadow:
    0 35px 90px rgba(0,0,0,0.1),
    0 0 0 1px rgba(255,255,255,0.5),
    inset 0 0 40px rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
}

/* Reflective shine overlay */
.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.04),
    transparent
  );
  transform: rotate(25deg);
  animation: shineSweep 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

/* Noise texture overlay */
.noise-overlay {
  position: relative;
}

.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}

/* 3D Tilt perspective container */
.tilt-3d {
  transform-style: preserve-3d;
  perspective: 1200px;
}

.tilt-3d > * {
  transform-style: preserve-3d;
}

/* Floating animation variants */
.float-slow {
  animation: float 6s ease-in-out infinite;
}

.float-medium {
  animation: float 4s ease-in-out infinite;
}

.float-fast {
  animation: float 3s ease-in-out infinite;
}

.float-random {
  animation: floatRandom 5s ease-in-out infinite;
}

@keyframes floatRandom {
  0%, 100% { transform: translateY(0px) translateX(0px); }
  25% { transform: translateY(-6px) translateX(3px); }
  50% { transform: translateY(-3px) translateX(-2px); }
  75% { transform: translateY(-8px) translateX(1px); }
}

/* Gradient glass borders */
.glass-border-gold {
  border: 1px solid rgba(205,164,106,0.2);
}

.glass-border-gold:hover {
  border-color: rgba(205,164,106,0.4);
  box-shadow: 0 0 30px rgba(205,164,106,0.08);
}

/* Frosted glass (extra blur) */
.glass-frost {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(60px);
  -webkit-backdrop-filter: blur(60px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 35px 90px rgba(0,0,0,0.05);
}

/* Glass inverted */
.glass-invert {
  background: rgba(57,67,54,0.08);
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Depth layering system */
.depth-1 { z-index: 1; }
.depth-2 { z-index: 2; }
.depth-3 { z-index: 3; }
.depth-4 { z-index: 4; }
.depth-5 { z-index: 5; }
.depth-10 { z-index: 10; }

/* Parallax layers */
.parallax-slow {
  transition: transform 0.1s ease-out;
}

.parallax-mid {
  transition: transform 0.05s ease-out;
}

.parallax-fast {
  transition: transform 0.02s ease-out;
}

/* Glass card with high-end reflection */
.glass-premium {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.2) 0%,
    rgba(255,255,255,0.08) 40%,
    rgba(255,255,255,0.05) 100%
  );
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow:
    0 35px 90px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,0.3);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.glass-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08) 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 1;
}

.glass-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255,255,255,0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

/* Footer specific glass (newsletter) */
.glass-newsletter {
  background: linear-gradient(
    135deg,
    rgba(57,67,54,0.9) 0%,
    rgba(42,48,40,0.95) 100%
  );
  backdrop-filter: blur(35px);
  -webkit-backdrop-filter: blur(35px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 35px 90px rgba(0,0,0,0.15);
}
