/* v4.0.0: Titanium Dual - Clean & Separated */

/* --- 변수 정의 --- */
:root {
    /* 배경: 더 깊고 어두운 리얼 블랙 */
    --bg-color: #050505;
    
    /* 카드: 배경과 확실히 구분되는 티타늄 그레이 + 테두리 */
    --card-bg: #161618;
    --card-border: 1px solid #333333;
    
    /* 텍스트 */
    --text-main: #FFFFFF;
    --text-sub: #A0A0A0;
    --text-muted: #666666;
    
    /* 포인트: 세련된 실버 */
    --accent-color: #E0E0E0;
    --accent-text: #000000;
    
    --font-base: "Pretendard", -apple-system, sans-serif;
}

/* --- 기본 레이아웃 --- */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-base);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 420px; /* 카드 폭 제한 */
    padding: 40px 20px;
    box-sizing: border-box;
}

.hidden { display: none !important; }

/* 로더 */
.loader-container { text-align: center; color: var(--text-sub); }
.spinner {
    border: 2px solid #333; border-top: 2px solid var(--accent-color);
    border-radius: 50%; width: 24px; height: 24px;
    animation: spin 0.8s linear infinite; margin: 0 auto 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }


/* --- 카드 공통 스타일 --- */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px; /* 카드 사이 간격 */
}

.photo-card {
    background-color: var(--card-bg);
    border: var(--card-border); /* 명확한 경계선 */
    border-radius: 12px;        /* 적당히 둥글게 */
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* 깊이감 있는 그림자 */
}


/* --- [CARD 1] 인사말 섹션 (중앙 정렬) --- */
.card-greeting {
    text-align: center;
}

.card-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.lang-switch button {
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 0.75rem; font-weight: 600; padding: 5px;
}
.lang-switch button.active { color: var(--text-main); }
.separator { display: none; }

.vintage-camera-icon svg {
    width: 48px; height: 48px;
    color: var(--text-main);
    margin-bottom: 20px;
    stroke-width: 1;
}

/* 텍스트 스타일 */
.text-lv1 {
    font-size: 1.5rem; font-weight: 700;
    margin: 0 0 16px 0; color: var(--text-main);
    line-height: 1.3;
}
.text-lv2 {
    font-size: 0.95rem; color: var(--text-sub);
    line-height: 1.6; margin-bottom: 30px;
    font-weight: 300;
    word-break: keep-all;
}

/* 버튼 스타일 */
.antique-btn {
    display: flex; justify-content: center; align-items: center;
    width: 100%;
    background-color: var(--accent-color);
    color: var(--accent-text);
    text-decoration: none;
    padding: 16px 0;
    border-radius: 8px;
    font-weight: 700; font-size: 1rem;
    transition: background-color 0.2s;
}
.antique-btn:hover { background-color: #FFFFFF; }


/* --- [CARD 2] 문의 섹션 (좌측 정렬) --- */
.card-contact {
    text-align: left; /* 좌측 정렬 핵심 */
    padding: 25px 30px;
}

.contact-label {
    font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 1px; margin: 0 0 15px 0;
    font-weight: 600;
}

.contact-details {
    display: flex; flex-direction: column; gap: 10px;
}

.contact-item {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.9rem; color: var(--text-sub);
}

.contact-item .icon { font-size: 1.1rem; }
.contact-item .link-text {
    color: var(--text-sub); text-decoration: none;
    transition: color 0.2s;
}
.contact-item .link-text:hover {
    color: var(--text-main); text-decoration: underline;
}

.divider {
    height: 1px; background-color: #333;
    margin: 20px 0;
}

.text-lv3 {
    font-size: 0.8rem; color: var(--text-muted);
    margin: 0; line-height: 1.5;
}

/* ... 기존 변수 및 body 스타일 유지 ... */

/* --- [신규] 배경 슬라이더 스타일 --- */
#bg-slider-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* 콘텐츠보다 뒤에 배치 */
    overflow: hidden;
    background-color: var(--bg-color); /* 이미지 로드 전 배경색 */
}

#bg-track {
    display: flex;
    height: 100vh; /* 창 전체 높이 고정 */
    width: 100%;
    will-change: transform;
}

.bg-item {
    flex-shrink: 0;
    width: 100vw; /* 윈도우 폭에 맞춤 */
    height: 100vh; /* 윈도우 높이에 맞춤 */
    
    /* [핵심 수정] 
       1. contain: 사진이 창보다 커도 잘리지 않고 전체가 다 보이도록 조정
       2. no-repeat: 사진이 반복되지 않게 설정
       3. center: 창의 정중앙에 배치
    */
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
    
    /* 사진 외곽의 블러가 깨끗하게 처리되도록 배경색 지정 */
    background-color: var(--bg-color); 
    
    /* 가독성을 위한 필터 (블러와 밝기 조절) */
    filter: blur(4px) brightness(0.4);
    
    /* contain 모드에서는 인위적인 확대를 하면 잘리므로 scale을 1로 유지 */
    transform: scale(1); 
    transition: filter 0.5s ease;
}

/* --- [비네팅 강화] 상하단을 더 묵직하게 눌러 배경과 합치기 --- */
.bg-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    
    /* 상단과 하단에서 각각 40% 지점까지 아주 어둡게 처리하여
       사진의 경계선(Letterbox)이 보이지 않도록 함 
    */
    background: linear-gradient(
        to bottom,
        var(--bg-color) 0%,
        rgba(0, 0, 0, 0.9) 15%,
        rgba(0, 0, 0, 0.6) 30%,
        transparent 45%,
        transparent 55%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.9) 85%,
        var(--bg-color) 100%
    );
}

/* 모바일 대응 */
@media (max-width: 480px) {
    .container { padding: 20px 16px; }
    .photo-card { padding: 25px 20px; }
    .text-lv1 { font-size: 1.35rem; }
}