@use './variables.scss' as *;

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: $color-bg-dark;
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: $color-text-light;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// Gold gradient text
.gold-text {
  background: linear-gradient(135deg, $color-gold-light 0%, $color-gold 50%, $color-gold-dark 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

// Liquid Gold shimmer effect
.liquid-gold {
  font-family: 'Noto Serif SC', 'Ma Shan Zheng', serif;
  background: linear-gradient(
    90deg,
    $color-gold-dark 0%,
    $color-gold 25%,
    $color-gold-light 50%,
    $color-gold 75%,
    $color-gold-dark 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba($color-gold, 0.4));
}

@keyframes shimmer {
  0%, 100% {
    background-position: 200% center;
  }
  50% {
    background-position: 0% center;
  }
}

// Red glow text
.glow-text {
  text-shadow: $glow-red;
}

// Gold glow text
.gold-glow-text {
  text-shadow: $glow-gold;
}

// Decorative border
.guochao-frame {
  border: 2px solid $color-gold;
  position: relative;

  &::before,
  &::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid $color-gold;
  }

  &::before {
    top: -10px;
    left: -10px;
    border-right: none;
    border-bottom: none;
  }

  &::after {
    bottom: -10px;
    right: -10px;
    border-left: none;
    border-top: none;
  }
}

// Animation keyframes
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.8; filter: brightness(1.2); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scale-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
