@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-glow: rgba(124, 58, 237, 0.25);
  --bg: #f0eeff;
  --card-bg: rgba(255, 255, 255, 0.85);
  --border: rgba(124, 58, 237, 0.12);
  --text-main: #1e1b4b;
  --text-muted: #6b7280;
  --glass: blur(20px);
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-2xl: 32px;
}

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

button, input, textarea, select {
  color: inherit;
  font-family: inherit;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  background-image:
    radial-gradient(circle at 0% 0%, rgba(167, 139, 250, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(196, 181, 253, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.8) 0%, transparent 60%);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- Utility Classes (Tailwind Mapping) --- */

/* Layout & Grid */

.grid { display: grid; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-8 { grid-column: span 8 / span 8; }
  .lg\:col-span-4 { grid-column: span 4 / span 4; }
}

.flex { display: flex; }

.flex-col { flex-direction: column; }

.items-center { align-items: center; }

.items-start { align-items: flex-start; }

.justify-center { justify-content: center; }

.justify-between { justify-content: space-between; }

.flex-1 { flex: 1 1 0%; }

.gap-1 { gap: 0.25rem; }

.gap-1\.5 { gap: 0.375rem; }

.gap-2 { gap: 0.5rem; }

.gap-3 { gap: 0.75rem; }

.gap-4 { gap: 1rem; }

.gap-6 { gap: 1.5rem; }

.gap-8 { gap: 2rem; }

/* Spacing Expansion */

.p-0\.5 { padding: 0.125rem; }

.p-1\.5 { padding: 0.375rem; }

.p-2 { padding: 0.5rem; }

.p-2\.5 { padding: 0.625rem; }

.p-3 { padding: 0.75rem; }

.p-4 { padding: 1rem; }

.p-5 { padding: 1.25rem; }

.p-6 { padding: 1.5rem; }

.p-8 { padding: 2rem; }

.p-10 { padding: 2.5rem; }

.p-12 { padding: 3rem; }

.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }

.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }

.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }

.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

.pl-10 { padding-left: 2.5rem; }

.pl-12 { padding-left: 3rem; }

.pr-4 { padding-right: 1rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.mb-1 { margin-bottom: 0.25rem; }

.mb-4 { margin-bottom: 1rem; }

.mt-1 { margin-top: 0.25rem; }

.-mt-0\.5 { margin-top: -0.125rem; }

/* Colors & Backgrounds Expansion */

.bg-primary { background-color: var(--primary); color: #fff !important; }

.bg-primary\/5 { background-color: rgba(124, 58, 237, 0.06); }

.bg-primary\/10 { background-color: rgba(124, 58, 237, 0.1); }

.bg-primary\/20 { background-color: rgba(124, 58, 237, 0.18); }

.bg-primary\/\[0\.02\] { background-color: rgba(124, 58, 237, 0.02); }

/* 라이트 테마: 흰색 오버레이 → 어두운 오버레이로 반전 */

.bg-white\/5 { background-color: rgba(124, 58, 237, 0.04); }

.bg-white\/10 { background-color: rgba(124, 58, 237, 0.07); }

.bg-black\/40 { background-color: rgba(0, 0, 0, 0.08); }

.bg-slate-900 { background-color: #f5f3ff; }

/* 하드코딩된 다크 배경 → 라이트로 반전 */

.bg-\[\#030712\]\/30 { background-color: rgba(255, 255, 255, 0.5) !important; }

.bg-\[\#030712\]\/40 { background-color: rgba(255, 255, 255, 0.6) !important; }

.bg-\[\#030712\]\/50 { background-color: rgba(255, 255, 255, 0.7) !important; }

/* 라이트 테마 텍스트 */

.text-white { color: var(--text-main); }

.text-white\/60 { color: rgba(30, 27, 75, 0.55); }

.text-primary { color: var(--primary); }

.text-muted { color: var(--text-muted); }

.text-slate-400 { color: #7c6fa0; }

.text-slate-500 { color: #6b7280; }

.text-red-400 { color: #ef4444; }

.text-red-500 { color: #dc2626; }

.text-blue-400 { color: #3b82f6; }

.text-green-500 { color: #10b981; }

.text-yellow-500 { color: #d97706; }

/* Sizing */

.w-full { width: 100%; }

.w-2 { height: 0.5rem; width: 0.5rem; }

.w-3 { height: 0.75rem; width: 0.75rem; }

.w-4 { height: 1rem; width: 1rem; }

.w-9 { height: 2.25rem; width: 2.25rem; }

.w-10 { height: 2.5rem; width: 2.5rem; }

.w-20 { height: 5rem; width: 5rem; }

.w-64 { width: 16rem; }

.h-1 { height: 0.25rem; }

.h-3 { height: 0.75rem; }

.h-4 { height: 1rem; }

.h-5 { height: 1.25rem; }

.h-9 { height: 2.25rem; }

.h-10 { height: 2.5rem; }

.h-20 { height: 5rem; }

.h-64 { height: 16rem; }

.h-full { height: 100%; }

/* Border Radius */

.rounded-lg { border-radius: 0.5rem; }

.rounded-xl { border-radius: 0.75rem; }

.rounded-2xl { border-radius: 1rem; }

.rounded-full { border-radius: 9999px; }

/* Borders */

.border { border: 1px solid var(--border); }

.border-b { border-bottom: 1px solid var(--border); }

/* 라이트 테마: 흰색 테두리 → 보라 계열 테두리 */

.border-white\/5 { border-color: rgba(124, 58, 237, 0.08); }

.border-white\/10 { border-color: rgba(124, 58, 237, 0.12); }

.border-primary\/10 { border-color: rgba(124, 58, 237, 0.12); }

.border-primary\/20 { border-color: rgba(124, 58, 237, 0.22); }

.border-primary\/30 { border-color: rgba(124, 58, 237, 0.32); }

.border-primary\/50 { border-color: rgba(124, 58, 237, 0.5); }

/* Glassmorphism - 라이트 테마 */

.glass {
  background: var(--card-bg);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
}

.backdrop-blur-3xl {
  backdrop-filter: blur(64px);
  -webkit-backdrop-filter: blur(64px);
}

.glass-hover {
  transition: all 0.3s ease;
}

.glass-hover:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
}

/* Typography & Effects */

.font-black { font-weight: 900; }

.font-bold { font-weight: 700; }

.font-sans { font-family: 'Outfit', sans-serif; }

.uppercase { text-transform: uppercase; }

.tracking-tight { letter-spacing: -0.025em; }

.tracking-widest { letter-spacing: 0.1em; }

.tracking-\[0\.2em\] { letter-spacing: 0.2em; }

.text-xs  { font-size: 0.75rem; }

.text-sm  { font-size: 0.875rem; }

.text-base { font-size: 1rem; }

.text-lg  { font-size: 1.125rem; }

.text-xl  { font-size: 1.25rem; }

.text-2xl { font-size: 1.5rem; }

.text-3xl { font-size: 1.875rem; }

.text-\[10px\] { font-size: 10px; }

.text-\[8px\]  { font-size: 8px; }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }

.text-transparent { color: transparent; }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

/* 라이트 테마: 흰색→보라 그라데이션 대신 진한 남색→보라 */

.from-white { --tw-gradient-from: #1e1b4b; --tw-gradient-to: rgba(30, 27, 75, 0); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }

.to-primary { --tw-gradient-to: var(--primary); }

/* 타이틀 그라데이션 */

.title-gradient {
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Transitions & Animations */

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }

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

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

.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.animate-bounce { animation: bounce 1s infinite; }

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

.opacity-50 { opacity: 0.5; }

.opacity-60 { opacity: 0.6; }

.opacity-80 { opacity: 0.8; }

.opacity-10 { opacity: 0.1; }

.opacity-20 { opacity: 0.2; }

.opacity-30 { opacity: 0.3; }

.opacity-40 { opacity: 0.4; }

.italic { font-style: italic; }

.resize-none { resize: none; }

.outline-none { outline: none; }

.select-none { user-select: none; }

/* Custom Overrides */

.min-h-screen { min-height: 100vh; }

.fixed { position: fixed; }

.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.z-50 { z-index: 50; }

.pointer-events-none { pointer-events: none; }

.overflow-hidden { overflow: hidden; }

.max-w-\[1400px\] { max-width: 1400px; }

/* Scrollbar Customization */

::-webkit-scrollbar { width: 6px; }

::-webkit-scrollbar-track { background: rgba(124, 58, 237, 0.05); }

::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.2); border-radius: 10px; }

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

/* input/textarea 라이트 테마 */

input::placeholder, textarea::placeholder { color: rgba(107, 114, 128, 0.7); }

input:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12); }
