/**
 * 문고리닷컴 - 고급스러운 모던 디자인 스타일
 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;700;900&family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root {
    /* 고급스러운 색상 팔레트 */
    --color-primary: #92400e; /* 깊은 앰버 */
    --color-primary-light: #d97706;
    --color-primary-dark: #78350f;
    --color-secondary: #1e293b; /* 슬레이트 */
    --color-accent: #ca8a04; /* 골드 */

    /* 중성 색상 */
    --color-neutral-50: #fafaf9;
    --color-neutral-100: #f5f5f4;
    --color-neutral-200: #e7e5e4;
    --color-neutral-700: #44403c;
    --color-neutral-800: #292524;
    --color-neutral-900: #1c1917;

    /* 그림자 */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* 글꼴 */
    --font-sans: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Noto Serif KR', Georgia, serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--color-neutral-50);
    color: var(--color-neutral-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.serif {
    font-family: var(--font-serif);
}

/* 고급스러운 그라데이션 */
.gradient-luxury {
    background: linear-gradient(135deg, #92400e 0%, #d97706 50%, #ca8a04 100%);
}

.gradient-dark {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-neutral-200);
    color: var(--color-neutral-800);
}

.btn-secondary:hover {
    background: var(--color-neutral-300);
}

/* 카드 스타일 */
.card {
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-luxury {
    background: linear-gradient(to bottom, white 0%, #fffbeb 100%);
    border: 1px solid var(--color-neutral-200);
}

/* 입력 필드 */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-neutral-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(146, 64, 14, 0.1);
}

/* 뱃지 */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background: var(--color-primary-light);
    color: white;
}

.badge-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

/* 텍스트 스타일 */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-sm {
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}

/* 유리형태 (Glassmorphism) */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

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

/* 고급스러운 링크 */
.link-luxury {
    color: var(--color-primary);
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.link-luxury::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.link-luxury:hover::after {
    width: 100%;
}

/* 스크롤바 커스터마이징 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 5px;
}

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

/* 선택 영역 */
::selection {
    background: var(--color-accent);
    color: white;
}

/* 반응형 타이포그래피 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-neutral-900);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

/* 유틸리티 클래스 */
.container-luxury {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.divider-luxury {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 2rem 0;
}

/* 로딩 스피너 */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-neutral-200);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 툴팁 */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    background: var(--color-neutral-900);
    color: white;
    border-radius: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}
