@import "tailwindcss";

@theme {
  --font-serif: "Playfair Display", serif;
}

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

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

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spark-float {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-100px) scale(0); opacity: 0; }
}

.animate-spin-slow {
  animation: spin-slow 10s linear infinite;
}

.animate-reverse-spin {
  animation: reverse-spin 7s linear infinite;
}

.animate-fade-in {
  animation: fade-in 1s ease-out forwards;
}

/* 카드 3D 효과 */
.card-perspective {
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.card-inner.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1rem;
  border: 2px solid rgba(255, 215, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-front {
  background: linear-gradient(135deg, #2D1B4E, #1A0F2E);
  color: #FFD700;
}

.card-back {
  background: linear-gradient(135deg, #FFD700, #F3C623);
  color: #2D1B4E;
  transform: rotateY(180deg);
}

.card-glow:hover {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
  transform: scale(1.05);
}

/* 파티클 */
.spark-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #FFD700;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  animation: spark-float 1s ease-out forwards;
}

/* 스크롤바 커스텀 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #2D1B4E;
}

::-webkit-scrollbar-thumb {
  background: #FFD700;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFB7C5;
}
