/* 데브레플리카 메인 스타일시트 - 럭셔리 테마 */

/* 폰트 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS 변수 - 럭셔리 테마 */
:root {
    --background: #0f0c29;
    --foreground: hsl(0, 0%, 98%);
    --card: rgba(25, 25, 35, 0.8);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(45, 100%, 60%); /* 골드 색상 */
    --primary-foreground: hsl(0, 0%, 10%);
    --secondary: hsl(220, 13%, 95%);
    --secondary-foreground: hsl(0, 0%, 10%);
    --muted: rgba(30, 30, 45, 0.7);
    --muted-foreground: hsl(0, 0%, 70%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(0, 0%, 98%);
    --border: rgba(255, 215, 0, 0.2); /* 골드 테두리 */
    --input: rgba(30, 30, 40, 0.5);
    --ring: hsl(45, 100%, 60%);
    --radius: 0.5rem;
}

/* 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* 럭셔리 배경 이미지 오버레이 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1553356084-58ef4a67b2a7?w=1600&auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
}

/* 럭셔리 패턴 오버레이 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://www.transparenttextures.com/patterns/diamond-upholstery.png');
    opacity: 0.03;
    z-index: -1;
}

/* 컨테이너 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 헤더 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(15, 12, 41, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.logo svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--muted);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.1);
}

.theme-toggle:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* 히어로 섹션 */
.hero {
    padding-top: 8rem;
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.15), transparent 70%), 
                radial-gradient(circle at bottom left, rgba(48, 43, 99, 0.2), transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* 버튼 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::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: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #b8860b, #ffd700);
    color: var(--primary-foreground);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ffd700, #b8860b);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(45deg, #302b63, #24243e);
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #24243e, #302b63);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* 플로팅 버튼 */
.floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.floating-btn:hover {
    box-shadow: 0 15px 30px rgba(184, 134, 11, 0.4);
}

/* 섹션 */
section {
    padding: 5rem 0;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(to right, #ffffff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 카드 */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-5px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: linear-gradient(45deg, #302b63, rgba(255, 215, 0, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.3));
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary);
}

.card p {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* 그리드 */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 통계 */
.stats {
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.8) 0%, rgba(30, 30, 45, 0.8) 100%);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    letter-spacing: 1px;
}

/* 경고 박스 */
.warning-box {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.7) 0%, rgba(40, 40, 55, 0.7) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.warning-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(45deg, #b8860b, #ffd700);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
    color: var(--primary-foreground);
}

/* 가격 카드 */
.pricing-card {
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 215, 0, 0.3);
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(45deg, #b8860b, #ffd700);
    color: var(--primary-foreground);
    padding: 0.25rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    border-bottom-left-radius: var(--radius);
    border-top-right-radius: calc(var(--radius) * 2);
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.3);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-family: 'Playfair Display', serif;
}

.features {
    list-style: none;
    margin-bottom: 2rem;
}

.features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

/* 폼 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.form-label .required {
    color: var(--destructive);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--foreground);
    font-family: 'Noto Sans KR', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin-top: 0.25rem;
}

/* 아코디언 */
.accordion {
    max-width: 56rem;
    margin: 0 auto;
}

.accordion-item {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.7) 0%, rgba(40, 40, 55, 0.7) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    background: none;
    border: none;
    color: var(--foreground);
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.3s;
}

.accordion-trigger:hover {
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--muted-foreground);
    padding-bottom: 0;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1rem;
}

.accordion-icon {
    transition: transform 0.3s;
    color: var(--primary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* 푸터 */
footer {
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(15, 12, 41, 0.8) 0%, rgba(30, 30, 45, 0.8) 100%);
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.05), transparent 70%);
    pointer-events: none;
}

footer .logo {
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

footer p {
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

/* 플래시 메시지 */
.flash {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash.success {
    background: linear-gradient(135deg, rgba(30, 40, 35, 0.8) 0%, rgba(35, 45, 40, 0.8) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgb(34, 197, 94);
}

.flash.error {
    background: linear-gradient(135deg, rgba(40, 35, 35, 0.8) 0%, rgba(45, 40, 40, 0.8) 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgb(239, 68, 68);
}

/* 반응형 */
@media (max-width: 768px) {
    nav {
        display: none;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }
}

/* 유틸리티 클래스 */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

/* 고급스러운 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 12, 41, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #b8860b, #ffd700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffd700, #b8860b);
}