/* WP Guestbook Styles */
.wpgb-wrap {
    font-family: inherit;
    max-width: 100%;
}

/* Form */
.wpgb-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.wpgb-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.wpgb-form-row input,
.wpgb-form textarea,
.wpgb-form input[type="text"],
.wpgb-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    background: #ffffff;
    color: #111827;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wpgb-form input:focus,
.wpgb-form textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wpgb-form textarea {
    min-height: 100px;
    resize: vertical;
    margin-bottom: 12px;
    display: block;
}

.wpgb-submit-btn {
    display: inline-block;
    padding: 10px 24px;
    background-color: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.wpgb-submit-btn:hover {
    opacity: 0.9;
}

.wpgb-submit-btn:active {
    transform: scale(0.98);
}

.wpgb-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wpgb-form-notice {
    margin-top: 10px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}

.wpgb-form-notice.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.wpgb-form-notice.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Messages List */
.wpgb-messages-header {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 16px;
}

.wpgb-messages-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wpgb-message-card {
    display: flex;
    gap: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

.wpgb-avatar {
    flex-shrink: 0;
}

.wpgb-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.wpgb-message-body {
    flex: 1;
    min-width: 0;
}

.wpgb-message-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}

.wpgb-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

.wpgb-message-date {
    font-size: 12px;
    color: #9ca3af;
}

.wpgb-message-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}

/* Load More */
.wpgb-load-more-wrap {
    text-align: center;
    margin-top: 20px;
}

.wpgb-load-more-btn {
    display: inline-block;
    padding: 9px 24px;
    background: transparent;
    color: #4f46e5;
    border: 2px solid #4f46e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.wpgb-load-more-btn:hover {
    background: #4f46e5;
    color: #ffffff;
}

.wpgb-load-more-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wpgb-empty {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    padding: 24px 0;
}

/* Responsive */
@media (max-width: 480px) {
    .wpgb-form-row {
        flex-direction: column;
    }

    .wpgb-message-card {
        flex-direction: column;
        gap: 10px;
    }
}
