/**
 * Image Reporting System Styles
 */

/* Floating Report Button */
.report-image-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.report-image-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.report-image-btn:active {
    transform: scale(0.95);
}

/* Report Modal */
.report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.report-modal.show {
    display: flex;
    opacity: 1;
}

.report-modal-content {
    background: #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #3a3a3a;
}

.report-modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.report-modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.report-modal-close:hover {
    background: #3a3a3a;
    color: #fff;
}

.report-modal-body {
    padding: 24px;
}

.report-modal-body p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #e0e0e0;
}

/* Form Styles */
.report-form-group {
    margin-bottom: 20px;
}

.report-form-group label {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #e0e0e0;
}

.report-form-group label:hover {
    background: #252525;
    border-color: #007bff;
}

.report-form-group label:has(input:checked) {
    background: #0056b3;
    border-color: #007bff;
    color: white;
}

.report-form-group input[type="radio"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

.report-form-group textarea {
    width: 100%;
    padding: 12px;
    background: #1a1a1a;
    border: 2px solid #3a3a3a;
    border-radius: 8px;
    color: #e0e0e0;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.report-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.report-form-group textarea::placeholder {
    color: #666;
}

.report-form-group small {
    display: block;
    margin-top: 6px;
    color: #888;
    font-size: 12px;
}

.report-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #3a3a3a;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #4a4a4a;
}

/* Toast Notification */
.report-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 400px;
}

.report-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.report-toast.error {
    background: #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .report-modal-content {
        width: 95%;
        margin: 20px;
    }

    .report-modal-body {
        padding: 16px;
    }

    .report-image-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        bottom: 8px;
        right: 8px;
    }

    .report-form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* Accessibility */
.report-image-btn:focus-visible,
.report-modal-close:focus-visible,
.btn:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.report-form-group label:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}
