/* Content Reporting Styles */
.content-report-container {
    margin-top: 2rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.report-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-button:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.report-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 250px;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background-color: #f9fafb;
}

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

.dropdown-back {
    color: #6b7280;
    font-weight: 500;
    border-bottom: 2px solid #e5e7eb !important;
}

.dropdown-back:hover {
    background-color: #f3f4f6 !important;
}

.category-icon {
    font-size: 1.1rem;
}

.report-message {
    margin-top: 0.5rem;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.report-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.report-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.report-already-submitted {
    color: #6b7280;
    font-size: 0.875rem;
    font-style: italic;
}

/* RTL Support */
[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .dropdown-item {
    text-align: right;
    flex-direction: row-reverse;
}

/* Animation */
.dropdown-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state */
.report-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.report-button.loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #d1d5db;
    border-top: 2px solid #374151;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

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

/* Mobile responsive */
@media (max-width: 640px) {
    .dropdown-menu {
        position: fixed;
        top: 50%;
        left: 1rem;
        right: 1rem;
        transform: translateY(-50%);
        min-width: auto;
        max-height: 70vh;
    }
    
    .content-report-container {
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    .report-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}