/* ============================================================================
   FORUM MODERATION STYLES
   ============================================================================ */

/* Report Button */
.btn-report {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
}

.btn-report:hover {
    background: #c82333;
}

.btn-report-small {
    padding: 4px 8px;
    font-size: 11px;
}

/* Report Modal */
.report-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s;
}

.report-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideDown 0.3s;
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #996633;
}

.report-modal-header h3 {
    margin: 0;
    color: #996633;
}

.report-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.report-close:hover {
    color: #000;
}

.report-form-group {
    margin-bottom: 20px;
}

.report-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.report-form-group select,
.report-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.report-form-group select:focus,
.report-form-group textarea:focus {
    outline: none;
    border-color: #996633;
    box-shadow: 0 0 5px rgba(153, 102, 51, 0.3);
}

.report-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.report-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.btn-submit-report {
    background: #996633;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-submit-report:hover {
    background: #7a5228;
}

.btn-cancel-report {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-cancel-report:hover {
    background: #5a6268;
}

/* Moderation Panel Styles */
.moderation-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mod-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.mod-stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.mod-stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #996633;
    margin: 10px 0;
}

.mod-stat-label {
    color: #666;
    font-size: 14px;
}

.mod-reports-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.mod-report-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

.mod-report-item:hover {
    background: #f8f9fa;
}

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

.mod-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mod-report-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.mod-report-type.tema {
    background: #007bff;
    color: white;
}

.mod-report-type.respuesta {
    background: #28a745;
    color: white;
}

.mod-report-reason {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    background: #ffc107;
    color: #333;
    margin-left: 10px;
}

.mod-report-content {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #996633;
    border-radius: 4px;
}

.mod-report-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.mod-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: all 0.3s;
}

.mod-action-approve {
    background: #28a745;
    color: white;
}

.mod-action-approve:hover {
    background: #218838;
}

.mod-action-delete {
    background: #dc3545;
    color: white;
}

.mod-action-delete:hover {
    background: #c82333;
}

.mod-action-review {
    background: #ffc107;
    color: #333;
}

.mod-action-review:hover {
    background: #e0a800;
}

/* AI Analysis Badge */
.ai-analysis {
    background: #e8f4fd;
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.ai-analysis-header {
    font-weight: bold;
    color: #0066cc;
    margin-bottom: 10px;
}

.ai-score {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 10px;
    margin-bottom: 5px;
}

.ai-score.low {
    background: #d4edda;
    color: #155724;
}

.ai-score.medium {
    background: #fff3cd;
    color: #856404;
}

.ai-score.high {
    background: #f8d7da;
    color: #721c24;
}

.ai-recommendation {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    font-size: 13px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .report-modal-content {
        width: 95%;
        margin: 20% auto;
        padding: 20px;
    }
    
    .mod-stats {
        grid-template-columns: 1fr;
    }
    
    .mod-report-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .mod-report-actions {
        flex-wrap: wrap;
    }
}
