/**
 * 🚨 REPORT MODAL - Styles pour le système de signalement
 */

/* === OVERLAY === */
.report-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.85) !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto !important;
}

.report-modal.active {
    visibility: visible;
    opacity: 1;
}

/* === CONTAINER === */
.report-modal-content {
    width: 100%;
    max-width: 800px;
    max-height: calc(90vh) !important;
    overflow-y: auto !important;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative !important;
    flex-shrink: 0;
}

.report-modal.active .report-modal-content {
    transform: scale(1);
}

/* === HEADER === */
.report-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.report-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: var(--kovelee-dark, #1a1a1a);
}

.report-user-name {
    font-size: 16px;
    color: var(--kovelee-soft-gray, #666);
    margin: 0;
}

/* === CLOSE BUTTON === */
.report-modal .report-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    font-size: 32px;
    color: var(--kovelee-soft-gray, #999);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.report-modal .report-modal-close:hover {
    background: var(--kovelee-light-gray, #f0f0f0);
    color: var(--kovelee-dark, #333);
    transform: rotate(90deg);
}

/* === REASONS SECTION === */
.report-reasons-section {
    margin-bottom: 25px;
}

.report-label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--kovelee-dark, #1a1a1a);
}

.report-reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.report-reason-card {
    position: relative;
    padding: 20px 12px;
    border: 2px solid var(--kovelee-light-gray, #e0e0e0);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.report-reason-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.report-reason-card.selected {
    border-color: var(--kovelee-red, #ff6b6b);
    background: var(--kovelee-red-light, #fff5f5);
}

.report-reason-card.severity-critical.selected {
    background: #fff0f0;
    border-color: #dc3545;
}

.report-reason-card.severity-high.selected {
    border-color: #ff6b6b;
}

.report-reason-card.severity-medium.selected {
    border-color: #ffa94d;
}

.reason-emoji {
    font-size: 32px;
    margin-bottom: 8px;
}

.reason-label {
    font-size: 13px;
    color: var(--kovelee-dark, #1a1a1a);
    line-height: 1.3;
}

.reason-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--kovelee-red, #ff6b6b);
    color: white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.report-reason-card.selected .reason-check {
    display: flex;
}

/* === DETAILS SECTION === */
.report-details-section {
    margin-bottom: 25px;
}

.report-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--kovelee-light-gray, #e0e0e0);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.report-textarea:focus {
    outline: none;
    border-color: var(--kovelee-red, #ff6b6b);
}

.report-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--kovelee-soft-gray, #999);
    margin-top: 5px;
}

/* === PROCESS SECTION === */
.report-process-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

.report-process-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--kovelee-dark, #1a1a1a);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-process-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.step-icon {
    font-size: 18px;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

.step-text {
    flex: 1;
}

.step-text strong {
    display: block;
    font-size: 13px;
    color: var(--kovelee-dark, #1a1a1a);
    margin-bottom: 2px;
}

.step-text small {
    display: block;
    font-size: 11px;
    color: var(--kovelee-soft-gray, #666);
    line-height: 1.3;
}

/* === RULES SECTION === */
.report-rules-section {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f9f3ff 0%, #f0e9ff 100%);
    border-radius: 8px;
    border-left: 4px solid #a855f7;
}

.report-rules-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--kovelee-dark, #1a1a1a);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.report-rules-list li {
    font-size: 12px;
    color: var(--kovelee-dark, #1a1a1a);
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 5px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.report-rules-list li:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(2px);
}

/* === WARNING === */
.report-warning {
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 25px;
    color: #333;
}

.report-warning strong {
    display: block;
    margin-bottom: 5px;
}

/* === FOOTER === */
.report-modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--kovelee-light-gray, #e0e0e0);
}

.report-modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-modal-footer .btn-cancel {
    background: var(--kovelee-light-gray, #f0f0f0);
    color: var(--kovelee-dark, #333);
}

.report-modal-footer .btn-cancel:hover {
    background: var(--kovelee-soft-gray, #e0e0e0);
}

.report-modal-footer .btn-submit {
    background: var(--kovelee-red, #ff6b6b);
    color: white;
}

.report-modal-footer .btn-submit:hover:not(:disabled) {
    background: var(--kovelee-red-dark, #ff5252);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.report-modal-footer .btn-submit:disabled {
    background: var(--kovelee-light-gray, #ccc);
    cursor: not-allowed;
    opacity: 0.6;
}

/* État "déjà signalé" */
.report-modal-footer .btn-submit.already-reported {
    background: var(--kovelee-light-gray, #e0e0e0);
    color: var(--kovelee-text-secondary, #888);
    cursor: not-allowed;
    opacity: 0.7;
    border-color: var(--kovelee-light-gray, #ccc);
}

.report-modal-footer .btn-submit.already-reported:hover {
    background: var(--kovelee-light-gray, #e0e0e0);
    box-shadow: none;
    transform: none;
}

.report-modal-footer .btn-submit.already-reported::after {
    content: attr(title);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .report-modal {
        padding: 1rem;
    }

    .report-modal-content {
        padding: 1.5rem;
    }

    .report-reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-process-steps {
        grid-template-columns: 1fr;
    }

    .report-rules-list {
        grid-template-columns: 1fr;
    }

    .report-modal-footer {
        flex-direction: column;
    }

    .report-modal-footer button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .report-modal {
        padding: 0.5rem;
    }

    .report-modal-content {
        padding: 1rem;
    }

    .report-reasons-grid {
        grid-template-columns: 1fr;
    }

    .report-process-steps {
        grid-template-columns: 1fr;
    }

    .report-rules-list {
        grid-template-columns: 1fr;
    }

    .report-modal-header h2 {
        font-size: 18px;
    }
}
