/* Frost Effect Styles */

/* Frost Overlay */
.frost-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  background: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 50%);
}

/* Frost Particles */
.frost-particle {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: float-particle 10s infinite linear;
}

@keyframes float-particle {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(360deg);
  }
}

/* Frost Border Effect */
.frost-border {
  position: relative;
  overflow: hidden;
}

.frost-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #E0F2FE, transparent, #BFDBFE, transparent, #E0F2FE) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: border-shimmer 4s infinite linear;
  pointer-events: none;
  border-radius: inherit;
}

@keyframes border-shimmer {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 300% 0%;
  }
}

/* Frost Text Effect */
.frost-text {
  position: relative;
  color: transparent !important;
  background: linear-gradient(120deg, #1E40AF, #3B82F6, #93C5FD, #3B82F6, #1E40AF);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  animation: frost-text-animation 4s linear infinite;
  text-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

@keyframes frost-text-animation {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Frost Card Effect */
.frost-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.frost-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    inset 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Frost Button Effect */
.frost-button {
  position: relative;
  background: rgba(30, 64, 175, 0.9);
  color: white;
  border: none;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.frost-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  transform: rotate(45deg);
  z-index: -1;
  transition: all 0.3s ease;
}

.frost-button:hover {
  background: rgba(30, 64, 175, 1);
  box-shadow: 0 0 15px rgba(30, 64, 175, 0.5);
}

.frost-button:hover::before {
  animation: frost-button-shimmer 1.5s infinite;
}

@keyframes frost-button-shimmer {
  0% {
    transform: rotate(45deg) translateY(0%);
  }
  100% {
    transform: rotate(45deg) translateY(100%);
  }
}

/* Snowfall Background */
.snowfall {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.snowflake {
  position: absolute;
  width: 10px;
  height: 10px;
  background: transparent;
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.8);
  animation: snowfall linear infinite;
}

.snowflake::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  transform: rotate(45deg);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes snowfall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(360deg);
    opacity: 0;
  }
}
