/*
 * Premium Design System - Saju Fortune Application
 * 10억 짜리 디자인 스타일시트
 * 
 * This stylesheet contains premium design components and animations
 * for the Saju Fortune application with advanced visual effects.
 * 
 * Tailwind CSS는 별도로 빌드되므로 여기서는 추가 스타일만 정의
 */

@import url("/assets/tailwind-388a6b5b.css");

/* Premium Animations */
@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(147, 51, 234, 0.5), 0 0 60px rgba(59, 130, 246, 0.3);
  }
}

@keyframes shimmer-premium {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes bounce-gentle {
  0%, 100% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(-10px);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

/* Animation Classes */
.animate-blob {
  animation: blob 7s infinite;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 4s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer-premium 2s infinite;
}

.animate-gradient {
  background-size: 400% 400%;
  animation: gradient-shift 8s ease infinite;
}

.animate-bounce-gentle {
  animation: bounce-gentle 3s infinite;
}

/* Animation Delays */
.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* Premium Components */
.glass-premium {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-border {
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 1rem;
  padding: 2px;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: white;
  border-radius: calc(1rem - 2px);
  z-index: -1;
}

/* Premium Button Effects */
.btn-premium-3d {
  position: relative;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
  transform: perspective(1000px) rotateX(0deg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium-3d:hover {
  transform: perspective(1000px) rotateX(-5deg) translateY(-5px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.btn-premium-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: inherit;
  pointer-events: none;
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Premium Loading States */
.loading-premium {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading-wave 1.5s infinite;
}

@keyframes loading-wave {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Luxury Shadows */
.shadow-luxury {
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06),
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-luxury-xl {
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Interactive Elements */
.interactive-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.interactive-card:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Premium Gradient Backgrounds */
.bg-premium-1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-premium-2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-premium-3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-premium-4 {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.bg-premium-5 {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Morphing Shapes */
.morphing-shape {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: morph 8s ease-in-out infinite both;
}

@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 70% 30% 60% 40% / 60% 40% 60% 30%;
  }
  75% {
    border-radius: 40% 60% 30% 70% / 40% 70% 60% 30%;
  }
}

/* Responsive Typography */
.text-responsive {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
}

.text-responsive-lg {
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.text-responsive-xl {
  font-size: clamp(2rem, 6vw, 5rem);
}

/* Korean Font Optimization */
.korean-optimized {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar Premium */
.scrollbar-premium::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.scrollbar-premium::-webkit-scrollbar-track {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 10px;
}

.scrollbar-premium::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 10px;
  box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
}

.scrollbar-premium::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

/* Advanced Grid Layouts */
.grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

/* Accessibility Enhancements */
.focus-premium:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.focus-premium:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 4px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-friendly {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .glass, .glass-premium, .glass-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #000;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  .glass-card {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
  }
}

/* Performance Optimizations */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

.contain-layout {
  contain: layout;
}

.contain-paint {
  contain: paint;
}

/* Utility Classes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Container Queries (Modern Browsers) */
@container (min-width: 400px) {
  .container-responsive {
    padding: 2rem;
  }
}

@container (min-width: 600px) {
  .container-responsive {
    padding: 3rem;
  }
}

/* ========================
   TAROT CARD STYLES
   ======================== */

/* 타로카드 기본 구조 - 더욱 카드다운 모양과 명확한 배경 */
.tarot-card {
  position: relative;
  width: 140px;  /* 5장 레이아웃에서도 충분히 보이도록 크기 증가 */
  height: 220px; /* 비율 유지하며 높이도 증가 */
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  perspective: 1000px;
  transform-style: preserve-3d;
  z-index: 10; /* 겹침 방지를 위한 z-index 설정 */
  /* 더욱 강화된 그림자와 깊이감으로 배경에서 돋보이게 */
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.7),
    0 10px 25px rgba(0, 0, 0, 0.5),
    0 5px 12px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 215, 0, 0.6),
    0 0 0 6px rgba(139, 69, 19, 0.4),
    0 0 15px rgba(255, 215, 0, 0.3),
    inset 0 3px 0 rgba(255, 255, 255, 0.5),
    inset 0 -3px 0 rgba(0, 0, 0, 0.5);
  /* 카드 기본 배경 - 어떤 배경에서도 잘 보이도록 */
  background: 
    linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 50%, #0f0f23 100%),
    radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.03) 25%, transparent 25%);
  background-size: 100% 100%, 15px 15px, 8px 8px, 6px 6px;
  /* 카드 테두리 강화 */
  border: 2px solid rgba(255, 215, 0, 0.8);
}

/* 5장 카드 레이아웃에서의 호버 효과 개선 */
.tarot-card:hover {
  transform: translateY(-8px) scale(1.05) rotateX(5deg);
  z-index: 20; /* 호버시 맨 앞으로 */
  box-shadow: 
    0 25px 70px rgba(0, 0, 0, 0.8),
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 8px 18px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 0 0 4px rgba(255, 215, 0, 0.8),
    0 0 0 8px rgba(139, 69, 19, 0.5),
    0 0 25px rgba(255, 215, 0, 0.6),
    0 0 50px rgba(255, 215, 0, 0.3),
    inset 0 4px 0 rgba(255, 255, 255, 0.6),
    inset 0 -4px 0 rgba(0, 0, 0, 0.6);
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  /* 더욱 진한 배경으로 명확하게 구분 */
  background: linear-gradient(135deg, #2a2a3e 0%, #1a1a2e 30%, #16213e 50%, #0f0f23 70%, #1a1a2e 100%);
  border: 5px solid #ffd700;
  border-radius: 12px;
  padding: 18px 14px;
  /* 강화된 내부 그림자로 입체감 증대 */
  box-shadow: 
    inset 0 6px 12px rgba(255, 255, 255, 0.2),
    inset 0 -6px 12px rgba(0, 0, 0, 0.4),
    inset 0 0 30px rgba(255, 215, 0, 0.15),
    inset 0 0 0 1px rgba(255, 215, 0, 0.3);
  /* 더욱 고급스러운 카드 질감 */
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
    linear-gradient(45deg, rgba(255, 215, 0, 0.03) 25%, transparent 25%);
  background-size: 100% 100%, 150% 150%, 120% 120%, 80% 80%, 80% 80%, 10px 10px;
}

/* 호버 효과 - 더욱 강화된 카드 시각성 */
.tarot-card:hover {
  transform: translateY(-12px) scale(1.08) rotateX(8deg);
  box-shadow: 
    0 35px 100px rgba(0, 0, 0, 0.9),
    0 20px 50px rgba(0, 0, 0, 0.7),
    0 12px 25px rgba(0, 0, 0, 0.5),
    0 6px 12px rgba(0, 0, 0, 0.4),
    0 0 0 6px rgba(255, 215, 0, 0.8),
    0 0 0 12px rgba(139, 69, 19, 0.5),
    0 0 40px rgba(255, 215, 0, 0.7),
    0 0 80px rgba(255, 215, 0, 0.3),
    inset 0 6px 0 rgba(255, 255, 255, 0.6),
    inset 0 -6px 0 rgba(0, 0, 0, 0.6);
}

/* 호버 시 카드 내부 효과 강화 */
.tarot-card:hover .tarot-card-inner {
  border-color: #ffff00;
  border-width: 6px;
  box-shadow: 
    inset 0 8px 16px rgba(255, 255, 255, 0.25),
    inset 0 -8px 16px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(255, 215, 0, 0.2),
    inset 0 0 0 2px rgba(255, 215, 0, 0.4);
}

/* 역방향 카드 회전 */
.tarot-reversed .tarot-card-inner {
  transform: rotate(180deg);
}

/* 카드 상단 타이틀 - 더욱 고급스러운 카드 스타일 */
.tarot-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 12px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.tarot-card-title {
  font-size: 12px;  /* 11px → 12px 크기 증가 */
  font-weight: 800;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 215, 0, 0.3);
  font-family: 'Times New Roman', serif;
}

.tarot-card-number {
  font-size: 10px;  /* 9px → 10px 크기 증가 */
  color: rgba(212, 175, 55, 0.8);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.1);
  padding: 3px 8px;  /* 패딩 증가 */
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* 중앙 심볼 영역 - 더욱 카드다운 고급 스타일 */
.tarot-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: #ffd700;
  text-shadow: 
    0 3px 6px rgba(0, 0, 0, 0.9),
    0 0 15px rgba(255, 215, 0, 0.4),
    0 0 30px rgba(255, 215, 0, 0.2);
  position: relative;
  background: 
    radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  padding: 20px;
  margin: 10px;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.tarot-symbol::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700 20%, #d4af37 50%, #ffd700 80%, transparent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.tarot-symbol::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffd700 20%, #d4af37 50%, #ffd700 80%, transparent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.tarot-symbol.major {
  font-size: 3.5rem;
  line-height: 1;
  animation: gentle-glow 3s ease-in-out infinite alternate;
}

.tarot-symbol.minor {
  font-size: 2.5rem;
  line-height: 1;
}

.suit-symbol {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.9));
  animation: gentle-pulse 2s ease-in-out infinite;
}

.card-rank {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffd700;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 215, 0, 0.3);
  font-family: 'Times New Roman', serif;
}

/* 심볼 애니메이션 */
@keyframes gentle-glow {
  0% { text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2); }
  100% { text-shadow: 0 3px 6px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3); }
}

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

/* 카드 하단 - 더욱 고급스러운 카드 스타일 */
.tarot-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.tarot-card-orientation {
  font-size: 9px;
  color: rgba(255, 215, 0, 0.8);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 0 6px rgba(255, 215, 0, 0.2);
  font-family: 'Times New Roman', serif;
  background: rgba(212, 175, 55, 0.1);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* 메이저 아르카나 개별 스타일 - 신비로운 색상 */
.tarot-fool .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #ffd700 20%, #1a1a2e 100%);
  border-color: #ffd700;
}

.tarot-magician .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #dc143c 20%, #1a1a2e 100%);
  border-color: #dc143c;
}

.tarot-high-priestess .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #4169e1 20%, #1a1a2e 100%);
  border-color: #4169e1;
}

.tarot-empress .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #32cd32 20%, #1a1a2e 100%);
  border-color: #32cd32;
}

.tarot-emperor .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #b22222 20%, #1a1a2e 100%);
  border-color: #b22222;
}

.tarot-hierophant .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #9370db 20%, #1a1a2e 100%);
  border-color: #9370db;
}

.tarot-lovers .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #ff69b4 20%, #1a1a2e 100%);
  border-color: #ff69b4;
}

.tarot-chariot .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #00ced1 20%, #1a1a2e 100%);
  border-color: #00ced1;
}

.tarot-strength .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #ff8c00 20%, #1a1a2e 100%);
  border-color: #ff8c00;
}

.tarot-hermit .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #708090 20%, #1a1a2e 100%);
  border-color: #708090;
}

.tarot-wheel-fortune .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #daa520 20%, #1a1a2e 100%);
  border-color: #daa520;
}

.tarot-justice .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #20b2aa 20%, #1a1a2e 100%);
  border-color: #20b2aa;
}

.tarot-hanged-man .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #4682b4 20%, #1a1a2e 100%);
  border-color: #4682b4;
}

.tarot-death .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #2f2f2f 20%, #000000 100%);
  border-color: #2f2f2f;
}

.tarot-temperance .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #6495ed 20%, #1a1a2e 100%);
  border-color: #6495ed;
}

.tarot-devil .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #8b0000 20%, #000000 100%);
  border-color: #8b0000;
}

.tarot-tower .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #696969 20%, #000000 100%);
  border-color: #696969;
}

.tarot-star .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #87ceeb 20%, #1a1a2e 100%);
  border-color: #87ceeb;
}

.tarot-moon .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #9932cc 20%, #1a1a2e 100%);
  border-color: #9932cc;
}

.tarot-sun .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #ffff00 20%, #1a1a2e 100%);
  border-color: #ffff00;
}

.tarot-judgement .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #ff6347 20%, #1a1a2e 100%);
  border-color: #ff6347;
}

.tarot-world .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #00ff7f 20%, #1a1a2e 100%);
  border-color: #00ff7f;
}

/* 마이너 아르카나 슈트별 스타일 */
/* 완드 (불) */
.tarot-card[class*="wands"] .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #dc2626 20%, #1a1a2e 100%);
  border-color: #dc2626;
}

/* 컵 (물) */
.tarot-card[class*="cups"] .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #0891b2 20%, #1a1a2e 100%);
  border-color: #0891b2;
}

/* 소드 (공기) */
.tarot-card[class*="swords"] .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #6b7280 20%, #1a1a2e 100%);
  border-color: #6b7280;
}

/* 펜타클 (흙) */
.tarot-card[class*="pentacles"] .tarot-card-inner {
  background: linear-gradient(135deg, #1a1a2e 0%, #059669 20%, #1a1a2e 100%);
  border-color: #059669;
}

/* 카드 배치 스타일 */
.tarot-spread-single {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.tarot-spread-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.tarot-spread-relationship {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
}

.tarot-spread-celtic {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  align-items: center;
  justify-items: center;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .tarot-card {
    width: 100px;
    height: 160px;
  }
  
  .tarot-symbol.major {
    font-size: 2rem;
  }
  
  .tarot-symbol.minor {
    font-size: 1.25rem;
  }
  
  .suit-symbol {
    font-size: 1.5rem;
  }
  
  .card-rank {
    font-size: 1rem;
  }
  
  .tarot-spread-three {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .tarot-card {
    width: 80px;
    height: 120px;
  }
  
  .tarot-symbol.major {
    font-size: 1.5rem;
  }
  
  .tarot-symbol.minor {
    font-size: 1rem;
  }
  
  .suit-symbol {
    font-size: 1.25rem;
  }
  
  .card-rank {
    font-size: 0.875rem;
  }
}

/* 애니메이션 효과 */
@keyframes card-reveal {
  0% {
    transform: rotateY(180deg) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: rotateY(90deg) scale(0.9);
    opacity: 0.5;
  }
  100% {
    transform: rotateY(0deg) scale(1);
    opacity: 1;
  }
}

.tarot-card-reveal {
  animation: card-reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* 카드 위치별 지연 애니메이션 */
.tarot-card:nth-child(1) { animation-delay: 0.1s; }
.tarot-card:nth-child(2) { animation-delay: 0.3s; }
.tarot-card:nth-child(3) { animation-delay: 0.5s; }
.tarot-card:nth-child(4) { animation-delay: 0.7s; }
.tarot-card:nth-child(5) { animation-delay: 0.9s; }

/* ========================
   5장 카드 레이아웃 개선
   ======================== */

/* 5장 카드 레이아웃 컨테이너 */
.five-card-layout {
  position: relative;
  width: 100%;
  height: 600px;
  min-height: 600px;
}

/* 5장 카드 레이아웃에서 라벨 스타일 개선 */
.five-card-layout .card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #be185d; /* pink-700 */
  margin-bottom: 0.75rem;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5장 카드 위치별 세부 조정 */
.five-card-layout .card-position-left {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.five-card-layout .card-position-right {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.five-card-layout .card-position-top {
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
}

.five-card-layout .card-position-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.five-card-layout .card-position-bottom {
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
}

/* 5장 카드 레이아웃에서 카드 간격 조정 */
.five-card-layout .tarot-card {
  margin: 0; /* 기본 마진 제거 */
}

/* 5장 카드 레이아웃 반응형 개선 */
@media (max-width: 768px) {
  .five-card-layout {
    height: 550px;
    min-height: 550px;
    padding: 1.5rem;
  }
  
  .tarot-card {
    width: 110px;  /* 90px → 110px로 증가 */
    height: 170px; /* 140px → 170px로 증가 */
  }
  
  .five-card-layout .card-label {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    max-width: 120px;  /* 100px → 120px로 증가 */
    margin-bottom: 0.5rem;
  }
  
  .five-card-layout .card-position-left {
    left: 15px;  /* 10px → 15px */
  }
  
  .five-card-layout .card-position-right {
    right: 15px;  /* 10px → 15px */
  }
  
  .five-card-layout .card-position-top {
    top: 15px;  /* 10px → 15px */
  }
  
  .five-card-layout .card-position-bottom {
    bottom: 15px;  /* 10px → 15px */
  }
  
  /* 모바일에서 카드 내부 요소 크기 조정 */
  .tarot-card-title {
    font-size: 10px;
  }
  
  .tarot-card-number {
    font-size: 8px;
    padding: 2px 6px;
  }
  
  .tarot-symbol.major {
    font-size: 2.5rem;
  }
  
  .tarot-symbol.minor {
    font-size: 2rem;
  }
  
  .suit-symbol {
    font-size: 2rem;
    margin-bottom: 6px;
  }
  
  .card-rank {
    font-size: 1.2rem;
  }
}

/* 아주 작은 화면 대응 */
@media (max-width: 480px) {
  .five-card-layout {
    height: 500px;
    min-height: 500px;
    padding: 1rem;
  }
  
  .tarot-card {
    width: 90px;
    height: 140px;
  }
  
  .five-card-layout .card-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    max-width: 100px;
  }
}

/* 카드 겹침 방지를 위한 z-index 계층 */
.five-card-layout .card-position-center {
  z-index: 15; /* 중앙 카드가 가장 높은 우선순위 */
}

.five-card-layout .card-position-left,
.five-card-layout .card-position-right,
.five-card-layout .card-position-top,
.five-card-layout .card-position-bottom {
  z-index: 12;
}

/* 카드 호버시 z-index 최대화 */
.five-card-layout .tarot-card:hover {
  z-index: 25 !important;
}

/* ========================
   전통 한국 도장 스타일 (사주프라임 로고)
   ======================== */

/* 도장 스탬프 - 전통 한국 도장 스타일 */
.seal-stamp {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: #c74440;
  border: 3px solid #8b1a1a;
  border-radius: 4px;
  position: relative;
  transform: rotate(3deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.seal-stamp::after {
  content: '印';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 32px;
  font-weight: 900;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
