body {
    overflow-y: auto; /* 자연스러운 수직 스크롤 작동 허용 */
}

/* 3:1 분할 스플릿 구조 규격화 */
.sub-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
    align-items: flex-start;
    height: auto;
}

/* ✍️ 1. 작성 폼 인테리어 */
.guestbook-form-box {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 35px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 50px;
}

.form-row-top {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.input-field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.guestbook-form-box label {
    font-family: "Noto Serif KR", serif;
    font-size: 0.95rem;
    color: var(--gold-bright);
    font-weight: 500;
}

/* 인풋 및 텍스트에어리어 다크 커스텀 마감 */
.guestbook-form-box input[type="text"],
.guestbook-form-box input[type="password"],
.guestbook-form-box textarea {
    background-color: #0b0c10;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-family: "Noto Sans KR", sans-serif;
    font-size: 0.95rem;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

.guestbook-form-box textarea {
    width: 100%;
    height: 120px;
    resize: none; /* 크기 조절 손잡이 제거 */
    line-height: 1.6;
}

.guestbook-form-box input:focus,
.guestbook-form-box textarea:focus {
    outline: none;
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.form-submit-row {
    text-align: right;
}

/* 📜 2. 피드 리스트 구역 인테리어 */
.list-title {
    font-size: 1.1rem;
    color: var(--gold-bright);
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    padding-bottom: 8px;
    letter-spacing: 0.05em;
}

.guestbook-feed {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 묵직한 서책 양식의 방명록 개별 카드 */
.guestbook-card-item {
    background-color: var(--bg-surface);
    border: 1px solid rgba(197, 160, 89, 0.08);
    padding: 30px;
    border-top: 2px solid var(--gold-dim);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.guestbook-card-item:hover {
    border-top-color: var(--gold-bright);
}

.card-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 8px;
}

.visitor-author {
    font-family: "Noto Serif KR", serif;
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 500;
}

.visitor-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.visitor-text {
    font-size: 0.95rem;
    color: #c9cdd3;
    line-height: 1.7;
    text-align: justify;
    font-weight: 300;
    word-break: break-all;
}

/* 🎯 전령 보내기 버튼 - 미스틱 골드 펄스 스타일 */
.btn-ritual-gold {
    background: transparent;
    color: #c5a059;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 0px;
    /* 고풍스러운 서책 느낌을 위해 각진 직사각형 마감 */
    padding: 15px 45px;
    font-family: "Noto Serif KR", serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    width: 45%;

    /* 은은한 숨쉬기 파동 효과 */
    animation: goldPulse 3s infinite;
}

.btn-ritual-ghost {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0px;
    padding: 15px 45px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 45%;
}
.btn-ritual-ghost:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.2);
    }

    50% {
        box-shadow: 0 0 15px 4px rgba(197, 160, 89, 0.4);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(197, 160, 89, 0.2);
    }
}

.btn-ritual-gold:hover {
    color: #0b0c10;
    background-color: #c5a059;
    border-color: #c5a059;
    box-shadow: 0 0 25px rgba(197, 160, 89, 0.6) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
