/**
 * feedback-modal.css
 * Styling für das Feedback Modal System
 * VERSION: 1.0.0
 */

/* ============================================================================
   MODAL CONTAINER & OVERLAY
   ============================================================================ */

.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: feedbackModalFadeIn 0.3s ease-out;
}

@keyframes feedbackModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* ============================================================================
   MODAL CONTAINER
   ============================================================================ */

.feedback-modal-container {
    position: relative;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    padding: 3rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: feedbackModalSlideUp 0.3s ease-out;
    text-align: center;
}

@keyframes feedbackModalSlideUp {
    from {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================================================================
   MODAL ICON
   ============================================================================ */

.feedback-modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    animation: iconPulse 0.6s ease-out;
}

@keyframes iconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success Icon */
.modal-success .feedback-modal-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.modal-success .feedback-modal-icon svg {
    color: #10b981;
}

/* Error Icon */
.modal-error .feedback-modal-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.modal-error .feedback-modal-icon svg {
    color: #ef4444;
}

/* Info Icon */
.modal-info .feedback-modal-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.modal-info .feedback-modal-icon svg {
    color: #3b82f6;
}

/* ============================================================================
   MODAL CONTENT
   ============================================================================ */

.feedback-modal-content {
    width: 100%;
}

.feedback-modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
}

.feedback-modal-content p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* ============================================================================
   MODAL DETAILS
   ============================================================================ */

.feedback-modal-details {
    width: 100%;
    margin-top: 1rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    text-align: left;
}

.feedback-modal-details h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-modal-details p {
    font-size: 0.938rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feedback-modal-details p:last-child {
    margin-bottom: 0;
}

.feedback-modal-details ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.feedback-modal-details li {
    font-size: 0.938rem;
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.feedback-modal-details li:last-child {
    margin-bottom: 0;
}

/* Success Details */
.success-details .info-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 0.5rem;
}

.success-details .info-box strong {
    color: #92400e;
    font-weight: 600;
}

.success-details .info-box {
    color: #78350f;
    font-size: 0.875rem;
}

/* Error Details */
.error-details ul {
    margin-top: 0.75rem;
}

/* ============================================================================
   MODAL ACTIONS
   ============================================================================ */

.feedback-modal-actions {
    width: 100%;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.feedback-modal-actions .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Success Button */
.btn-success {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
}

/* ============================================================================
   BORDER COLORS
   ============================================================================ */

.modal-success {
    border-top: 4px solid #10b981;
}

.modal-error {
    border-top: 4px solid #ef4444;
}

.modal-info {
    border-top: 4px solid #3b82f6;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 640px) {
    .feedback-modal {
        padding: 1rem;
    }
    
    .feedback-modal-container {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .feedback-modal-icon {
        width: 64px;
        height: 64px;
    }
    
    .feedback-modal-icon svg {
        width: 48px;
        height: 48px;
    }
    
    .feedback-modal-content h2 {
        font-size: 1.5rem;
    }
    
    .feedback-modal-content p {
        font-size: 1rem;
    }
    
    .feedback-modal-details {
        padding: 1rem;
    }
    
    .feedback-modal-actions {
        flex-direction: column;
    }
    
    .feedback-modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .feedback-modal-container {
        border-radius: 1rem;
    }
    
    .feedback-modal-content h2 {
        font-size: 1.375rem;
    }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

/* Reduced motion für Nutzer mit Bewegungsempfindlichkeit */
@media (prefers-reduced-motion: reduce) {
    .feedback-modal,
    .feedback-modal-container,
    .feedback-modal-icon {
        animation: none;
    }
    
    * {
        transition: none !important;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.feedback-modal-actions .btn:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* ============================================================================
   LOADING STATE (für zukünftige Verwendung)
   ============================================================================ */

.feedback-modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.feedback-modal-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #1e40af;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}