/* 방명록 페이지 전용 스타일 - 픽셀 게임 스타일 */

body {
    padding-top: 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: #4D2FB2;
    border: 6px solid #F375C2;
    box-shadow: 
        0 0 0 2px #0E21A0,
        8px 8px 0 0 rgba(0, 0, 0, 0.3);
}

.page-header h1 {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 3rem;
    color: #fff;
    text-shadow: 
        4px 4px 0 #0E21A0,
        5px 5px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.page-header p {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.4rem;
    color: #F375C2;
    font-weight: normal;
    margin-bottom: 0;
    text-shadow: 
        2px 2px 0 #0E21A0;
}

/* 방명록 작성 폼 - 픽셀 스타일 */
.guestbook-form-section {
    background: #fff;
    border: 6px solid #B153D7;
    box-shadow: 
        0 0 0 2px #4D2FB2,
        8px 8px 0 0 rgba(0, 0, 0, 0.3);
    padding: 40px;
    margin-bottom: 40px;
}

.guestbook-form-section h2 {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 2.2rem;
    color: #4D2FB2;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 
        2px 2px 0 #F375C2;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.4rem;
    color: #0E21A0;
    margin-bottom: 10px;
    font-weight: normal;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 4px solid #B153D7;
    background: #fff;
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F375C2;
    box-shadow: 
        inset 3px 3px 0 rgba(0, 0, 0, 0.1),
        0 0 0 3px #B153D7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* 이모지 선택 - 픽셀 버튼 */
.emoji-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.emoji-btn {
    width: 65px;
    height: 65px;
    font-size: 2.2rem;
    border: 4px solid #B153D7;
    background: #fff;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.emoji-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.emoji-btn.active {
    border-color: #F375C2;
    background: #B153D7;
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 rgba(0, 0, 0, 0.2);
}

/* 색상 선택 - 픽셀 스타일 */
.color-selector {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-btn {
    width: 55px;
    height: 55px;
    border: 4px solid #B153D7;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.color-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.color-btn.active {
    border-color: #F375C2;
    border-width: 5px;
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 rgba(0, 0, 0, 0.3);
}

/* 제출 버튼 - 게임 버튼 */
.submit-btn {
    width: 100%;
    padding: 22px;
    background: #B153D7;
    color: #fff;
    border: 5px solid #F375C2;
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.7rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 
        0 0 0 2px #0E21A0,
        6px 6px 0 0 rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 
        0 0 0 2px #0E21A0,
        3px 3px 0 0 rgba(0, 0, 0, 0.4);
}

.submit-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 
        0 0 0 2px #0E21A0,
        0px 0px 0 0 rgba(0, 0, 0, 0.4);
}

/* 방명록 목록 섹션 */
.guestbook-list-section {
    margin-bottom: 40px;
}

.guestbook-list-section h2 {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    text-shadow: 
        4px 4px 0 #0E21A0,
        5px 5px 0 rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.guestbook-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 방명록 카드 - 픽셀 메모지 */
.guestbook-card {
    background: #fff;
    padding: 25px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    position: relative;
    border: 5px solid;
    animation: cardAppear 0.4s steps(4, end);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.guestbook-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.3);
}

.guestbook-card.purple {
    border-color: #4D2FB2;
    background: linear-gradient(135deg, #f3f0ff 0%, #e9d5ff 100%);
}

.guestbook-card.pink {
    border-color: #F375C2;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.guestbook-card.yellow {
    border-color: #fbbf24;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.guestbook-card.blue {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.guestbook-card.green {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.card-emoji {
    position: absolute;
    top: -15px;
    right: 20px;
    font-size: 2.8rem;
    background: #fff;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid;
    border-color: inherit;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.card-author {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.4rem;
    font-weight: normal;
    color: #0E21A0;
    margin-bottom: 12px;
}

.card-message {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.card-date {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: right;
    font-weight: normal;
}

/* 로딩 및 빈 상태 */
.loading, .empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 
        3px 3px 0 #0E21A0;
    font-weight: normal;
}

/* 페이지네이션 - 게임 버튼 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 12px 24px;
    background: #B153D7;
    color: #fff;
    border: 4px solid #F375C2;
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.1s ease;
    box-shadow: 
        0 0 0 2px #0E21A0,
        4px 4px 0 0 rgba(0, 0, 0, 0.3);
}

.page-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 
        0 0 0 2px #0E21A0,
        2px 2px 0 0 rgba(0, 0, 0, 0.3);
}

.page-btn.active {
    background: #F375C2;
    border-color: #4D2FB2;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .guestbook-form-section,
    .page-header {
        padding: 25px;
    }

    .guestbook-list {
        grid-template-columns: 1fr;
    }

    .emoji-btn {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }

    .color-btn {
        width: 45px;
        height: 45px;
    }

    .submit-btn {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 160px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .guestbook-form-section h2 {
        font-size: 1.8rem;
    }
}
