/* ===================================
   웨딩 테마 통합 CSS
   wedding-consolidated.css
   
   모든 웨딩 관련 스타일을 통합한 단일 파일
   기존 디자인 완전 보존
   =================================== */

/* ===================================
   1. CSS 변수 정의 (variables.css)
   =================================== */
:root {
    /* 웨딩 테마 색상 */
    --rose-gold: #e8b4b8;
    --rose-gold-dark: #d4a0a4;
    --rose-gold-light: #f5d5d7;
    --cream: #faf7f5;
    --ivory: #fffff0;
    --champagne: #f7e7ce;
    --dusty-rose: #dcae96;
    --sage-green: #9caf88;
    --gold: #d4af37;
    
    /* 텍스트 색상 */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --text-dark: #1a1a1a;
    
    /* 배경 색상 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-light: #fafafa;
    
    /* 테두리 색상 */
    --border-light: #e9ecef;
    --border-medium: #dee2e6;
    --border-dark: #adb5bd;
    
    /* 그림자 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);
    
    /* 폰트 */
    --font-primary: 'Pretendard', 'Noto Sans KR', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-cursive: 'Great Vibes', cursive;
    
    /* 간격 */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* 반응형 브레이크포인트 */
    --breakpoint-xs: 576px;
    --breakpoint-sm: 768px;
    --breakpoint-md: 992px;
    --breakpoint-lg: 1200px;
    --breakpoint-xl: 1400px;
}

/* ===================================
   2. 기본 스타일 (style.css)
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--rose-gold);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   3. 사이드바 스타일 (기존 유지)
   =================================== */

/* 좌측 사이드바 */
.sidebar-left,
.sidebar.sidebar-left {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    transition: width 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

/* 사이드바 헤더 */
.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon i {
    font-size: 24px;
    color: white;
}

.logo-text {
    flex: 1;
}

.logo-title {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
}

/* 사이드바 네비게이션 */
.sidebar-nav {
    padding: 1.5rem 0;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.5rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    background: linear-gradient(90deg, rgba(232, 180, 184, 0.1) 0%, transparent 100%);
    color: var(--rose-gold);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(232, 180, 184, 0.15) 0%, transparent 100%);
    color: var(--rose-gold-dark);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: linear-gradient(180deg, var(--rose-gold) 0%, var(--rose-gold-dark) 100%);
    border-radius: 0 2px 2px 0;
}

.nav-link i {
    font-size: 1.125rem;
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.nav-link span {
    flex: 1;
}

.submenu-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-link[aria-expanded="true"] .submenu-arrow {
    transform: rotate(180deg);
}

/* 서브메뉴 */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-secondary);
}

.submenu li {
    border-bottom: 1px solid var(--border-light);
}

.submenu li:last-child {
    border-bottom: none;
}

.submenu a {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.submenu a:hover {
    background: rgba(232, 180, 184, 0.05);
    color: var(--rose-gold);
    padding-left: 3.75rem;
}

/* 사이드바 푸터 */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--rose-gold);
    color: white;
    transform: translateY(-2px);
}

.contact-info {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.contact-info p {
    margin: 0.5rem 0;
}

.contact-info i {
    color: var(--rose-gold);
    margin-right: 0.5rem;
}

/* 우측 사이드바 */
.sidebar-right,
#sidebarRight {
    position: fixed;
    right: 0;
    top: 0;
    width: 350px;
    height: 100vh;
    background: var(--bg-light);
    z-index: 999;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.05);
}

.sidebar-content {
    padding: 0;
}

/* 사이드바 토글 버튼 */
.sidebar-toggle-btn {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--rose-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.sidebar-toggle-btn:hover {
    background: var(--rose-gold);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* 접힌 상태 */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-menu span,
.sidebar.collapsed .submenu,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

/* PC에서 collapsed 상태일 때 로고 컨테이너 정렬 */
@media (min-width: 992px) {
    .sidebar.collapsed .sidebar-header {
        padding: 1.5rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    
    .sidebar.collapsed .logo-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .sidebar.collapsed .logo-icon {
        margin: 0;
    }
    
    /* 토글 버튼 위치 조정 - 사이드바 내 오른쪽 끝 */
    .sidebar.collapsed .sidebar-toggle-btn {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        margin-right: 15px;
    }
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 1rem;
}

.sidebar.collapsed .nav-link i {
    margin: 0;
}

/* 메인 컨텐츠 영역 */
.main-content {
    margin-left: 280px;
    margin-right: 350px;
    padding: 2rem;
    min-height: 100vh;
    transition: margin 0.3s ease;
}

/* PC에서만 collapsed 사이드바 margin 적용 */
@media (min-width: 992px) {
    .sidebar.collapsed ~ .main-content {
        margin-left: 80px;
    }
}

/* 모바일에서는 사이드바 관련 margin 제거 */
@media (max-width: 991px) {
    .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ===================================
   4. 로딩 스크린
   =================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f7 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.heart-pulse {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.heart-shape {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.05); }
    20% { transform: scale(0.95); }
}

.loading-text {
    font-family: var(--font-secondary);
    font-size: 1.125rem;
    color: var(--rose-gold);
    font-style: italic;
}

/* ===================================
   5. 플로팅 액션 버튼
   =================================== */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: calc(350px + 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
    transition: right 0.3s ease;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rose-gold) 0%, var(--rose-gold-dark) 100%);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(232, 180, 184, 0.4);
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(232, 180, 184, 0.5);
}

.fab i {
    font-size: 1.5rem;
}

.fab-top {
    background: white;
    border: 2px solid var(--rose-gold);
    color: var(--rose-gold);
}

.fab-top:hover {
    background: var(--rose-gold);
    color: white;
}

/* ===================================
   6. 푸터
   =================================== */
.main-footer {
    background: linear-gradient(180deg, #ffffff 0%, #faf7f5 100%);
    margin-top: 4rem;
}

.footer-top {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-light);
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--rose-gold);
}

.footer-logo h3 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.footer-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--rose-gold);
    border-color: var(--rose-gold);
    color: white;
    transform: translateY(-3px);
}

.footer-widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--rose-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--rose-gold);
    padding-left: 0.5rem;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.footer-contact i {
    color: var(--rose-gold);
    margin-right: 0.75rem;
    width: 20px;
}

.newsletter-form {
    margin-bottom: 1rem;
}

.newsletter-form .input-group {
    display: flex;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 0.75rem 1.25rem;
    flex: 1;
}

.newsletter-form .form-control:focus {
    outline: none;
    box-shadow: none;
}

.newsletter-form .btn {
    border: none;
    background: var(--rose-gold);
    color: white;
    padding: 0.75rem 1.5rem;
    transition: background 0.3s ease;
}

.newsletter-form .btn:hover {
    background: var(--rose-gold-dark);
}

.newsletter-info {
    font-size: 0.875rem;
    color: var(--text-light);
}

.newsletter-info i {
    color: var(--sage-green);
    margin-right: 0.5rem;
}

.footer-bottom {
    background: white;
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.copyright p {
    margin: 0.25rem 0;
}

.company-info {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.company-info a {
    color: var(--rose-gold);
    text-decoration: underline;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 1.5rem;
    margin: 0;
}

.footer-bottom .footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-bottom .footer-links a:hover {
    color: var(--rose-gold);
}

/* ===================================
   7. 반응형 디자인
   =================================== */

/* PC 유지 (992px 이상) */
@media (min-width: 992px) {
    /* 기존 PC 레이아웃 유지 */
    .mobile-header,
    .mobile-nav-drawer,
    .mobile-bottom-nav,
    .mobile-fab,
    .mobile-nav-overlay,
    .mobile-quick-modal,
    .mobile-menu-toggle {
        display: none !important;
    }
}

/* 태블릿 (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .sidebar-left {
        transform: translateX(-100%);
    }
    
    .sidebar-left.show {
        transform: translateX(0);
    }
    
    .sidebar-right {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
    }
    
    .floating-actions {
        right: 2rem;
    }
}

/* 모바일 (767px 이하) */
@media (max-width: 767px) {
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
    
    .main-content {
        margin: 0;
        padding: 1rem;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .floating-actions {
        display: none;
    }
    
    /* 푸터 모바일 조정 */
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom .footer-links {
        justify-content: center;
    }
}

/* ===================================
   8. 유틸리티 클래스
   =================================== */
.text-rose-gold {
    color: var(--rose-gold) !important;
}

.bg-rose-gold {
    background-color: var(--rose-gold) !important;
}

.border-rose-gold {
    border-color: var(--rose-gold) !important;
}

.shadow-wedding {
    box-shadow: 0 4px 15px rgba(232, 180, 184, 0.3) !important;
}

/* 스크롤바 스타일링 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--rose-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rose-gold-dark);
}

/* 선택 영역 스타일 */
::selection {
    background: rgba(232, 180, 184, 0.2);
    color: var(--text-dark);
}

::-moz-selection {
    background: rgba(232, 180, 184, 0.2);
    color: var(--text-dark);
}