/* 프리미엄 컬러 팔레트 - 세련된 오렌지 톤 */
:root {
    /* Primary Colors (Orange) */
    --primary-50: #fff7ed;
    --primary-100: #ffedd5;
    --primary-200: #fed7aa;
    --primary-300: #fdba74;
    --primary-400: #fb923c;
    --primary-500: #f97316;
    --primary-600: #ea580c;
    --primary-700: #c2410c;
    --primary-800: #9a3412;
    --primary-900: #7c2d12;

    /* Legacy naming for compatibility */
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;

    /* Neutral Colors (Premium Gray) */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;

    /* Legacy naming for compatibility */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Semantic Colors */
    --secondary-color: #ef4444;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #dc2626;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;

    /* Text Colors */
    --text-primary: #171717;
    --text-secondary: #525252;
    --text-tertiary: #737373;

    /* Spacing System */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;
    --space-5xl: 128px;
}

/* 타이포그래피 시스템 */
body {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--neutral-900);
    letter-spacing: -0.01em;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
}

h3 {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
}

h5 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.display-4 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.lead {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* bg-primary 영역 내 .lead는 색상 상속 (text-white 적용) */
.bg-primary .lead {
    color: inherit;
}

.text-sm {
    font-size: 14px;
    line-height: 1.6;
}

.text-xs {
    font-size: 12px;
    line-height: 1.5;
}

/* 그라데이션 배경 - 미묘하고 세련되게 */
.bg-primary {
    background: var(--primary-500) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-500) 100%) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--info-color) 100%) !important;
}

/* 미묘한 그라데이션 배경 (Hero 섹션용) */
.bg-gradient-subtle {
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
        var(--bg-secondary);
}

/* 내비게이션 */
.navbar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    color: var(--gray-700) !important;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* 카드 디자인 시스템 */

/* 기본 카드 */
.card {
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-200);
    box-shadow:
        0 0 0 1px var(--primary-100),
        0 20px 40px -12px rgba(249, 115, 22, 0.08),
        0 8px 16px -8px rgba(0, 0, 0, 0.04);
}

.card-body {
    padding: 2rem;
}

/* 프리미엄 카드 */
.card-premium {
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
    transform: translateY(-4px);
    border-color: var(--primary-500);
    box-shadow:
        0 0 0 1px var(--primary-100),
        0 20px 40px -12px rgba(249, 115, 22, 0.08),
        0 8px 16px -8px rgba(0, 0, 0, 0.04);
}

/* 글래스모피즘 카드 */
.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* Hover Lift 효과 */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.08) !important;
}

/* 버튼 디자인 시스템 */
.btn {
    font-weight: 600;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Primary Button with Shine Effect */
.btn-primary {
    background: var(--primary-500);
    color: white;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--primary-600);
    box-shadow: 0 12px 24px -8px rgba(249, 115, 22, 0.3);
}

/* Light Button */
.btn-light {
    background: white;
    color: var(--primary-500);
    border: 1px solid var(--neutral-200);
}

.btn-light:hover {
    background: var(--primary-50);
    color: var(--primary-600);
    border-color: var(--primary-200);
}

/* Ghost/Outline Button */
.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
}

.btn-outline-primary:hover {
    background: var(--primary-50);
    border-color: var(--primary-600);
    color: var(--primary-600);
}

/* Ghost Button on Dark Background */
.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-500);
}

/* Button Sizes */
.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
    border-radius: 14px;
}

/* Icon Button */
.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
}

.btn-icon:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-500);
}

/* 섹션 스타일 */
section {
    padding: 5rem 0;
}

section.py-5 {
    padding: 5rem 0 !important;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    section.py-5 {
        padding: 3rem 0 !important;
    }
}

/* 그림자 효과 */
.shadow-sm {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06) !important;
}

.shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.shadow-lg {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 10px 20px -5px rgba(0, 0, 0, 0.1) !important;
}

/* 배지 스타일 시스템 */
.badge {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-600);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.badge-primary {
    background: var(--primary-50);
    color: var(--primary-700);
    border: 1px solid var(--primary-100);
}

.badge-outline {
    background: transparent;
    border: 1.5px solid var(--primary-500);
    color: var(--primary-600);
}

/* 아이콘 스타일 */
.bi {
    vertical-align: middle;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* 푸터 */
footer {
    margin-top: auto;
    background: var(--gray-900);
}

footer a {
    color: var(--gray-300);
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-light) !important;
}

/* 로딩 스피너 */
.spinner {
    border: 3px solid var(--gray-200);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 반응형 타이포그래피 */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }
}

/* 유틸리티 클래스 */
.text-primary {
    color: var(--primary-color) !important;
}

.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rounded-lg {
    border-radius: 1rem !important;
}

.rounded-xl {
    border-radius: 1.5rem !important;
}

/* 오버레이 효과 */
.overlay {
    position: relative;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.9) 0%, rgba(251, 146, 60, 0.9) 100%);
    z-index: 1;
}

.overlay > * {
    position: relative;
    z-index: 2;
}

/* 특수 효과 */
.glow-on-hover {
    position: relative;
}

.glow-on-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    filter: blur(20px);
    z-index: -1;
}

.glow-on-hover:hover::before {
    opacity: 0.7;
}

/* 리스트 스타일 */
.list-unstyled li {
    padding: 0.4rem 0;
}

/* 테이블 스타일 */
.table {
    color: var(--gray-700);
}

.table th {
    font-weight: 700;
    color: var(--gray-900);
    border-bottom: 2px solid var(--gray-200);
}

/* 알림/Alert 박스 개선 */
.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 1rem 1.25rem;
}

.alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

/* 아코디언 스타일 */
.accordion-button {
    font-weight: 600;
    color: var(--gray-900);
    background-color: white;
    border-radius: 0.75rem !important;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.25);
}

.accordion-item {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem !important;
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* ==================== 프리미엄 디자인 추가 스타일 ==================== */

/* Hero 섹션 전용 스타일 */
.hero-premium {
    min-height: 90vh;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
        radial-gradient(circle at bottom left, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
        var(--bg-secondary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.3;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--neutral-200) 1px, transparent 1px),
        linear-gradient(90deg, var(--neutral-200) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--neutral-900);
    margin: 24px 0;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .hero-premium {
        min-height: auto;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
}

/* 추가 애니메이션 */
@keyframes floating {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: floating 6s ease-in-out infinite;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.text-shimmer {
    background: linear-gradient(
        90deg,
        var(--neutral-900) 0%,
        var(--primary-500) 50%,
        var(--neutral-900) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Backdrop Blur 효과 */
.backdrop-blur {
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    background: rgba(255, 255, 255, 0.8);
}

/* 컨테이너 개선 */
.container-premium {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1536px) {
    .container-premium {
        max-width: 1440px;
    }
}

/* 유틸리티 클래스 */
.text-balance {
    text-wrap: balance;
}

/* Focus 스타일 개선 (접근성) */
*:focus-visible {
    outline: 3px solid var(--primary-500);
    outline-offset: 2px;
}

/* 네비게이션 개선 */
.navbar-premium {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--neutral-200);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-premium.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.nav-link-premium {
    padding: 8px 16px;
    font-weight: 500;
    color: var(--neutral-700);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link-premium:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

.nav-link-premium.active {
    background: var(--primary-100);
    color: var(--primary-600);
    font-weight: 600;
}

/* Footer 개선 */
.footer-premium {
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-200);
    padding: 64px 0 32px;
}

.footer-link {
    color: var(--neutral-600);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--primary-600);
}

/* Input & Form 개선 */
.input-premium {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-premium:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow:
        0 0 0 4px var(--primary-50),
        0 2px 8px rgba(249, 115, 22, 0.08);
}

.input-premium::placeholder {
    color: var(--neutral-400);
}

/* Tooltip */
.tooltip-premium {
    position: absolute;
    background: var(--neutral-900);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 1000;
}

.tooltip-premium::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: var(--neutral-900);
}

.tooltip-trigger:hover .tooltip-premium {
    opacity: 1;
    transform: translateY(0);
}

/* 아이콘 크기 시스템 */
.icon-xs { font-size: 16px; }
.icon-sm { font-size: 20px; }
.icon-md { font-size: 24px; }
.icon-lg { font-size: 32px; }
.icon-xl { font-size: 48px; }
.icon-2xl { font-size: 64px; }

/* 반응형 Spacing */
.section-spacing {
    padding: var(--space-4xl) 0;
}

@media (max-width: 768px) {
    .section-spacing {
        padding: var(--space-3xl) 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: prefer-reduced-motion) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 추가 유틸리티 클래스 */
.bg-primary-50 { background-color: var(--primary-50) !important; }
.bg-primary-100 { background-color: var(--primary-100) !important; }
.text-neutral-900 { color: var(--neutral-900) !important; }
.text-neutral-800 { color: var(--neutral-800) !important; }
.text-neutral-700 { color: var(--neutral-700) !important; }
.text-neutral-600 { color: var(--neutral-600) !important; }

.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }

/* Pulse Animation for Badge */
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}
