/* Comments Section */
.comments-section {
    background-color: #2a2a2a;
    border-radius: 0;
    padding: 0;
    margin-top: 30px;
    color: #fff;
    box-shadow: none;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #222;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-count {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.comments-count i {
    margin-right: 8px;
    font-size: 18px;
}

.comments-sort {
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
}

.comments-sort i {
    margin-left: 5px;
}

.comments-sort:hover {
    color: #fff;
}

.comments-sort:disabled {
    color: #555;
    cursor: not-allowed;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    border-bottom: none;
    padding: 0;
    color: #fff;
}

.comment-form-container {
    display: flex;
    padding: 15px 20px;
    background-color: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form {
    margin-bottom: 0;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    flex: 1;
    position: relative;
}

.comment-form textarea {
    width: 100%;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    resize: none;
    min-height: 40px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    font-size: 14px;
    padding-right: 40px;
}

.comment-form textarea:focus {
    border-color: transparent;
    outline: none;
    box-shadow: none;
    background-color: #444;
}

.comment-form-actions {
    display: block;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.comment-submit-btn {
    background-color: transparent;
    color: #aaa;
    border: none;
    border-radius: 6px;
    padding: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.comment-submit-btn:hover {
    color: #fff;
}

.comment-submit-btn:disabled {
    color: #555;
    cursor: not-allowed;
}

.comments-options {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-option {
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
}

.comments-option.active {
    color: #fff;
    font-weight: 600;
}

.comments-list {
    margin-top: 0;
    max-height: 800px;
    overflow-y: auto;
}

.comment-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    border-radius: 0;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background-color: #333;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    background-color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-user-info {
    flex: 1;
}

.comment-author-line {
    display: flex;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    margin-right: 10px;
}

.comment-author-badge {
    background-color: #444;
    color: #aaa;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-right: 10px;
}

.comment-timestamp {
    margin-left: 0;
    font-size: 13px;
    color: #aaa;
    font-style: normal;
}

.comment-content {
    padding: 0 0 0 55px;
    margin-bottom: 10px;
    line-height: 1.5;
    word-break: break-word;
    font-size: 14px;
}

.comment-actions {
    display: flex;
    flex-wrap: wrap;
    border-top: none;
    padding-top: 0;
    padding-left: 75px;
    margin-top: 5px;
}

.comment-action {
    display: flex;
    align-items: center;
    margin-right: 20px;
    font-size: 13px;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 0;
}

.comment-action:hover {
    color: #fff;
    background-color: transparent;
}

.comment-action i {
    margin-right: 6px;
    font-size: 14px;
}

.comment-action.active {
    color: #fff;
    background-color: transparent;
}

.comment-action.like.active i {
    color: #4287f5;
}

.comment-action.dislike.active i {
    color: #f54242;
}

.comment-delete {
    color: #f54242;
    margin-left: auto;
}

.comment-delete:hover {
    color: #ff6060;
    background-color: transparent;
}

/* Replies */
.comment-replies {
    margin-top: 10px;
    background-color: transparent;
    border-radius: 0;
    padding: 0 0 0 55px;
}

.reply-list {
    border-left: none;
    padding-left: 0;
}

.reply-item {
    background-color: transparent;
    margin-bottom: 10px;
    padding: 10px 0;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reply-form {
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: transparent;
    padding: 10px 0;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    position: relative;
}

.reply-form textarea {
    width: 100%;
    min-height: 36px;
    background-color: #333;
    border-radius: 20px;
    padding: 8px 15px;
    padding-right: 40px;
}

.reply-form form {
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.reply-form .comment-submit-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    background-color: transparent;
    color: #aaa;
    padding: 5px;
    font-size: 14px;
}

.reply-form .comment-submit-btn:hover {
    color: #fff;
}

.load-replies-btn {
    display: inline-block;
    margin: 5px 0;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

.load-replies-btn:hover {
    color: #fff;
    background-color: transparent;
    text-decoration: none;
}

.no-comments {
    text-align: center;
    padding: 30px 0;
    color: #aaa;
    font-size: 14px;
    font-style: italic;
    background-color: transparent;
    border-radius: 0;
}

.login-prompt {
    text-align: center;
    padding: 20px;
    background-color: transparent;
    border-radius: 0;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-prompt p {
    font-size: 14px;
    margin-bottom: 10px;
}

.login-prompt a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 15px;
    border: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    background-color: #444;
}

.login-prompt a:hover {
    background-color: #555;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Loading animation */
.comments-loading {
    text-align: center;
    padding: 20px 0;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-left-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.view-more-comments {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.view-more-btn {
    color: #aaa;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.view-more-btn:hover {
    color: #fff;
    background-color: #444;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .comments-section {
        padding: 0;
    }
    
    .comment-header {
        flex-wrap: nowrap;
    }
    
    .comment-user-info {
        flex: 1;
        min-width: 0;
    }
    
    .comment-timestamp {
        font-size: 12px;
    }
    
    .comment-actions {
        justify-content: flex-start;
    }
    
    .comment-action {
        margin-right: 15px;
        padding: 0;
        font-size: 12px;
    }
    
    .comment-action i {
        margin-right: 5px;
    }
    
    .comment-replies {
        padding-left: 40px;
    }
    
    .comment-content {
        padding-left: 55px;
    }
}

@media (max-width: 480px) {
    .comments-header {
        padding: 10px 15px;
    }
    
    .comment-form-container,
    .comment-item {
        padding: 10px 15px;
    }
    
    .comment-avatar {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
    
    .comment-content {
        padding-left: 45px;
    }
    
    .comment-actions {
        padding-left: 45px;
    }
    
    .comment-replies {
        padding-left: 30px;
    }
    
    .comment-action {
        font-size: 11px;
        margin-bottom: 0;
        margin-right: 12px;
    }
    
    .comment-action i {
        margin-right: 3px;
        font-size: 12px;
    }
    
    .reply-form .comment-submit-btn,
    .comment-submit-btn {
        padding: 5px 12px;
        font-size: 12px;
    }
}

.sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #333;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    width: 180px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
    margin-top: 5px;
}

.sort-dropdown.active {
    max-height: 180px;
}

.sort-option {
    padding: 10px 15px;
    color: #aaa;
    transition: all 0.2s ease;
    cursor: pointer;
}

.sort-option:hover {
    background-color: #444;
    color: #fff;
}

.sort-option.active {
    color: #fff;
    font-weight: 600;
}

/* Custom notification for comment actions */
.comment-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    background-color: #2a2a2a;
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    transform: translateY(100px);
    opacity: 0;
    max-width: 300px;
}

.comment-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.comment-notification i {
    margin-right: 10px;
    font-size: 18px;
}

.comment-notification.success i {
    color: #4CAF50;
}

.comment-notification.error i {
    color: #F44336;
}

.comment-notification-message {
    flex: 1;
    font-size: 14px;
}

.comment-notification-close {
    margin-left: 10px;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
}

.comment-notification-close:hover {
    color: #fff;
}

.comment-delete-confirm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.comment-delete-confirm.show {
    opacity: 1;
    visibility: visible;
}

.delete-confirm-box {
    background-color: #2a2a2a;
    border-radius: 6px;
    width: 90%;
    max-width: 400px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.delete-confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.delete-confirm-message {
    color: #ccc;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.delete-confirm-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.delete-confirm-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.delete-cancel-button {
    background-color: transparent;
    color: #aaa;
    border: 1px solid #444;
}

.delete-cancel-button:hover {
    background-color: #333;
    color: #fff;
}

.delete-confirm-button.delete {
    background-color: #F44336;
    color: #fff;
}

.delete-confirm-button.delete:hover {
    background-color: #D32F2F;
} 