/* 
 * ============================================================
 *  PromedioPro — Native Feedback Styles
 *  feedback.css
 * ============================================================
 */

/* Container Section */
.feedback-native-section {
    padding: 5rem 0;
    margin: 2rem 0;
}

.feedback-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

/* Form Styles */
#native-feedback-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.form-group label span {
    color: var(--accent);
}

/* Star Rating System */
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

[data-theme="light"] .star-rating label {
    color: rgba(0, 0, 0, 0.1);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #fbbf24; /* Amber star */
    transform: scale(1.1);
}

/* Inputs & Textareas */
#native-feedback-form textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

[data-theme="light"] #native-feedback-form textarea {
    background: #ffffff;
    color: var(--text-main);
    border-color: #e2e8f0;
}

#native-feedback-form textarea:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    outline: none;
}

[data-theme="light"] #native-feedback-form textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Submit Button */
.btn-submit-feedback {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
}

.btn-submit-feedback:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.btn-submit-feedback svg {
    transition: transform 0.3s ease;
}

.btn-submit-feedback:hover svg {
    transform: translate(3px, -3px);
}

/* Validation States */
.btn-submit-feedback.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
    transform: scale(0.98);
    pointer-events: none;
}

.btn-submit-feedback.activated {
    animation: btnPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes btnPop {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Success Message */
.feedback-success-msg {
    padding: 2rem 0;
    animation: fadeInScale 0.5s ease-out forwards;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: white;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Floating Scroll Button (Keep original logic) */
.feedback-scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Evitamos 'transition: all' para que no pelee con la animación infinite */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, box-shadow 0.3s ease;
    animation: smoothBounce 4s ease-in-out infinite;
    will-change: transform;
}

.feedback-scroll-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
    animation-play-state: paused; /* Pausar rebote al pasar el mouse */
}

.btn-arrow {
    font-size: 1.2rem;
}

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

/* Ajustes para móviles */
@media (max-width: 768px) {
    .feedback-native-section {
        padding: 2.5rem 0;
        margin: 1rem 0;
    }

    .feedback-card {
        padding: 1.25rem 1rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        gap: 0.5rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .star-rating label {
        font-size: 1.75rem;
    }
    
    #native-feedback-form textarea {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .btn-submit-feedback {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }
    
    .feedback-scroll-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 14px;
        font-size: 0.75rem;
        /* Rebote más sutil en móvil para evitar sensación de "salto" */
        animation: smoothBounceMobile 4s ease-in-out infinite;
    }
    
    .btn-arrow {
        font-size: 1rem;
    }
}

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

/* End of feedback.css */
