/*
 * Neumorphic Design System
 * Level10 Coming Soon Page
 */

/* Base Neumorphic Classes */
.neu-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-shadow);
  transition: box-shadow var(--transition-base);
}

.neu-card:hover {
  box-shadow: var(--neu-shadow-hover);
}

.neu-inset {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-shadow-inset);
}

.neu-pressed {
  background: var(--bg-secondary);
  box-shadow: var(--neu-shadow-inset);
}

.neu-flat {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow:
    5px 5px 15px var(--neu-shadow-dark),
    -5px -5px 15px var(--neu-shadow-light);
}

/* Neumorphic Button */
.neu-button {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-full);
  padding: var(--space-md) var(--space-xl);
  box-shadow: var(--neu-shadow);
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.neu-button:hover {
  box-shadow: var(--neu-shadow-hover);
  transform: translateY(-2px);
}

.neu-button:active {
  box-shadow: var(--neu-shadow-inset);
  transform: translateY(0);
}

/* Neumorphic Input */
.neu-input {
  background: var(--bg-primary);
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--neu-shadow-inset);
  font-family: var(--font-body);
  color: var(--text-primary);
  transition: all var(--transition-base);
}

.neu-input:focus {
  outline: none;
  box-shadow:
    var(--neu-shadow-inset),
    0 0 0 3px rgba(93, 173, 226, 0.3);
}

.neu-input::placeholder {
  color: var(--text-tertiary);
}

/* Neumorphic Glass Effect */
.neu-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.37),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .neu-glass {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow:
    0 8px 32px 0 rgba(0, 0, 0, 0.1),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
}

/* Neumorphic Icon Container */
.neu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-shadow);
  transition: all var(--transition-base);
}

.neu-icon:hover {
  box-shadow: var(--neu-shadow-hover);
  transform: scale(1.05);
}

/* Neumorphic Toggle Switch */
.neu-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-shadow-inset);
  cursor: pointer;
  transition: all var(--transition-base);
}

.neu-toggle::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--bg-primary);
  border-radius: 50%;
  top: 4px;
  left: 4px;
  box-shadow:
    3px 3px 8px var(--neu-shadow-dark),
    -2px -2px 6px var(--neu-shadow-light);
  transition: all var(--transition-base);
}

.neu-toggle.active::before {
  left: 34px;
  background: var(--gradient-1);
}

/* Neumorphic Badge */
.neu-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  padding: var(--space-xs) var(--space-md);
  box-shadow:
    5px 5px 10px var(--neu-shadow-dark),
    -5px -5px 10px var(--neu-shadow-light);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Neumorphic Progress Bar */
.neu-progress {
  width: 100%;
  height: 10px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-shadow-inset);
  overflow: hidden;
  position: relative;
}

.neu-progress-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: var(--radius-full);
  box-shadow:
    0 0 10px rgba(231, 76, 60, 0.5);
  transition: width var(--transition-slow);
}

/* Neumorphic Divider */
.neu-divider {
  width: 100%;
  height: 2px;
  background: var(--bg-primary);
  box-shadow:
    inset 0 1px 2px var(--neu-shadow-dark),
    inset 0 -1px 2px var(--neu-shadow-light);
  margin: var(--space-lg) 0;
}

/* 3D Tilt Effect (for cards) */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform var(--transition-slow);
}

/* Magnetic Button Effect Container */
.magnetic-container {
  position: relative;
  display: inline-block;
}

/* Gradient Border Effect */
.neu-gradient-border {
  position: relative;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 2px;
}

.neu-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 2px;
  background: var(--gradient-1);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Floating Animation for Neumorphic Elements */
@keyframes neu-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

/* Pulse Glow Effect */
@keyframes neu-pulse {
  0%, 100% {
    box-shadow:
      var(--neu-shadow),
      0 0 0 rgba(93, 173, 226, 0);
  }
  50% {
    box-shadow:
      var(--neu-shadow),
      0 0 20px rgba(93, 173, 226, 0.4);
  }
}

.neu-pulse {
  animation: neu-pulse 2s ease-in-out infinite;
}
