/**
 * UX Feedback Styles
 */

/* Section Wrapper - positions feedback below sections */
.ux-feedback-section-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(180deg, rgba(15, 15, 35, 0.8) 0%, rgba(15, 15, 35, 1) 100%);
}

/* Feedback Buttons Container */
.ux-feedback-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
    padding: 15px 0;
}

.ux-feedback-buttons--inline {
    display: inline-flex;
    width: auto;
    margin-left: 10px;
    margin-top: 0;
    padding: 0;
}

.ux-feedback-buttons--corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: auto;
    margin-top: 0;
    padding: 0;
}

.ux-feedback-buttons--bottom {
    display: flex;
    width: 100%;
    margin-top: 25px;
    padding: 20px 0;
    justify-content: center;
    clear: both;
}

/* Feedback Buttons */
.ux-feedback-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ux-feedback-btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: scale(1.1);
}

.ux-feedback-btn--up:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
    color: #22c55e;
}

.ux-feedback-btn--down:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
}

.ux-feedback-btn.submitted {
    pointer-events: none;
}

.ux-feedback-btn--up.submitted {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    color: #22c55e;
}

.ux-feedback-btn--down.submitted {
    background: rgba(239, 68, 68, 0.3);
    border-color: #ef4444;
    color: #ef4444;
}

.ux-feedback-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: currentColor;
}

/* Dark theme - Force white on all dark backgrounds */
.site-main .ux-feedback-btn,
.pricing-page .ux-feedback-btn,
.fp-hero .ux-feedback-btn,
.fp-section .ux-feedback-btn,
.agent-sidebar .ux-feedback-btn,
.single-agent .ux-feedback-btn {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

.site-main .ux-feedback-btn:hover,
.pricing-page .ux-feedback-btn:hover,
.fp-hero .ux-feedback-btn:hover,
.fp-section .ux-feedback-btn:hover,
.agent-sidebar .ux-feedback-btn:hover,
.single-agent .ux-feedback-btn:hover {
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #ffffff !important;
}

/* Feedback Modal */
.ux-feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ux-feedback-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.ux-feedback-modal__content {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    padding: 30px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ux-feedback-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ux-feedback-modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.ux-feedback-modal__header {
    text-align: center;
    margin-bottom: 25px;
}

.ux-feedback-modal__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
}

.ux-feedback-modal__header h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.ux-feedback-modal__header p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.95rem;
}

.ux-feedback-modal__context {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.ux-feedback-modal__context .context-item {
    display: flex;
    gap: 10px;
    padding: 4px 0;
}

.ux-feedback-modal__context .context-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    min-width: 60px;
}

.ux-feedback-modal__context .context-value {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
}

.ux-feedback-modal__field {
    margin-bottom: 20px;
}

.ux-feedback-modal__field label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ux-feedback-modal__field .optional {
    color: rgba(255, 255, 255, 0.4);
    font-weight: normal;
}

.ux-feedback-modal__field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.ux-feedback-modal__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.ux-feedback-modal__field textarea:focus {
    outline: none;
    border-color: #6366f1;
}

.ux-feedback-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.ux-feedback-modal__actions button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ux-feedback-modal__actions .btn-cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.ux-feedback-modal__actions .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.ux-feedback-modal__actions .btn-submit {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
}

.ux-feedback-modal__actions .btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.ux-feedback-modal__actions .btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ux-feedback-modal__error {
    margin: 12px 0 0;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5;
    font-size: 0.85rem;
    text-align: center;
}

.ux-feedback-modal__privacy {
    margin: 20px 0 0;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ux-feedback-modal__privacy .privacy-icon {
    font-size: 1rem;
}

/* Success State */
.ux-feedback-modal__success {
    text-align: center;
    padding: 30px 0;
}

.ux-feedback-modal__success .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.ux-feedback-modal__success h4 {
    color: #fff;
    font-size: 1.3rem;
    margin: 0 0 10px;
}

.ux-feedback-modal__success p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 480px) {
    .ux-feedback-modal__content {
        padding: 20px;
    }
    
    .ux-feedback-modal__actions {
        flex-direction: column;
    }
    
    .ux-feedback-modal__actions button {
        width: 100%;
    }
}

/* Toast notification */
.ux-feedback-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ux-feedback-toast.hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.ux-feedback-toast__icon {
    font-size: 1.5rem;
}

.ux-feedback-toast__message {
    color: #fff;
    font-size: 0.95rem;
}
