/* ============================================
   UX Feedback Modal Styles
   ============================================
   Brugeroplevelse feedback popup
   Author: Fuglia Development Team
   Date: 2026-06-02
*/

/* Modal Overlay */
.ux-feedback-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.ux-feedback-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.ux-feedback-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ux-feedback-overlay.active .ux-feedback-modal {
    transform: scale(1);
    opacity: 1;
}

/* Close Button */
.ux-feedback-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.ux-feedback-close:hover {
    background-color: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

/* Modal Header */
.ux-feedback-header {
    background: linear-gradient(135deg, var(--primary-green, #447904) 0%, #2d5a03 100%);
    color: white;
    padding: 2rem 2rem 1.5rem;
    border-radius: 16px 16px 0 0;
    text-align: center;
    position: relative;
}

.ux-feedback-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
}

.ux-feedback-header p {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Modal Body */
.ux-feedback-body {
    padding: 2rem;
}

/* User Info Section */
.ux-feedback-user-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-green, #447904);
}

.ux-feedback-user-info p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: #333;
}

.ux-feedback-user-info strong {
    color: var(--primary-green, #447904);
    margin-right: 0.5rem;
}

/* Email Toggle */
.ux-feedback-email-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #666;
}

.ux-feedback-email-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Star Rating Container */
.ux-feedback-rating {
    margin: 1.5rem 0;
    text-align: center;
}

.ux-feedback-rating-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 1rem;
}

/* Stars Container */
.ux-feedback-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Individual Star */
.ux-feedback-star {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.ux-feedback-star:hover {
    transform: scale(1.2);
}

/* Star States */
.ux-feedback-star.poor {
    color: #dc3545;
}

.ux-feedback-star.average {
    color: #ffc107;
}

.ux-feedback-star.good {
    color: #28a745;
}

.ux-feedback-star.excellent {
    color: var(--primary-green, #447904);
}

/* Hover Effect */
.ux-feedback-stars:hover .ux-feedback-star {
    color: #ddd;
}

.ux-feedback-star.hover {
    color: #ffc107;
}

/* Rating Text */
.ux-feedback-rating-text {
    font-size: 0.95rem;
    color: #666;
    min-height: 24px;
    font-weight: 500;
}

.ux-feedback-rating-text.poor {
    color: #dc3545;
}

.ux-feedback-rating-text.average {
    color: #ffc107;
}

.ux-feedback-rating-text.good {
    color: #28a745;
}

.ux-feedback-rating-text.excellent {
    color: var(--primary-green, #447904);
}

/* Action Buttons */
.ux-feedback-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.ux-feedback-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ux-feedback-btn-primary {
    background: linear-gradient(135deg, var(--primary-green, #447904) 0%, #2d5a03 100%);
    color: white;
}

.ux-feedback-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 121, 4, 0.4);
}

.ux-feedback-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.ux-feedback-btn-secondary {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
}

.ux-feedback-btn-secondary:hover {
    background: #e0e0e0;
}

/* Thank You Message */
.ux-feedback-thank-you {
    display: none;
    text-align: center;
    padding: 2rem;
}

.ux-feedback-thank-you.active {
    display: block;
}

.ux-feedback-thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.ux-feedback-thank-you h3 {
    color: var(--primary-green, #447904);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.ux-feedback-thank-you p {
    color: #666;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .ux-feedback-modal {
        max-width: 95%;
        width: 95%;
    }

    .ux-feedback-header h2 {
        font-size: 1.25rem;
    }

    .ux-feedback-body {
        padding: 1.5rem;
    }

    .ux-feedback-stars {
        gap: 0.25rem;
    }

    .ux-feedback-star {
        font-size: 2rem;
    }

    .ux-feedback-actions {
        flex-direction: column;
    }

    .ux-feedback-btn {
        width: 100%;
    }
}

/* Animation Keyframes */
@keyframes uxFeedbackFadeIn {
    from {
        opacity: 0;
        transform: scale(0.7);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes uxFeedbackFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.7);
    }
}
