/* ========================================
   전역 스타일
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8ba888;
    --secondary-color: #f0f4f0;
    --accent-color: #a8c5a4;
    --dark-color: #333;
    --light-color: #f7faf7;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 12px;
}

body {
    font-family: 'MaruBuri', 'Nanum Myeongjo', serif;
    color: var(--dark-color);
    background-color: var(--white);
    line-height: 1.8;
    overflow-x: hidden;
}

.container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   메인 헤더
======================================== */
.main-header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
    background: url('../images/main-background.jpg') center center / cover no-repeat;
    background-position: 65% center;
    overflow: hidden;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 1s ease-out;
    background: rgba(255, 255, 255, 0.5);
    padding: 25px 20px;
    border-radius: 0;
    backdrop-filter: blur(3px);
    box-shadow: none;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.header-date {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 15px;
    font-weight: 400;
    text-shadow: none;
    line-height: 1.6;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: nowrap;
    line-height: 1.2;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    letter-spacing: 2px;
}

.groom-name,
.bride-name {
    color: #555;
    line-height: 1.2;
    text-shadow: none;
    font-weight: 400;
    letter-spacing: 2px;
}

.heart {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin: 0 0.5rem;
    text-shadow: none;
    display: inline;
}

.couple-photo {
    margin: 40px 0 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-photo {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.header-subtitle {
    font-size: 0.95rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 0;
    margin-top: 12px;
    text-shadow: none;
}

.scroll-indicator {
    display: none;
}

/* ========================================
   섹션 공통 스타일
======================================== */
.section {
    padding: 80px 0;
    animation: fadeIn 0.8s ease-out;
}

.section:nth-child(even) {
    background-color: var(--light-color);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
}

.title-decoration {
    width: 40px;
    height: 1px;
    background: var(--primary-color);
}

/* ========================================
   초대말 섹션
======================================== */
.invitation-text {
    text-align: center;
    font-size: 1rem;
    line-height: 2;
    color: #555;
}

.invitation-text p {
    margin-bottom: 30px;
}

/* ========================================
   신랑신부 정보
======================================== */
.couple-info {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    padding: 40px 20px;
}

.person {
    text-align: center;
    width: 100%;
    max-width: 500px;
    padding: 50px 40px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.person-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 3px;
    font-weight: 300;
}

.person-name-simple {
    font-size: 1.8rem;
    font-weight: 500;
    margin-top: 20px;
    color: var(--dark-color);
    letter-spacing: 2px;
}

.person-parents-simple {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.8;
    letter-spacing: 1px;
}

.relation-text {
    color: #999;
    font-size: 0.9rem;
}

/* 축하 연락하기 버튼 */
.contact-button-wrapper {
    margin-top: 30px;
}

.contact-open-btn {
    width: 100%;
    background: var(--white);
    color: var(--dark-color);
    border: none;
    padding: 20px 25px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.contact-open-btn:hover {
    background: var(--light-color);
}

.contact-open-btn i {
    color: var(--primary-color);
    font-size: 0.9rem;
}
}

/* ========================================
   예식 일정
======================================== */
.schedule-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 30px;
}

/* 달력 위젯 */
.calendar-widget {
    max-width: 380px;
    margin: 0 auto 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f7faf7 0%, #ffffff 100%);
    border-radius: 15px;
}

.calendar-header {
    text-align: center;
    margin-bottom: 25px;
}

.calendar-year {
    font-size: 0.85rem;
    color: #aaa;
    letter-spacing: 3px;
    font-weight: 300;
}

.calendar-month-name {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 5px;
    letter-spacing: 1px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 5px;
}

.weekday {
    font-size: 0.7rem;
    font-weight: 500;
    color: #aaa;
    padding: 8px 0;
    text-align: center;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 0 5px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
    position: relative;
    transition: all 0.3s;
    font-weight: 400;
}

.day.empty {
    visibility: hidden;
}

.day:not(.empty):not(.wedding-day) {
    background-color: transparent;
}

.wedding-day {
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.wedding-day::before {
    content: '♥';
    position: absolute;
    font-size: 2.8rem;
    color: var(--primary-color);
    opacity: 0.25;
    z-index: -1;
    animation: heartbeat 1.5s ease-in-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.schedule-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--dark-color);
}

.schedule-item i {
    color: var(--primary-color);
    width: 20px;
}

.dday-counter {
    text-align: center;
    margin-top: 30px;
}

.dday-text {
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========================================
   오시는 길
======================================== */
.location-info {
    text-align: center;
}

.location-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.location-address {
    color: #666;
    margin-bottom: 10px;
}

.location-tel {
    margin-bottom: 30px;
}

.location-tel a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.location-tel a:hover {
    color: #7db97a;
    transform: scale(1.05);
}

.location-tel i {
    margin-right: 5px;
}

.map-container {
    margin: 30px 0;
}

.map {
    width: 100%;
    height: 400px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eee;
}

.map-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.map-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* 카카오맵 버튼 */
.kakao-btn {
    border-color: #FEE500;
    color: #3c1e1e;
}

.kakao-btn:hover {
    background-color: #FEE500;
    color: #3c1e1e;
}

/* 네이버 버튼 */
.naver-btn {
    border-color: #03C75A;
    color: #03C75A;
}

.naver-btn:hover {
    background-color: #03C75A;
    color: var(--white);
}

/* Tmap 버튼 */
.tmap-btn {
    border-color: #FF4E50;
    color: #FF4E50;
}

.tmap-btn:hover {
    background-color: #FF4E50;
    color: var(--white);
}

.transportation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    text-align: left;
}

.transport-item {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.transport-item p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.transport-item p i {
    color: var(--primary-color);
    margin-right: 8px;
    width: 18px;
    text-align: center;
}

.transport-item p strong {
    color: var(--dark-color);
    margin-right: 8px;
}

/* ========================================
   갤러리
======================================== */
.gallery-section {
    padding: 60px 0;
}

.gallery-section .container {
    padding: 0;
    max-width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0;
}

.gallery-item {
    position: relative;
    padding-bottom: 100%;
    overflow: hidden;
    cursor: pointer;
    background-color: #f5f5f5;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* 갤러리 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.modal-close:hover {
    color: #bbb;
}

.modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.modal-prev,
.modal-next {
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: 0.3s;
}

.modal-prev:hover,
.modal-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* ========================================
   계좌번호
======================================== */
/* ========================================
   계좌번호
======================================== */
.account-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.account-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* 아코디언 스타일 */
.account-accordion {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-header {
    width: 100%;
    padding: 20px 25px;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: all 0.3s;
}

.accordion-header:hover {
    background: var(--light-color);
}

.accordion-icon {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.accordion-icon.active {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fafafa;
}

.accordion-content.active {
    max-height: 800px;
    transition: max-height 0.5s ease-in;
}

.account-item {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: var(--white);
}

.account-item:last-child {
    border-bottom: none;
}

.account-owner {
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 0.95rem;
}

.account-info {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
}

.bank-name {
    font-weight: 500;
}

.copy-btn {
    background-color: #6b6b6b;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    color: var(--white);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.copy-btn:hover {
    background-color: #555;
    transform: translateY(-1px);
}

/* ========================================
   공유하기
======================================== */
.share-section {
    padding: 40px 0;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 20px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn i {
    font-size: 1.3rem;
}

/* 카카오톡 버튼 */
.kakao-share {
    background-color: #FEE500;
    color: #3c1e1e;
}

.kakao-share:hover {
    background-color: #fdd835;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(254, 229, 0, 0.4);
}

/* 링크 복사 버튼 */
.link-copy {
    background-color: var(--primary-color);
    color: var(--white);
}

.link-copy:hover {
    background-color: #7db97a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 168, 136, 0.4);
}

/* ========================================
   연락처 모달
======================================== */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
    overflow: auto;
    padding: 20px 0;
}

.contact-modal-content {
    background: var(--white);
    margin: auto;
    max-width: 500px;
    width: 90%;
    border-radius: 20px;
    animation: slideUp 0.3s;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-modal-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
}

.contact-modal-close:hover {
    color: var(--dark-color);
    transform: rotate(90deg);
}

.contact-modal-subtitle {
    text-align: center;
    color: #999;
    font-size: 0.9rem;
    padding: 15px 25px 0;
    margin: 0;
}

.contact-tabs {
    display: flex;
    gap: 0;
    padding: 20px 25px 0;
    border-bottom: 2px solid #f0f0f0;
}

.contact-tab {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.contact-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.contact-list {
    display: none;
    padding: 25px;
}

.contact-list.active {
    display: block;
}

.contact-card {
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.contact-card:last-child {
    margin-bottom: 0;
}

.contact-name {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.contact-phone:hover {
    color: var(--primary-color);
}

.contact-phone i {
    font-size: 0.85rem;
}

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

/* ========================================
   Footer
======================================== */
.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 50px 0;
    text-align: center;
}

.footer-text {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 15px;
    opacity: 0.9;
}

.footer-names {
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-date {
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 2px;
}

/* ========================================
   음악 컨트롤
======================================== */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.music-toggle:hover {
    transform: scale(1.1);
    background-color: #6d8a6b;
}

.music-toggle.playing {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========================================
   애니메이션
======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* ========================================
   반응형 디자인
======================================== */
@media (max-width: 480px) {
    .header-title {
        font-size: 2rem;
        gap: 10px;
    }
    
    .main-photo {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .person-name {
        font-size: 1.6rem;
    }
    
    .schedule-card {
        padding: 30px 20px;
    }
    
    .calendar-widget {
        max-width: 300px;
        padding: 15px;
    }
    
    .calendar-month-name {
        font-size: 1.4rem;
    }
    
    .weekday {
        font-size: 0.65rem;
        padding: 5px 0;
    }
    
    .day {
        font-size: 0.85rem;
    }
    
    .wedding-day {
        font-size: 1rem;
    }
    
    .wedding-day::before {
        font-size: 2.4rem;
    }
    
    .schedule-item {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .share-btn {
        padding: 15px 20px;
    }
    
    .music-toggle {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (min-width: 768px) {
    .couple-info {
        flex-direction: row;
        gap: 80px;
    }
    
    .person {
        max-width: 600px;
        padding: 60px 50px;
    }
    
    .person-parents-simple {
        font-size: 1rem;
        line-height: 2;
        word-break: keep-all;
    }
    
    .person-name-simple {
        font-size: 2rem;
    }
    
    .couple-divider {
        align-self: center;
    }
    
    .transportation {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .account-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }
}

/* ========================================
   스크롤바 스타일
======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #c49563;
}
