/* ============================================
   BINUP - Feedback Widget Styles
   ============================================ */

/* Floating Action Button */
.feedback-fab {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0px var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9990;
    transition: all 0.2s ease;
    animation: fabBounce 2s ease-in-out infinite;
    border-radius: 50%;
}

.feedback-fab:hover {
    transform: translate(4px, 4px);
    box-shadow: none;
    animation: none;
}

.feedback-fab-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.feedback-fab-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    animation: fabPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes fabPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes fabBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Modal Overlay */
.feedback-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Modal */
.feedback-modal {
    background: var(--white);
    border: 3px solid var(--black);
    box-shadow: 8px 8px 0px var(--black);
    width: 92%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 35px 30px;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

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

.feedback-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    transition: 0.2s;
    line-height: 1;
    padding: 5px;
}

.feedback-close:hover {
    color: var(--black);
    transform: rotate(90deg);
}

/* Header */
.feedback-header {
    text-align: center;
    margin-bottom: 25px;
}

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

.feedback-header h3 {
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.feedback-header p {
    font-size: 0.85rem;
    color: var(--gray);
}

/* Star Rating */
.feedback-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
}

.fb-star {
    font-size: 2.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.fb-star:hover,
.fb-star.hover {
    color: #fbbf24;
    transform: scale(1.2);
}

.fb-star.active {
    color: var(--accent);
    transform: scale(1.1);
}

.feedback-rating-label {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    min-height: 24px;
    transition: all 0.2s ease;
}

/* Textarea */
.feedback-textarea-wrap {
    margin-bottom: 15px;
}

.feedback-textarea-wrap textarea {
    width: 100%;
    padding: 14px;
    border: 3px solid var(--black);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 90px;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.feedback-textarea-wrap textarea:focus {
    box-shadow: 4px 4px 0px var(--secondary);
    transform: translate(-2px, -2px);
    outline: none;
}

/* Quick Tags */
.feedback-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.fb-tag {
    padding: 6px 14px;
    border: 2px solid var(--black);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--white);
    transition: all 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.fb-tag:hover {
    background: var(--light-gray);
}

.fb-tag.selected {
    background: var(--primary);
    box-shadow: 2px 2px 0px var(--black);
}

/* Submit Button */
.feedback-submit {
    background: var(--accent);
    font-size: 1rem;
}

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

/* Success State */
.feedback-success {
    text-align: center;
    padding: 20px 0;
}

.feedback-success-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: successPop 0.5s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.feedback-success h3 {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.feedback-success p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .feedback-fab {
        bottom: 22px;
        left: 22px;
        width: 52px;
        height: 52px;
    }
}
@media (max-width: 480px) {
    .feedback-fab {
        bottom: 16px;
        left: 16px;
        width: 48px;
        height: 48px;
        transition: bottom 0.3s ease;
    }

    .feedback-fab-icon {
        font-size: 1.3rem;
    }

    .feedback-modal {
        padding: 22px 16px;
        width: 95%;
    }

    .feedback-header h3 {
        font-size: 1.15rem;
    }

    .feedback-header p {
        font-size: 0.8rem;
    }

    .fb-star {
        font-size: 1.9rem;
    }

    .fb-tag {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .feedback-rating-label {
        font-size: 0.82rem;
    }
}


