/* ============================================
   FEEDBACK BUTTON — NEON GLOW
   ============================================ */

.feedback-fab {
    position: fixed;
    bottom: 2rem;
    right: 6rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: none;
    background: var(--color-surface);
    color: var(--color-accent);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    box-shadow:
        0 0 10px rgba(255, 163, 163, 0.4),
        0 0 20px rgba(255, 163, 163, 0.2),
        0 0 40px rgba(255, 163, 163, 0.1);
    animation: neonPulse 2.5s ease-in-out infinite;
}

.feedback-fab:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 15px rgba(255, 163, 163, 0.6),
        0 0 30px rgba(255, 163, 163, 0.4),
        0 0 60px rgba(255, 163, 163, 0.2);
}

.feedback-fab:active {
    transform: scale(0.95);
}

.feedback-fab svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: var(--color-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(255, 163, 163, 0.4),
            0 0 20px rgba(255, 163, 163, 0.2),
            0 0 40px rgba(255, 163, 163, 0.1);
    }
    50% {
        box-shadow:
            0 0 15px rgba(255, 163, 163, 0.7),
            0 0 35px rgba(255, 163, 163, 0.4),
            0 0 70px rgba(255, 163, 163, 0.15);
    }
}

/* ============================================
   FEEDBACK MODAL
   ============================================ */

.feedback-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.feedback-overlay.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.feedback-modal {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    width: min(28rem, calc(100vw - 2rem));
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    transform: translateY(1rem) scale(0.97);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 30px rgba(255, 163, 163, 0.1),
        0 25px 50px rgba(0, 0, 0, 0.5);
}

.feedback-overlay.active .feedback-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Header */
.feedback-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.feedback-modal__title {
    font-family: var(--font-main);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin: 0;
    line-height: 1.3;
}

.feedback-modal__close {
    background: none;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
    flex-shrink: 0;
    margin-left: var(--spacing-md);
}

.feedback-modal__close:hover {
    color: var(--color-text);
}

/* Text */
.feedback-modal__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
}

/* Page info pill */
.feedback-modal__page {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin-bottom: var(--spacing-lg);
    max-width: 100%;
    overflow: hidden;
}

.feedback-modal__page-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Textarea */
.feedback-modal__textarea {
    width: 100%;
    min-height: 8rem;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    resize: vertical;
    transition: all var(--transition-fast);
    margin-bottom: var(--spacing-lg);
}

.feedback-modal__textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 163, 163, 0.1);
}

.feedback-modal__textarea::placeholder {
    color: var(--color-text-tertiary);
}

/* Submit button */
.feedback-modal__submit {
    width: 100%;
    padding: 0.75rem;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-bg);
    background: var(--color-accent);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.feedback-modal__submit:hover:not(:disabled) {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.feedback-modal__submit:active:not(:disabled) {
    transform: translateY(0);
}

.feedback-modal__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* States */
.feedback-modal__status {
    text-align: center;
    margin-top: var(--spacing-md);
    font-size: 0.85rem;
    min-height: 1.2em;
}

.feedback-modal__status--success {
    color: #7deb7d;
}

.feedback-modal__status--error {
    color: #ff6b6b;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 48rem) {
    .feedback-fab {
        bottom: 1.25rem;
        right: 5rem;
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .feedback-fab svg {
        width: 1.25rem;
        height: 1.25rem;
    }

    .feedback-modal {
        padding: var(--spacing-lg);
    }
}
