/* ===================================/**
 * Termômetro de Sentimentos - CSS
 * Estilos modernos e responsivos
 */

/* Overlay de fundo */
#sentiment-thermometer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

/* Modal principal */
#sentiment-thermometer-modal {
    background: white;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

/* Header com fundo verde e texto branco */
.thermometer-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 32px;
    text-align: center;
    border-radius: 24px 24px 0 0;
}

.thermometer-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.thermometer-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    color: white;
}

/* Corpo do modal */
.thermometer-body {
    padding: 32px;
}

/* Cada seção de termômetro */
.thermometer-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 2px solid #e9ecef;
}

.thermometer-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.thermometer-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Container dos emojis */
.emoji-options {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Cada opção de emoji */
.emoji-option {
    flex: 1;
    min-width: 80px;
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 16px;
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.emoji-option:hover {
    transform: translateY(-4px) scale(1.05);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.emoji-option.selected {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-color: #10b981;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.4);
}

.emoji-option .emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.emoji-option:hover .emoji,
.emoji-option.selected .emoji {
    filter: grayscale(0);
    animation: emojiPulse 0.6s ease-in-out;
}

.emoji-option .label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    transition: color 0.3s ease;
}

.emoji-option.selected .label {
    color: #ffffff;
}

/* Tooltip (legenda ao passar o mouse) */
.emoji-option .tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #2d3748;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.emoji-option .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2d3748;
}

.emoji-option:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Botão de enviar */
.thermometer-submit {
    margin-top: 32px;
    text-align: center;
}

.thermometer-submit button {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
}

.thermometer-submit button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

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

/* Nota informativa */
.thermometer-note {
    margin-top: 24px;
    padding: 16px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    font-size: 13px;
    color: #856404;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(30px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes emojiPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    #sentiment-thermometer-modal {
        width: 95%;
        max-height: 95vh;
    }

    .thermometer-header {
        padding: 24px 20px;
    }

    .thermometer-header h2 {
        font-size: 22px;
    }

    .thermometer-body {
        padding: 24px 20px;
    }

    .emoji-options {
        gap: 8px;
    }

    .emoji-option {
        min-width: 60px;
        padding: 12px 6px;
    }

    .emoji-option .emoji {
        font-size: 36px;
    }

    .emoji-option .label {
        font-size: 11px;
    }

    .thermometer-submit button {
        padding: 14px 36px;
        font-size: 15px;
    }
}

/* Redução de movimento para acessibilidade */
@media (prefers-reduced-motion: reduce) {

    #sentiment-thermometer-overlay,
    #sentiment-thermometer-modal,
    .emoji-option,
    .emoji-option .emoji,
    .emoji-option .tooltip {
        animation: none !important;
        transition: none !important;
    }
}