/* Modern comment section design */
.rn-comments-section {
    margin-top: 2em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 2em 2em 1.5em 2em;
    margin-bottom: 2em;
}
.rn-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 2em;
    background: #f8f9fa;
    padding: 1em 1.5em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
}
.rn-comment-form input,
.rn-comment-form textarea {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.5em 0.75em;
    font-size: 1em;
    background: #fff;
    transition: border 0.2s;
    outline: none;
}
.rn-comment-form input:focus,
.rn-comment-form textarea:focus {
    border: 1.5px solid #007bff;
}
.rn-comment-form button {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5em 1.5em;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.rn-comment-form button:hover {
    background: var(--primary-dark);
}
.comment {
    display: flex;
    align-items: flex-start;
    gap: 1em;
    background: #f9fafd;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    margin-bottom: 1.2em;
    padding: 1.1em 1.5em 1.1em 1.5em;
    position: relative;
    border-left: 4px solid #007bff;
    transition: box-shadow 0.2s;
}
.comment:hover {
    box-shadow: 0 4px 16px rgba(0,123,255,0.08);
}
.comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e3e9f6;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2em;
    margin-right: 0.5em;
    flex-shrink: 0;
}
.comment-content {
    flex: 1;
}
.comment .date {
    color: #888;
    font-size: 0.92em;
    margin-left: 0.5em;
}
.comment strong {
    font-size: 1.05em;
    color: #222;
}
.reply-btn, .send-reply {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    padding: 0.2em 0.9em;
    border-radius: 5px;
    transition: background 0.15s;
    margin-top: 0.3em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.reply-btn:hover, .send-reply:hover {
    background: var(--primary-dark);
}
.reply-form {
    margin-top: 0.7em;
    background: #f5f7fa;
    border-radius: 7px;
    padding: 0.7em 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
}
.reply-form input, .reply-form textarea {
    width: 100%;
    margin-bottom: 0.5em;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.4em 0.7em;
    font-size: 1em;
    background: #fff;
    transition: border 0.2s;
}
.reply-form input:focus, .reply-form textarea:focus {
    border: 1.5px solid #007bff;
}
@media (max-width: 600px) {
    .rn-comments-section {
        padding: 1em 0.3em 1em 0.3em;
    }
    .comment {
        flex-direction: column;
        padding: 1em 0.7em 1em 0.7em;
    }
    .comment-avatar {
        margin-bottom: 0.5em;
    }
}
.comment .date {
    color: #888;
    font-size: 0.9em;
    margin-left: 0.5em;
}
.comment strong {
    color: #007bff;
}
.reply-btn, .send-reply {
    margin-top: 0.5em;
    font-size: 0.95em;
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.reply-btn:hover, .send-reply:hover {
    color: #0056b3;
}
.reply-form {
    margin-top: 0.5em;
    background: #f1f3f6;
    border-radius: 6px;
    padding: 0.75em 1em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
/* Indent replies */
.comment .comment {
    margin-top: 1em;
    margin-left: 2em;
    border-left: 2px solid #e0e0e0;
    box-shadow: none;
    background: #f9fafd;
}
@media (max-width: 600px) {
    .rn-comments-section, .comment, .rn-comment-form {
        padding-left: 0.5em;
        padding-right: 0.5em;
    }
    .comment .comment {
        margin-left: 1em;
    }
}
.rn-admin-comments-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2em;
}
.rn-admin-comments-table th, .rn-admin-comments-table td {
    padding: 0.75em 1em;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}
.rn-admin-comments-table tr:hover {
    background: #f8f9fa;
}
.rn-admin-comments-table th {
    background: #f5f7fa;
    font-weight: 600;
    color: #333;
}
.badge {
    display: inline-block;
    padding: 0.25em 0.7em;
    font-size: 0.95em;
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
}
.badge-success {
    background: #28a745;
}
.badge-warning {
    background: #ffc107;
    color: #333;
}
.rn-admin-actions {
    display: flex;
    gap: 0.5em;
}

/* Pending comment styles for instant UI feedback */
.comment.pending {
    border-left-color: #f0ad4e;
    background: linear-gradient(90deg, rgba(255,250,240,0.9), #fff);
}
.pending-badge {
    display: inline-block;
    margin-left: 0.6em;
    padding: 0.15em 0.5em;
    font-size: 0.8em;
    border-radius: 8px;
    background: #f0ad4e;
    color: #6b3b00;
    font-weight: 700;
}

.comment.pending .date {
    color: #6b3b00;
}
