/* MAPA DA FÉ V2 - CSS COMPLETO */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial; background: #E5DDD5; }

.whatsapp-header {
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
    color: white;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row-reverse;
}

.contact-details h3 {
    font-size: 16px;
    margin: 0;
    color: white;
}

.contact-details p {
    font-size: 12px;
    color: #4FC3F7;
    margin: 0;
    margin-top: 2px;
}

.profile-pic {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-image: url('https://i.imgur.com/sc8Vrx4.png');
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.action-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
}

.chat-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-image: url('https://i.imgur.com/qF4gEHD.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    scroll-behavior: smooth;
    margin-top: 60px;
    padding-top: 20px;
}

.message {
    margin-bottom: 8px;
}

.message-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 8px 12px;
    border-radius: 6px;
    max-width: 70%;
    position: relative;
    margin-bottom: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.message-text {
    font-size: 18px;
    line-height: 1.3;
    color: #333;
    margin-bottom: 8px;
    white-space: pre-line;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message-time {
    font-size: 16px;
    color: #999;
    text-align: right;
}

/* MENSAGEM DO USUÁRIO (DIREITA) */
.user-message {
    display: flex !important;
    justify-content: flex-end !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    clear: both !important;
}

.user-message-content {
    background: linear-gradient(135deg, #DCF8C6 0%, #C5E8B7 100%) !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    max-width: 75% !important;
    min-width: 120px !important;
    position: relative !important;
    margin-bottom: 3px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(220,248,198,0.8) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.user-message-text {
    font-size: 16px !important;
    line-height: 1.3 !important;
    color: #333 !important;
    margin-bottom: 4px !important;
    white-space: pre-line !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    font-weight: 500 !important;
    display: block !important;
}

.user-message-time {
    font-size: 14px !important;
    color: #8E8E93 !important;
    text-align: right !important;
    margin-top: 4px !important;
    display: block !important;
}

.commercial-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.9) 100%);
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.choice-buttons {
    margin: 8px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.choice-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin: 2px 0;
    min-height: 38px;
    transition: all 0.2s ease;
    user-select: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.choice-btn:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.choice-btn:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #075E54 0%, #128C7E 100%);
}

/* EFEITO DE PULSO PARA MÁXIMA CONVERSÃO */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.choice-btn:nth-child(1) {
    animation: pulse 2s infinite;
}

.feedback-images {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
    max-width: 100%;
}

.feedback-img {
    width: 80%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    loading: lazy;
}

.feedback-img:hover {
    transform: scale(1.05);
}

/* MODAL PARA AMPLIAR IMAGENS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    margin-top: 5%;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* MOBILE - TEXTOS GIGANTES */
@media screen and (max-width: 768px) {
    .whatsapp-header {
        padding: 10px !important;
    }
    
    .chat-container {
        margin-top: 70px !important;
        padding-top: 15px !important;
    }
    
    .contact-details h3 {
        font-size: 22px !important;
    }

    .contact-details p {
        font-size: 18px !important;
    }

    .message-text {
        font-size: 20px !important;
        line-height: 1.3 !important;
        white-space: pre-line !important;
    }

    /* MENSAGENS DO USUÁRIO MOBILE - SUPER AGRESSIVO */
    .user-message {
        display: flex !important;
        justify-content: flex-end !important;
        margin-bottom: 15px !important;
        width: 100% !important;
        clear: both !important;
        float: none !important;
        position: relative !important;
    }

    .user-message-content {
        background: linear-gradient(135deg, #DCF8C6 0%, #C5E8B7 100%) !important;
        padding: 12px 16px !important;
        border-radius: 18px !important;
        max-width: 75% !important;
        min-width: 120px !important;
        position: relative !important;
        margin-bottom: 3px !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        border: 1px solid rgba(220,248,198,0.8) !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        display: block !important;
        float: right !important;
    }

    .user-message-text {
        font-size: 18px !important;
        line-height: 1.3 !important;
        color: #333 !important;
        margin-bottom: 4px !important;
        white-space: pre-line !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
        font-weight: 500 !important;
        display: block !important;
        text-align: left !important;
    }

    .message-time {
        font-size: 18px !important;
    }

    .user-message-time {
        font-size: 16px !important;
        color: #8E8E93 !important;
        text-align: right !important;
        margin-top: 4px !important;
        display: block !important;
    }

    .commercial-info {
        font-size: 14px !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    .choice-btn {
        font-size: 18px !important;
        padding: 15px 20px !important;
        min-height: 45px !important;
        font-weight: 700 !important;
        margin: 3px 0 !important;
    }

    .action-btn {
        font-size: 24px !important;
        padding: 6px !important;
    }

    .profile-pic {
        width: 40px !important;
        height: 40px !important;
    }

    .message-content .message-text {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
        white-space: pre-line !important;
    }

    .message-content .message-time {
        font-size: 22px !important;
    }

    /* TODAS AS MENSAGENS DINÂMICAS GIGANTES */
    .message .message-text {
        font-size: 20px !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }

    .message .message-time {
        font-size: 22px !important;
    }

    /* IMAGENS MENORES NO MOBILE */
    .feedback-img {
        width: 70% !important;
        max-height: none !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 3px 0 !important;
    }

    /* GARANTIR QUE PROFILE INFO MANTENHA DIREÇÃO REVERSA NO MOBILE */
    .profile-info {
        flex-direction: row-reverse !important;
    }
}

/* OTIMIZAÇÕES ESPECÍFICAS POR DISPOSITIVO */

/* iPhone SE, iPhone 5/5S/5C - Telas pequenas */
@media screen and (max-width: 320px) {
    .whatsapp-header {
        height: 50px !important;
        padding: 8px !important;
    }
    .chat-container {
        margin-top: 50px !important;
        padding: 10px !important;
    }
    .contact-details h3 {
        font-size: 16px !important;
    }
    .contact-details p {
        font-size: 12px !important;
    }
    .profile-pic {
        width: 30px !important;
        height: 30px !important;
    }
    .message-text {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    .user-message-text {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    .choice-btn {
        font-size: 14px !important;
        padding: 12px 16px !important;
        min-height: 40px !important;
    }
    .commercial-info {
        font-size: 12px !important;
        padding: 8px !important;
    }
    .message-content {
        max-width: 90% !important;
    }
    .user-message-content {
        max-width: 90% !important;
    }
}

/* iPhone 6/7/8, iPhone X/XS - Telas médias */
@media screen and (min-width: 321px) and (max-width: 414px) {
    .whatsapp-header {
        height: 60px !important;
    }
    .chat-container {
        margin-top: 60px !important;
        padding: 15px !important;
    }
    .contact-details h3 {
        font-size: 18px !important;
    }
    .contact-details p {
        font-size: 14px !important;
    }
    .profile-pic {
        width: 35px !important;
        height: 35px !important;
    }
    .message-text {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    .user-message-text {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    .choice-btn {
        font-size: 16px !important;
        padding: 14px 18px !important;
        min-height: 45px !important;
    }
    .commercial-info {
        font-size: 13px !important;
        padding: 10px !important;
    }
    .message-content {
        max-width: 85% !important;
    }
    .user-message-content {
        max-width: 85% !important;
    }
}

/* iPhone Plus, Samsung Galaxy Note - Telas grandes */
@media screen and (min-width: 415px) and (max-width: 768px) {
    .whatsapp-header {
        height: 70px !important;
    }
    .chat-container {
        margin-top: 70px !important;
        padding: 20px !important;
    }
    .contact-details h3 {
        font-size: 20px !important;
    }
    .contact-details p {
        font-size: 16px !important;
    }
    .profile-pic {
        width: 40px !important;
        height: 40px !important;
    }
    .message-text {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    .user-message-text {
        font-size: 20px !important;
        margin-bottom: 12px !important;
    }
    .choice-btn {
        font-size: 18px !important;
        padding: 16px 20px !important;
        min-height: 50px !important;
    }
    .commercial-info {
        font-size: 14px !important;
        padding: 12px !important;
    }
    .message-content {
        max-width: 80% !important;
    }
    .user-message-content {
        max-width: 80% !important;
    }
}

/* Tablet Portrait */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-header {
        height: 80px !important;
        padding: 15px !important;
    }
    .chat-container {
        margin-top: 80px !important;
        padding: 25px !important;
    }
    .contact-details h3 {
        font-size: 22px !important;
    }
    .contact-details p {
        font-size: 18px !important;
    }
    .profile-pic {
        width: 45px !important;
        height: 45px !important;
    }
    .message-text {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }
    .user-message-text {
        font-size: 22px !important;
        margin-bottom: 15px !important;
    }
    .choice-btn {
        font-size: 20px !important;
        padding: 18px 25px !important;
        min-height: 55px !important;
    }
    .commercial-info {
        font-size: 16px !important;
        padding: 15px !important;
    }
    .message-content {
        max-width: 75% !important;
    }
    .user-message-content {
        max-width: 75% !important;
    }
}

/* Landscape Mode - Telas horizontais */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .whatsapp-header {
        height: 50px !important;
        padding: 8px !important;
    }
    .chat-container {
        margin-top: 50px !important;
        padding-top: 10px !important;
    }
    .message-text {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }
    .user-message-text {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }
    .choice-btn {
        font-size: 14px !important;
        padding: 10px 14px !important;
        min-height: 35px !important;
    }
    .commercial-info {
        font-size: 12px !important;
        padding: 8px !important;
    }
}
