/**
 * 🌟 EMOCARD - Feedback Widget Styles
 * Design : Pillule dorée premium avec animations smooth
 * Inspiré de la pillule saisonnière
 */

/* ===========================
   CONTAINER & LAYOUT
   =========================== */

.feedback-widget-container {
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

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

.feedback-widget {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
    border: 2px solid #d4af37;
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 8px 32px rgba(212, 175, 55, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(212, 175, 55, 0.08) 0%,
        transparent 70%
    );
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10%, 10%);
    }
}

/* ===========================
   ÉTAPE 1 : SMILEY SELECTOR
   =========================== */

.feedback-step-1 {
    text-align: center;
    position: relative;
    z-index: 1;
}

.feedback-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.feedback-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feedback-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-weight: 400;
}

.smiley-selector {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.smiley-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 3px solid #ecf0f1;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    width: 110px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.smiley-option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b8 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smiley-option:hover {
    transform: scale(1.1) rotate(3deg);
    border-color: #d4af37;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.smiley-option:hover::before {
    opacity: 0.1;
}

.smiley-option:active {
    transform: scale(1.05) rotate(0deg);
}

.smiley-option.selected {
    transform: scale(1.15);
    border-color: #d4af37;
    border-width: 4px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff 100%);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.4);
    animation: bounce 0.5s ease-out;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1.15) translateY(0);
    }
    50% {
        transform: scale(1.2) translateY(-10px);
    }
}

.smiley-emoji {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.smiley-option:hover .smiley-emoji {
    transform: scale(1.2);
}

.smiley-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #34495e;
    position: relative;
    z-index: 1;
}

/* ===========================
   ÉTAPE 2 : FORMULAIRE
   =========================== */

.feedback-step-2 {
    position: relative;
    z-index: 1;
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feedback-back-btn {
    color: #7f8c8d;
    font-size: 0.95rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.feedback-back-btn:hover {
    color: #d4af37;
    transform: translateX(-5px);
}

.feedback-mood-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    border: 2px solid #ecf0f1;
}

.selected-emoji {
    font-size: 3rem;
}

.mood-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: #d4af37;
}

.feedback-title-2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feedback-textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid #ecf0f1;
    border-radius: 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: #2c3e50;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: white;
}

.feedback-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.feedback-textarea::placeholder {
    color: #bdc3c7;
}

.feedback-char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 600;
}

.feedback-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.btn-skip {
    background: transparent;
    border: 2px solid #ecf0f1;
    color: #7f8c8d;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip:hover {
    border-color: #bdc3c7;
    color: #34495e;
    transform: translateY(-2px);
}

.btn-submit {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b8 50%, #d4af37 100%);
    background-size: 200% 100%;
    border: none;
    color: #2c3e50;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Inter', 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-submit:hover {
    background-position: 100% 0;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

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

/* ===========================
   ÉTAPE 3 : CONFIRMATION
   =========================== */

.feedback-step-3 {
    text-align: center;
    position: relative;
    z-index: 1;
    animation: zoomIn 0.5s ease-out;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feedback-success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: sparkle 1s ease-out;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(10deg);
    }
    75% {
        transform: scale(1.2) rotate(-10deg);
    }
}

.feedback-success-title {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 1rem;
}

.feedback-success-message {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
}

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

@media (max-width: 768px) {
    .feedback-widget-container {
        padding: 0 1rem;
        margin: 3rem auto;
    }
    
    .feedback-widget {
        padding: 2rem 1.5rem;
    }
    
    .smiley-selector {
        gap: 1rem;
    }
    
    .smiley-option {
        width: 90px;
        padding: 1rem 0.75rem;
    }
    
    .smiley-emoji {
        font-size: 2.5rem;
    }
    
    .feedback-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-skip,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .feedback-title {
        font-size: 1.3rem;
    }
    
    .feedback-subtitle {
        font-size: 0.95rem;
    }
    
    .smiley-option {
        width: 70px;
        padding: 0.75rem 0.5rem;
    }
    
    .smiley-emoji {
        font-size: 2rem;
    }
    
    .smiley-label {
        font-size: 0.8rem;
    }
}
