/**
 * Comments Controller Styles
 *
 * Styles for genealogy person page comments section.
 *
 * @package    LineagePress
 * @subpackage LineagePress/Frontend
 * @since      2.0.0
 */

/* No Comments Message */
.hp-no-comments {
    color: #666;
    padding: 20px;
    text-align: center;
}

/* Comments Pagination */
.hp-comments-pagination {
    margin-top: 20px;
    text-align: center;
}

.hp-pagination-prev,
.hp-pagination-next {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px;
}

.hp-pagination-prev:hover,
.hp-pagination-next:hover {
    background: #005a87;
}

.hp-pagination-info {
    margin: 0 10px;
}

/* Comment Container */
.hp-comment {
    padding: 20px;
    border-left: 4px solid var(--lp-primary-color, #007cba);
    margin-bottom: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hp-comment-depth-0 {
    background: #fff;
}

.hp-comment-depth-1 {
    background: #f8f9fa;
    margin-left: 40px;
}

.hp-comment-depth-2 {
    background: #fff;
    margin-left: 80px;
}

.hp-comment-depth-3 {
    background: #f8f9fa;
    margin-left: 120px;
}

.hp-comment-depth-4 {
    background: #fff;
    margin-left: 160px;
}

.hp-comment-inner {
    display: flex;
    gap: 15px;
}

/* Avatar */
.hp-comment-avatar {
    flex-shrink: 0;
    text-align: center;
}

.hp-avatar-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hp-admin-badge {
    background: #007cba;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7em;
    margin-top: 6px;
    font-weight: 600;
}

/* Comment Content */
.hp-comment-content {
    flex: 1;
}

.hp-comment-meta {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-comment-author {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.hp-comment-date {
    color: #666;
    font-size: 0.9em;
}

.hp-comment-text {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
}

.hp-comment-full {
    display: none;
}

.hp-read-more {
    color: #007cba;
    font-weight: 500;
}

.hp-comment-reply {
    color: #007cba;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid #007cba;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s;
}

.hp-comment-reply:hover {
    background: #007cba;
    color: white;
    text-decoration: none;
}

/* Comment Form */
.hp-comment-form-wrapper {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.hp-comment-form-title {
    margin-top: 0;
}

.hp-form-field {
    margin-bottom: 15px;
}

.hp-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.hp-input,
.hp-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

.hp-textarea {
    resize: vertical;
    min-height: 200px;
}

.hp-moderation-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.hp-form-actions {
    margin-top: 15px;
}

.hp-btn {
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-family: inherit;
}

.hp-btn-primary {
    background: #007cba;
    color: white;
}

.hp-btn-primary:hover {
    background: #005a87;
}

.hp-btn-secondary {
    background: #666;
    color: white;
    margin-left: 10px;
}

.hp-btn-secondary:hover {
    background: #444;
}
