/* Add these styles to your existing CSS */
.comment-options-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s ease;
    z-index: 1000;
    padding: 12px;
    box-sizing: border-box;
    border-top: 1px solid rgba(230, 236, 240, 0.7);
}

.comment-options-popup.popup-visible {
    bottom: 0;
}

.comment-popup-option {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s;
    position: relative;
}

.comment-popup-option:hover {
    background-color: #f7f7f7;
}

.comment-popup-option-icon {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-popup-option-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.comment-popup-option-text {
    font-size: 14px;
    font-weight: 500;
    color: #0f1419;
}

.comment-popup-cancel {
    margin-top: 6px;
    justify-content: center;
    background-color: #f7f7f7;
    font-weight: 600;
}

.comment-popup-cancel .comment-popup-option-text {
    color: #000;
}

/* Delete option specific styling */
.comment-popup-option[data-action="delete"] .comment-popup-option-text {
    color: #f91880;
}

/* Backdrop overlay */
.comment-options-backdrop,
.comment-report-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.comment-options-backdrop.visible,
.comment-report-backdrop.visible {
    opacity: 1;
    pointer-events: all;
}

/* Report popup styles - Updated with glass effect */
.comment-report-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.7); /* glass background */
    backdrop-filter: blur(6px); /* frosted blur */
    -webkit-backdrop-filter: blur(6px); /* Safari support */
    border-radius: 14px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    padding: 20px;
    width: 320px;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 236, 240, 0.7); /* subtle glass border */
}

.comment-report-popup.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.comment-report-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f1419;
}

.comment-report-content p {
    font-size: 13px;
    color: #536471;
    margin-bottom: 14px;
    line-height: 1.4;
}

.comment-report-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.comment-report-option {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-report-option:hover {
    background-color: #f7f7f7;
}

.comment-report-option input[type="radio"] {
    margin-right: 10px;
}

.comment-report-option span {
    font-size: 14px;
    color: #0f1419;
}

.comment-report-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-report-btn {
    padding: 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}

.comment-report-submit {
    background-color: #000; /* Changed from blue to black */
    color: white;
}

.comment-report-submit:hover {
    background-color: #333; /* Darker shade for hover */
}

.comment-report-submit:disabled {
    background-color: #cfd9de;
    cursor: not-allowed;
}

.comment-report-cancel {
    background-color: #eff3f4;
    color: #0f1419;
}

.comment-report-cancel:hover {
    background-color: #e7e7e8;
}

/* Report success notification - Updated styles */
.comment-report-success {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #f8f9fa;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 1003;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.comment-report-success.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.comment-report-success-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-report-success-content svg {
    width: 16px;
    height: 16px;
}

/* Desktop adjustment */
@media (min-width: 768px) {
    .comment-options-popup {
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 600px;
        border-radius: 12px 12px 0 0;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .comment-options-popup {
        background: rgba(0, 0, 0, 0.8); /* Dark glass effect */
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 -2px 15px rgba(255, 255, 255, 0.1);
    }
    
    .comment-popup-option {
        color: #e7e9ea;
    }
    
    .comment-popup-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .comment-popup-option-text {
        color: #e7e9ea;
    }
    
    .comment-popup-cancel {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .comment-popup-cancel .comment-popup-option-text {
        color: #e7e9ea;
    }
    
    .comment-popup-cancel:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* Delete option in dark mode */
    .comment-popup-option[data-action="delete"] .comment-popup-option-text {
        color: #f91880;
    }
    
    /* Report popup dark mode */
    .comment-report-popup {
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 15px rgba(255, 255, 255, 0.1);
    }
    
    .comment-report-content h3 {
        color: #e7e9ea;
    }
    
    .comment-report-content p {
        color: #71767b;
    }
    
    .comment-report-option {
        color: #e7e9ea;
    }
    
    .comment-report-option:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .comment-report-option span {
        color: #e7e9ea;
    }
    
    .comment-report-submit {
        background-color: #fff;
        color: #000;
    }
    
    .comment-report-submit:hover {
        background-color: #e6e6e6;
    }
    
    .comment-report-cancel {
        background-color: rgba(255, 255, 255, 0.1);
        color: #e7e9ea;
    }
    
    .comment-report-cancel:hover {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    /* Success message in dark mode */
    .comment-report-success {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    }
}
