/* ==================== LUXURY DARK DESIGN SYSTEM ==================== */
/* Pretendard Font (Samsung Sans 유사 무료 대안) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* CSS Variables - Luxury Black Theme */
:root {
  /* Background */
  --bg-main: #0B0B0D;
  --bg-card: #141416;
  --bg-elevated: #1C1C1F;
  
  /* Borders */
  --border-main: #2A2A2E;
  --border-subtle: rgba(255, 255, 255, 0.06);
  
  /* Text */
  --text-main: #FFFFFF;
  --text-sub: #A1A1AA;
  --text-muted: #71717A;
  
  /* Primary Colors - Purple Gradient */
  --primary: #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark: #5B21B6;
  
  /* Accent - Gold for luxury touch */
  --accent-gold: #D4AF37;
  --accent-gold-light: #FFD700;
  
  /* Shadows */
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* ==================== GLOBAL STYLES ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

/* Brand Title Style */
.brand-title {
  font-family: 'Pretendard', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, var(--primary-light), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== GLASSMORPHISM CARDS ==================== */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Card Variants */
.card-elevated {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 20px;
  box-shadow: var(--shadow-elevated);
}

/* ==================== GRADIENT BUTTONS ==================== */
.btn-primary {
  background: linear-gradient(135deg, #7C3AED 0%, #1A2AFF 100%);
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #A78BFA 0%, #3B82F6 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 500;
  padding: 0.875rem 1.75rem;
  border: 1px solid var(--border-main);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Gold Accent Button */
.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  color: #000;
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.6);
}

/* ==================== LUXURY CARDS ==================== */
.luxury-card {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(26, 42, 255, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.luxury-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.luxury-card:hover::before {
  opacity: 1;
}

/* ==================== SELECTION CHIPS ==================== */
.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 12px;
  color: var(--text-sub);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.selection-chip:hover {
  background: var(--bg-elevated);
  border-color: var(--primary);
  color: var(--text-main);
  transform: translateY(-2px);
}

.selection-chip.active {
  background: linear-gradient(135deg, #7C3AED 0%, #1A2AFF 100%);
  border-color: transparent;
  color: var(--text-main);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
}

.selection-chip.active:hover {
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.6);
}

/* ==================== SCENE/MODEL CARDS ==================== */
.image-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-card:hover img {
  transform: scale(1.1);
}

.image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.image-card:hover::after {
  opacity: 0.3;
}

.image-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.2);
}

.image-card.selected::after {
  opacity: 0.2;
}

/* Card Label */
.image-card-label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  font-family: 'Pretendard', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-main);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ==================== UPLOAD AREA ==================== */
.upload-area {
  position: relative;
  border: 2px dashed var(--border-main);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.05);
}

.upload-area.drag-over {
  border-color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  transform: scale(1.02);
}

/* ==================== PROGRESS BARS ==================== */
.progress-bar {
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C3AED 0%, #1A2AFF 100%);
  border-radius: 8px;
  transition: width 0.4s ease;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

/* Animated shimmer effect */
.progress-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ==================== FLOATING WIDGETS ==================== */
.floating-widget {
  position: fixed;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED 0%, #1A2AFF 100%);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.6);
}

.floating-button:active {
  transform: scale(0.95);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out;
}

.animate-slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

/* ==================== SCROLLBAR STYLING ==================== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--border-main);
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ==================== RESPONSIVE UTILITIES ==================== */
@media (max-width: 768px) {
  .brand-title {
    font-size: 1.75rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .luxury-card {
    padding: 1.5rem;
  }
  
  .btn-primary,
  .btn-gold {
    padding: 0.875rem 1.5rem;
  }
}

/* ==================== GLOW EFFECTS ==================== */
.glow-primary {
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.5);
}

.glow-gold {
  box-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

/* ==================== TEXT UTILITIES ==================== */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
