/* Metal/Liquid Glass Button Styles */
.metal-button-wrapper {
  position: relative;
  display: inline-block;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.metal-button-inner {
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.metal-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg,
    rgba(80, 80, 80, 0.8) 0%,
    rgba(50, 50, 50, 0.9) 50%,
    rgba(30, 30, 30, 0.95) 100%
  );
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  text-transform: lowercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

/* Shine effect overlay */
.metal-button-shine {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.metal-button-shine-inner {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
}

.metal-button.pressed .metal-button-shine {
  opacity: 0.2;
}

/* Hover effect */
.metal-button-hover-glow {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.metal-button:hover .metal-button-hover-glow {
  opacity: 1;
}

.metal-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* Pressed state */
.metal-button.pressed,
.metal-button:active {
  transform: translateY(1px);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.4),
    inset 0 1px 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg,
    rgba(30, 30, 30, 0.95) 0%,
    rgba(50, 50, 50, 0.9) 50%,
    rgba(60, 60, 60, 0.85) 100%
  );
}

/* Liquid glass variant */
.metal-button.liquid-glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.metal-button.liquid-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 12px 48px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.metal-button.liquid-glass.pressed,
.metal-button.liquid-glass:active {
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Button text */
.metal-button span {
  position: relative;
  z-index: 10;
}

/* Disabled state */
.metal-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Mobile touch support */
@media (hover: none) {
  .metal-button:hover {
    transform: none;
  }
}
