@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Gowun+Batang&display=swap');

:root {
    --primary-color: #d4a373; /* 따뜻한 베이지/브라운 톤 */
    --text-color: #333333;
    --bg-color: #fefae0;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Pretendard', sans-serif;
    color: var(--text-color);
    background-color: #e5e5e5;
    display: flex;
    justify-content: center;
}

/* 모바일 뷰어용 컨테이너 (최대 너비 480px로 제한하여 앱처럼 보이게 함) */
.invitation-container {
    max-width: 480px;
    width: 100%;
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

section {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

h1, h2, h3 {
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--primary-color);
}

h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* 초대글 섹션 전용 폰트 스타일 */
.greeting-section h2 {
    font-family: 'Gowun Batang', serif;
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
}

/* 커버 섹션 */
.cover-section {
    padding: 0;
    position: relative;
}

.main-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.cover-text {
    padding: 40px 20px;
    background: linear-gradient(to top, var(--bg-color) 80%, transparent);
    margin-top: -60px; /* 사진 위로 살짝 겹치게 */
    position: relative;
}

.cover-text h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cover-text .date, .cover-text .location {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* 인사말 섹션 */
.greeting-text p {
    line-height: 2;
    font-size: 1rem;
    color: #444;
}

.parents-info {
    margin-top: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 오시는 길 섹션 */
.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #eaeaea;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fake-map {
    color: #888;
}

.address-info {
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b0895c;
}

/* 마음 전하실 곳 (계좌) 섹션 */
.account-info {
    margin-top: 20px;
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.account-info.hidden {
    display: none;
}

.account-group {
    margin-bottom: 15px;
}

.account-group:last-child {
    margin-bottom: 0;
}

.account-group h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #666;
}

.account-group p {
    font-size: 0.95rem;
}

footer {
    padding: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
}

/* 방명록 섹션 */
.guestbook-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.guestbook-form input, .guestbook-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.guestbook-form textarea {
    resize: vertical;
}

.guestbook-list {
    text-align: left;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 15px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.guestbook-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-all;
}

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