/* 로얄에어멤버스 커스텀 스타일 */

/* 색상 변수 정의 */
:root {
    --navy-900: #1e293b;
    --navy-800: #334155;
    --navy-700: #475569;
    --gold-600: #d97706;
    --gold-500: #f59e0b;
    --gold-400: #fbbf24;
    --gold-100: #fef3c7;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
}

/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
    scroll-behavior: smooth;
}

/* 유틸리티 클래스 확장 */
.text-navy-900 { color: var(--navy-900) !important; }
.text-navy-800 { color: var(--navy-800) !important; }
.text-navy-700 { color: var(--navy-700) !important; }
.text-gold-600 { color: var(--gold-600) !important; }
.text-gold-500 { color: var(--gold-500) !important; }
.text-gold-400 { color: var(--gold-400) !important; }

.bg-navy-900 { background-color: var(--navy-900) !important; }
.bg-navy-800 { background-color: var(--navy-800) !important; }
.bg-gold-600 { background-color: var(--gold-600) !important; }
.bg-gold-500 { background-color: var(--gold-500) !important; }
.bg-gold-400 { background-color: var(--gold-400) !important; }
.bg-gold-100 { background-color: var(--gold-100) !important; }

.border-gold-600 { border-color: var(--gold-600) !important; }
.border-gold-400 { border-color: var(--gold-400) !important; }

.ring-gold-400 { --tw-ring-color: var(--gold-400) !important; }

.hover\:bg-gold-700:hover { background-color: #b45309 !important; }
.hover\:text-gold-600:hover { color: var(--gold-600) !important; }

/* 히어로 섹션 배경 */
.hero-bg {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.9) 0%, 
        rgba(51, 65, 85, 0.8) 50%, 
        rgba(75, 85, 99, 0.7) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="plane-pattern" patternUnits="userSpaceOnUse" width="400" height="300"><g fill="rgba(217,119,6,0.1)"><path d="M50 150l40-10v-20l-40-10v-40h-20v40l-40 10v20l40 10v40h20v-40z"/><path d="M350 100l40-10v-20l-40-10v-40h-20v40l-40 10v20l40 10v40h20v-40z"/></g></pattern></defs><rect width="1200" height="800" fill="url(%23plane-pattern)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* 네비게이션 스타일 개선 */
nav {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 버튼 스타일 개선 */
.btn-primary {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
    background: linear-gradient(135deg, #b45309, var(--gold-600));
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--navy-900);
    transform: translateY(-2px);
}

/* 카드 스타일 개선 */
.card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 멤버십 카드 특별 스타일 */
.membership-card {
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s ease;
    border: 1px solid rgba(217, 119, 6, 0.1);
}

.membership-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(217, 119, 6, 0.2);
}

.membership-card.featured {
    background: linear-gradient(135deg, #fef3c7 0%, var(--white) 100%);
    border: 2px solid var(--gold-400);
    transform: scale(1.05);
}

.membership-card.featured:hover {
    transform: translateY(-12px) scale(1.07);
}

/* 프리미엄 아이콘 스타일 */
.premium-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 25px rgba(217, 119, 6, 0.3);
    transition: all 0.3s ease;
}

.premium-icon:hover {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 12px 35px rgba(217, 119, 6, 0.4);
}

/* 텍스트 그라데이션 */
.text-gradient {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-400));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* 섹션 구분선 */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-600), transparent);
    margin: 40px auto;
    width: 100px;
    border-radius: 2px;
}

/* 스크롤 애니메이션 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 럭셔리 그라데이션 배경 */
.luxury-bg {
    background: linear-gradient(135deg, 
        #1e293b 0%, 
        #334155 25%, 
        #475569 50%, 
        #334155 75%, 
        #1e293b 100%);
    position: relative;
}

.luxury-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(217, 119, 6, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* 폼 스타일 개선 */
.form-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    color: var(--white);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    border-color: var(--gold-600);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 통계 숫자 애니메이션 */
.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-600);
    display: block;
    margin-bottom: 8px;
}

/* 플로팅 요소 애니메이션 */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* 프리미엄 보더 효과 */
.premium-border {
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                linear-gradient(135deg, var(--gold-400), var(--gold-600)) border-box;
}

/* 글로우 효과 */
.glow {
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
    transition: box-shadow 0.3s ease;
}

.glow:hover {
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.5);
}

/* 호버 오버레이 */
.hover-overlay {
    position: relative;
    overflow: hidden;
}

.hover-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.2), transparent);
    transition: left 0.6s ease;
}

.hover-overlay:hover::before {
    left: 100%;
}

/* 패럴랙스 효과 */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* 커스텀 스크롤바 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gold-600), #b45309);
}

/* 선택 텍스트 스타일 */
::selection {
    background: rgba(217, 119, 6, 0.2);
    color: var(--navy-900);
}

::-moz-selection {
    background: rgba(217, 119, 6, 0.2);
    color: var(--navy-900);
}

/* 로딩 애니메이션 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: 50%;
    border-top-color: var(--gold-600);
    animation: spin 1s ease-in-out infinite;
}

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

/* 반응형 텍스트 크기 */
@media (max-width: 768px) {
    .text-5xl { font-size: 2.5rem; }
    .text-4xl { font-size: 2rem; }
    .text-3xl { font-size: 1.5rem; }
    .text-2xl { font-size: 1.25rem; }
    .text-xl { font-size: 1.125rem; }
}

/* 프린트 스타일 */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* 접근성 개선 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 포커스 표시 개선 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--gold-600);
    outline-offset: 2px;
}

/* 다크모드 대응 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: var(--gray-900);
        --text-primary: var(--gray-100);
    }
}

/* 애니메이션 최적화 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}