@charset "utf-8";

/* ═══════════════════════════════════════════════════════════
   GUEST_UP — Coral Glass Guestbook
   메모 스킨 레퍼런스 기반, 코랄핑크 글래스모피즘
   ═══════════════════════════════════════════════════════════ */

/* ── 색상 변수 ──────────────────────────────────────────── */
:root {
    --coral:        #ff7043;
    --coral-light:  #ff8a65;
    --coral-pale:   #ffccbc;
    --pink:         #f79797;
    --pink-light:   #ffd6e0;
    --glass-bg:     rgba(255,252,250,.82);
    --glass-bg-2:   rgba(255,250,247,.65);
    --glass-border: rgba(255,160,120,.28);
    --glass-shadow: 0 4px 24px rgba(255,112,67,.1), 0 1px 4px rgba(0,0,0,.05);
    --blur:         blur(16px);
    --text:         rgba(60,35,25,.85);
    --text-muted:   rgba(120,75,60,.55);
    --radius-lg:    20px;
    --radius-md:    12px;
    --radius-sm:    8px;
}

/* ── 메인 컨테이너 ──────────────────────────────────────── */
#guest_up {
    max-width: 640px;
    margin: 0 auto;
    padding: 20px 14px 60px;
    min-height: unset;
    background: transparent;   /* 배경 제거 */
}

/* ══════════════════════════════════════════════════════════
   헤더 — 큰 제목 → 작고 세련된 레이블
══════════════════════════════════════════════════════════ */
.guest-header {
    padding-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-title {
    /* 크고 못생긴 Guestbook 제거 */
    font-size: 11px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    color: rgba(200,110,80,.7) !important;
    font-family: inherit !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 4px 12px;
    border: 1.5px solid rgba(255,160,120,.35);
    border-radius: 999px;
    background: rgba(255,240,235,.5);
    display: inline-block;
}

.guest-title span { display: none; } /* "book" 숨기기 */

/* ══════════════════════════════════════════════════════════
   라벨
══════════════════════════════════════════════════════════ */
.guest-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(200,100,70,.75);
    margin-bottom: 5px;
    margin-left: 2px;
}

.guest-field { flex: 1; }

/* ══════════════════════════════════════════════════════════
   글쓰기 폼 박스
══════════════════════════════════════════════════════════ */
.guest-write-box {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

/* 비회원 이름/비번 행 */
.guest-info {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

/* 입력 필드 공통 */
.guest-input,
.guest-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 13px;
    border: 1.5px solid rgba(255,160,120,.3);
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.78);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.guest-input:focus,
.guest-textarea:focus {
    border-color: rgba(255,112,67,.55);
    box-shadow: 0 0 0 3px rgba(255,160,120,.12);
    background: rgba(255,255,255,.96);
}
.guest-input::placeholder,
.guest-textarea::placeholder {
    color: rgba(180,130,110,.5);
    font-size: 12px;
}

.guest-content-wrap { }

.guest-textarea {
    min-height: 90px;
    resize: vertical;
    line-height: 1.65;
    display: block;
    margin-bottom: 10px;
}

/* 비밀글 + 제출 버튼 행 */
.guest-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

/* 비밀글 체크박스 */
.guest-secret {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(180,100,70,.7);
    user-select: none;
}
.guest-secret input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border: 1.5px solid rgba(255,160,120,.5);
    border-radius: 3px;
    background: rgba(255,255,255,.9);
    cursor: pointer;
    position: relative;
    transition: all .14s;
    flex-shrink: 0;
}
.guest-secret input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    border-color: transparent;
}
.guest-secret input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 3px; top: 0px;
    width: 4px; height: 7px;
    border: 1.5px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(43deg);
    display: block;
}

/* 비밀번호 입력 영역 */
.secret-pw-area {
    margin-top: 8px;
}
.secret-pw-area input {
    padding: 7px 12px;
    border: 1.5px solid rgba(255,160,120,.35);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.78);
    font-size: 12px;
    outline: none;
    color: var(--text);
    width: 160px;
    transition: border-color .18s;
}
.secret-pw-area input:focus {
    border-color: rgba(255,112,67,.5);
}

/* 제출 버튼 */
.guest-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--coral-light), var(--coral));
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(255,112,67,.32);
    transition: all .2s;
    margin-left: auto;
    display: flex;
}
.guest-submit-btn:hover {
    background: linear-gradient(135deg, var(--coral), #f4511e);
    box-shadow: 0 5px 18px rgba(255,112,67,.45);
    transform: translateY(-1px);
}
.guest-submit-btn i { font-size: 11px; }

/* ══════════════════════════════════════════════════════════
   방명록 아이템 목록
══════════════════════════════════════════════════════════ */
.guest-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guest-empty {
    text-align: center;
    padding: 40px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    color: rgba(200,150,130,.55);
    text-transform: uppercase;
}

/* 아이템 카드 */
.guest-item {
    background: var(--glass-bg);
    border: 1.5px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    transition: box-shadow .22s ease, transform .2s ease;
}
.guest-item:hover {
    box-shadow: 0 8px 28px rgba(255,112,67,.15), 0 2px 8px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
.guest-item.is-secret {
    border-color: rgba(255,140,100,.2);
    background: rgba(255,250,248,.75);
}

/* 아이템 헤더 */
.guest-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.guest-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--coral);
    letter-spacing: .01em;
}

.guest-secret-badge {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(200,100,70,.8);
    background: rgba(255,200,170,.25);
    border: 1px solid rgba(255,160,120,.35);
    padding: 2px 7px;
    border-radius: 999px;
}

.guest-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

/* 수정/삭제 버튼 */
.guest-item-actions {
    display: flex;
    gap: 6px;
}
.guest-edit,
.guest-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 11px;
    transition: all .16s;
    border: 1.5px solid rgba(255,160,120,.3);
    background: rgba(255,255,255,.7);
    color: rgba(180,100,70,.7);
}
.guest-edit:hover {
    background: rgba(255,200,170,.45);
    border-color: rgba(255,130,80,.5);
    color: var(--coral);
}
.guest-delete:hover {
    background: rgba(255,160,140,.3);
    border-color: rgba(220,80,60,.4);
    color: #e05030;
}

/* 아이템 본문 */
.guest-item-content {
    font-size: 13px;
    line-height: 1.72;
    color: var(--text);
    word-break: break-word;
    margin-bottom: 10px;
}

/* 비밀글 폼 */
.guest-pw-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.guest-locked-msg {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(180,100,70,.65);
    text-transform: uppercase;
}
.guest-pw-input {
    padding: 6px 12px;
    border: 1.5px solid rgba(255,160,120,.3);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.82);
    font-size: 12px;
    outline: none;
    color: var(--text);
    flex: 1;
    min-width: 100px;
    transition: border-color .18s;
}
.guest-pw-input:focus { border-color: rgba(255,112,67,.5); }
.guest-pw-btn {
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--coral-light), var(--coral));
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all .18s;
}
.guest-pw-btn:hover {
    background: linear-gradient(135deg, var(--coral), #f4511e);
    box-shadow: 0 3px 10px rgba(255,112,67,.35);
}

/* ══════════════════════════════════════════════════════════
   댓글 토글 버튼
══════════════════════════════════════════════════════════ */
.comment-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: transparent;
    border: 1.5px solid rgba(255,160,120,.3);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(180,100,70,.7);
    cursor: pointer;
    transition: all .18s;
    margin-top: 4px;
}
.comment-toggle-btn:hover {
    background: rgba(255,200,170,.3);
    border-color: rgba(255,130,80,.45);
    color: var(--coral);
}
.comment-toggle-btn i { font-size: 10px; }

/* ══════════════════════════════════════════════════════════
   댓글 목록
══════════════════════════════════════════════════════════ */
.guest-comments {
    margin-top: 10px;
    padding: 10px 14px;
    background: var(--glass-bg-2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,160,120,.18);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guest-comment {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,160,120,.1);
}
.guest-comment:last-child { border-bottom: none; }

.comment-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--coral);
    flex-shrink: 0;
}
.comment-content {
    font-size: 12px;
    color: var(--text);
    flex: 1;
    line-height: 1.55;
    word-break: break-word;
}
.comment-date {
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.comment-edit,
.comment-delete {
    font-size: 10px;
    color: rgba(180,120,90,.55);
    text-decoration: none;
    transition: color .14s;
    flex-shrink: 0;
}
.comment-edit:hover { color: var(--coral); }
.comment-delete:hover { color: #e05030; }

/* 댓글 수정 폼 */
.guest-comment-edit-form {
    display: none;
    align-items: center;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   댓글 작성 폼
══════════════════════════════════════════════════════════ */
.guest-comment-form {
    display: none;
    margin-top: 10px;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.comment-input {
    padding: 7px 11px;
    border: 1.5px solid rgba(255,160,120,.28);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.78);
    font-size: 12px;
    font-family: inherit;
    outline: none;
    color: var(--text);
    transition: border-color .18s;
    box-sizing: border-box;
}
.comment-input:focus {
    border-color: rgba(255,112,67,.5);
    background: rgba(255,255,255,.97);
}
.comment-input::placeholder { color: rgba(180,130,110,.45); }
.comment-name-input  { width: 90px; }
.comment-pw-input    { width: 80px; }
.comment-content-input { flex: 1; min-width: 140px; resize: none; }

.comment-submit-btn {
    padding: 7px 14px;
    background: linear-gradient(135deg, var(--coral-light), var(--coral));
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
}
.comment-submit-btn:hover {
    background: linear-gradient(135deg, var(--coral), #f4511e);
    box-shadow: 0 3px 10px rgba(255,112,67,.35);
}
.comment-cancel-btn {
    padding: 7px 12px;
    background: rgba(255,255,255,.7);
    color: rgba(160,100,70,.8);
    border: 1.5px solid rgba(255,160,120,.3);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .16s;
    white-space: nowrap;
}
.comment-cancel-btn:hover {
    background: rgba(255,235,225,.95);
    border-color: rgba(255,130,80,.4);
}

/* ══════════════════════════════════════════════════════════
   페이징
══════════════════════════════════════════════════════════ */
.guest-pagination {
    margin-top: 24px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   모바일
══════════════════════════════════════════════════════════ */
@media (max-width: 540px) {
    #guest_up { padding: 14px 10px 40px; }
    .guest-write-box { padding: 14px 15px; }
    .guest-info { flex-direction: column; gap: 8px; }
    .guest-actions { gap: 8px; }
    .guest-item { padding: 14px 15px; }
    .guest-comments { padding: 8px 10px; }
    .comment-name-input { width: 80px; }
    .comment-pw-input   { width: 70px; }
}
