/**
 * PVH Comments Admin Styles
 *
 * @package PVH_Comments
 * @version 1.0.0
 */

/* General Styles */
.pvh-comments-admin {
    margin-top: 20px;
}

.pvh-comments-admin .subsubsub {
    margin-bottom: 10px;
}

.pvh-comments-admin .search-form {
    float: right;
    margin-bottom: 10px;
}

/* Table Styles */
.pvh-comments-admin .wp-list-table {
    margin-top: 10px;
}

.pvh-comments-admin .column-author {
    width: 180px;
}

.pvh-comments-admin .column-author img {
    float: left;
    margin-right: 10px;
    border-radius: 50%;
}

.pvh-comments-admin .column-comment {
    width: auto;
}

.pvh-comments-admin .column-response {
    width: 180px;
}

.pvh-comments-admin .column-date {
    width: 120px;
}

/* Reply indicator */
.pvh-reply-to {
    background: #f0f0f1;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #50575e;
}

.pvh-reply-to .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Comment content */
.comment-content {
    margin: 8px 0;
    line-height: 1.5;
}

/* Comment meta */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

/* Status badges */
.pvh-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.pvh-status-approved {
    background: #d4edda;
    color: #155724;
}

.pvh-status-pending {
    background: #fff3cd;
    color: #856404;
}

.pvh-status-spam {
    background: #f8d7da;
    color: #721c24;
}

.pvh-status-trash {
    background: #e2e3e5;
    color: #383d41;
}

/* Votes display */
.pvh-votes {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #50575e;
}

.pvh-votes .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.pvh-votes .dashicons-thumbs-up {
    color: #00a32a;
}

.pvh-votes .dashicons-thumbs-down {
    color: #d63638;
}

/* Row actions */
.pvh-comments-admin .row-actions {
    visibility: visible !important;
    padding-top: 8px;
    display: block !important;
}

.pvh-comments-admin .row-actions span {
    display: inline !important;
    visibility: visible !important;
}

.pvh-comments-admin .row-actions .approve,
.pvh-comments-admin .row-actions .unapprove,
.pvh-comments-admin .row-actions .spam,
.pvh-comments-admin .row-actions .trash,
.pvh-comments-admin .row-actions .restore,
.pvh-comments-admin .row-actions .delete {
    display: inline !important;
    visibility: visible !important;
}

.pvh-comments-admin tr:hover .row-actions {
    visibility: visible !important;
}

/* Approve button highlight for pending comments */
.pvh-comments-admin tr.pending .row-actions .approve a {
    color: #00a32a;
    font-weight: 600;
}

.pvh-comments-admin tr.pending .row-actions .approve a:hover {
    color: #007017;
}

/* Deleted video indicator */
.pvh-deleted-video {
    color: #d63638;
    font-style: italic;
}

/* Reply row styling */
.pvh-comments-admin tr.reply {
    background-color: #f9f9f9;
}

.pvh-comments-admin tr.reply .column-comment {
    padding-left: 20px;
    border-left: 3px solid #2271b1;
}

/* Status row colors */
.pvh-comments-admin tr.pending {
    background-color: #fffbeb;
}

.pvh-comments-admin tr.spam {
    background-color: #fef2f2;
}

.pvh-comments-admin tr.trash {
    background-color: #f3f4f6;
}

/* Action buttons */
.pvh-action-btn,
.pvh-delete-btn {
    cursor: pointer;
}

.pvh-delete-btn {
    color: #d63638 !important;
}

.pvh-delete-btn:hover {
    color: #a00 !important;
}

/* Loading state */
.pvh-comments-admin tr.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Bulk actions */
.pvh-comments-admin .bulkactions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .pvh-comments-admin .column-author,
    .pvh-comments-admin .column-response,
    .pvh-comments-admin .column-date {
        display: none;
    }

    .pvh-comments-admin .column-comment {
        width: 100%;
    }

    .pvh-comments-admin .search-form {
        float: none;
        margin-bottom: 15px;
    }
}
