/* Guestbook Styles */

.guestbook-list {
    margin-bottom: 20px;
}

.guestbook-item {
    background: #fdfdfd;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s;
}

.guestbook-item:hover {
    transform: translateX(5px);
    border-color: var(--secondary-color);
}

.gb-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 0.85rem;
    flex-wrap: wrap; /* Allow wrapping by default for safety */
}

.gb-nickname {
    font-weight: bold;
    color: var(--primary-color);
}

.gb-time {
    color: #999;
    font-size: 0.85rem;
}

.gb-location {
    color: #aaa;
    font-size: 0.85rem;
    margin-left: 5px;
}

.gb-content {
    color: #444;
    line-height: 1.5;
    word-break: break-all;
}

/* Mobile Layout */
@media (max-width: 600px) {
    .gb-header {
        gap: 5px;
    }
    
    /* Make location break line if space is tight, or just fill width */
    .gb-location {
        width: 100%;
        margin-left: 0;
        margin-top: 2px;
        display: block;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled) {
    background: #f0f0f0;
}

.guestbook-form {
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.guestbook-form h3 {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.1rem;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.loading-tip,
.error-tip,
.empty-tip {
    text-align: center;
    padding: 20px;
    color: #999;
}