/**
 * LPS Comments CSS
 *
 * Styles for the LPS Comments System
 *
 * @package LPS_Poll_System
 * @since 1.0.0
 */

/* Comments Container */
.lps-comments-container {
    margin: 2em 0;
    padding: 1.5em;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e1e1e1;
}

/* Comments List */
.lps-comments-list {
    margin-bottom: 2em;
}

.lps-comments-list .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lps-comments-list .comment-list li {
    margin-bottom: 1.5em;
    padding: 1em;
    background: #fff;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lps-comments-list .comment-list li.depth-1 {
    margin-left: 2em;
    border-left-color: #666;
}

.lps-comments-list .comment-list li.depth-2 {
    margin-left: 4em;
    border-left-color: #999;
}

/* Comment Body */
.lps-comments-list .comment-body {
    position: relative;
}

.lps-comments-list .comment-meta {
    margin-bottom: 0.8em;
    display: flex;
    align-items: center;
    gap: 1em;
}

.lps-comments-list .comment-author {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.lps-comments-list .comment-author img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.lps-comments-list .comment-author .fn {
    font-weight: 600;
    color: #333;
    font-style: normal;
}

.lps-comments-list .comment-metadata {
    font-size: 0.9em;
    color: #666;
}

.lps-comments-list .comment-metadata time {
    color: #888;
}

.lps-comments-list .comment-content {
    line-height: 1.6;
    color: #333;
}

.lps-comments-list .comment-content p {
    margin: 0 0 0.5em 0;
}

.lps-comments-list .comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply Link */
.lps-comments-list .reply {
    margin-top: 0.8em;
}

.lps-comments-list .reply a {
    display: inline-block;
    padding: 0.3em 0.8em;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.lps-comments-list .reply a:hover {
    background: #005a87;
    color: #fff;
}

/* Load More Button */
.lps-load-more-comments {
    text-align: center;
    margin-top: 2em;
}

#lps-load-more-btn {
    display: inline-block;
    padding: 0.8em 1.5em;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

#lps-load-more-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#lps-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Comment Form */
.lps-comment-form {
    margin-top: 2em;
    padding: 1.5em;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

.lps-comment-form .comment-notes {
    margin-bottom: 1em;
    padding: 0.8em;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    color: #856404;
    font-size: 0.9em;
}

.lps-comment-form .comment-form-comment {
    margin-bottom: 1em;
}

.lps-comment-form .comment-form-comment label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: 600;
    color: #333;
}

.lps-comment-form .comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1em;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.lps-comment-form .comment-form-comment textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.lps-comment-form .comment-form-comment textarea:disabled {
    background: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.lps-comment-form .form-submit {
    margin-top: 1em;
}

.lps-comment-form .form-submit input[type="submit"] {
    display: inline-block;
    padding: 0.8em 1.5em;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lps-comment-form .form-submit input[type="submit"]:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lps-comment-form .form-submit input[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Validation Messages */
.lps-validation-message {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 0.5em;
    padding: 0.5em;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* No Comments Message */
.lps-no-comments {
    text-align: center;
    padding: 2em;
    color: #666;
    font-style: italic;
}

/* Access Denied Message */
.lps-comment-access-denied {
    text-align: center;
    padding: 2em;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    color: #721c24;
}

.lps-comment-access-denied p {
    margin: 0;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lps-comments-list .comment-list li.depth-1 {
        margin-left: 1em;
    }
    
    .lps-comments-list .comment-list li.depth-2 {
        margin-left: 2em;
    }
    
    .lps-comments-list .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5em;
    }
    
    .lps-comment-form {
        padding: 1em;
    }
}

@media (max-width: 480px) {
    .lps-comments-container {
        padding: 1em;
        margin: 1em 0;
    }
    
    .lps-comments-list .comment-list li {
        padding: 0.8em;
    }
    
    .lps-comments-list .comment-author img {
        width: 32px;
        height: 32px;
    }
}

/* Loading Animation */
.lps-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: lps-spin 1s linear infinite;
    margin-right: 0.5em;
}

@keyframes lps-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Comment Status Indicators */
.lps-comment-status {
    display: inline-block;
    padding: 0.2em 0.5em;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.lps-comment-status.approved {
    background: #d4edda;
    color: #155724;
}

.lps-comment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.lps-comment-status.spam {
    background: #f8d7da;
    color: #721c24;
} 