/* ==========================================================================
   COLOR SCHEME
   ========================================================================== */

:root {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-light: #eff6ff;
  --color-success: #16a34a;
  --color-success-hover: #15803d;
  --color-success-light: #f0fdf4;
  --color-danger: #dc2626;
  --color-danger-hover: #b91c1c;
  --color-danger-light: #fef2f2;
  --color-warning: #ca8a04;
  --color-warning-hover: #a16207;
  --color-warning-light: #fefce8;
  --color-neutral: #111827;
  --color-neutral-hover: #1f2937;
  --color-neutral-light: #f3f4f6;
  --color-neutral-border: #d1d5db;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
  font-family: system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   AQUARIUM BACKGROUND - Subtle swimming fish
   ========================================================================== */

.aquarium {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.fish {
  position: absolute;
  opacity: 0.03;
  filter: grayscale(50%) brightness(1.2);
}

/* Fish swimming left to right */
@keyframes swimRight {
  0% {
    transform: translateX(-50px) translateY(0) scaleX(1);
  }
  25% {
    transform: translateX(25vw) translateY(-8px) scaleX(1);
  }
  50% {
    transform: translateX(50vw) translateY(5px) scaleX(1);
  }
  75% {
    transform: translateX(75vw) translateY(-5px) scaleX(1);
  }
  100% {
    transform: translateX(calc(100vw + 50px)) translateY(0) scaleX(1);
  }
}

/* Fish swimming right to left */
@keyframes swimLeft {
  0% {
    transform: translateX(calc(100vw + 50px)) translateY(0) scaleX(-1);
  }
  25% {
    transform: translateX(75vw) translateY(6px) scaleX(-1);
  }
  50% {
    transform: translateX(50vw) translateY(-4px) scaleX(-1);
  }
  75% {
    transform: translateX(25vw) translateY(8px) scaleX(-1);
  }
  100% {
    transform: translateX(-50px) translateY(0) scaleX(-1);
  }
}

.fish-1 {
  top: 12%;
  width: 18px;
  animation: swimRight 80s linear infinite;
  animation-delay: 0s;
}

.fish-2 {
  top: 28%;
  width: 14px;
  animation: swimLeft 95s linear infinite;
  animation-delay: -25s;
}

.fish-3 {
  top: 45%;
  width: 20px;
  animation: swimRight 70s linear infinite;
  animation-delay: -15s;
}

.fish-4 {
  top: 62%;
  width: 12px;
  animation: swimLeft 110s linear infinite;
  animation-delay: -50s;
}

.fish-5 {
  top: 78%;
  width: 16px;
  animation: swimRight 90s linear infinite;
  animation-delay: -35s;
}

.fish-6 {
  top: 20%;
  width: 22px;
  animation: swimLeft 100s linear infinite;
  animation-delay: -60s;
  opacity: 0.02;
}

.fish-7 {
  top: 52%;
  width: 10px;
  animation: swimRight 120s linear infinite;
  animation-delay: -40s;
}

.fish-8 {
  top: 88%;
  width: 15px;
  animation: swimLeft 85s linear infinite;
  animation-delay: -10s;
}

/* Logo hover effect */
.fish-logo {
  transition: transform 0.3s ease;
}

.fish-logo:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   LEGACY STYLES
   ========================================================================== */

.notice {
  color: green;
}

.alert {
  color: red;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-warning {
  background-color: var(--color-warning);
  color: #212529;
}

.btn-warning:hover {
  background-color: var(--color-warning-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   COLLECTION CARD HIGHLIGHT ANIMATION
   ========================================================================== */

@keyframes cardHighlight {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  25% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 20px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.collection-card-highlight {
  animation: cardHighlight 1.2s ease-out;
}
