﻿/* WhatsMood Chat Popup - Responsive + Küçük Boyut + Başlangıçta Kapalı */

#whatsmoodChatPopup {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 85vw;
    max-width: 340px;
    height: 55vh;
    max-height: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    flex-direction: column;
    animation: fadeIn 0.3s ease-out;
}

    #whatsmoodChatPopup > div:first-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px;
        background: #ff5722;
        color: white;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        font-size: 16px;
    }

#whatsmoodMessages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    font-size: 15px;
}

#whatsmoodChatPopup > div:last-child {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
    gap: 8px;
}

#whatsmoodInput {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 14px;
}

#micBtn,
#whatsmoodSend {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#micBtn {
    background: #ececec;
    color: #333;
}

#whatsmoodSend {
    background: #ff5722;
    color: white;
}

/* Mobil için özel ayar */
@media (max-width: 480px) {
    #whatsmoodChatPopup {
        width: 95vw;
        height: 50vh;
        bottom: 10px;
        right: 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#closeEventModal:hover {
    color: crimson;
    transform: scale(1.2);
}

/* Chat Detail Mobil Düzenlemeleri */
@media (max-width: 992px) {
    .chat-detail {
        position: fixed;
        top: 56px;
        left: 0;
        width: 100%;
        height: calc(100vh - 56px);
        background: #f0f2f5;
        z-index: 9999;
        display: none;
        flex-direction: column;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

        .chat-detail.show {
            display: flex;
            transform: translateX(0);
        }

    .chat-list {
        width: 100% !important;
    }

        .chat-list.hidden {
            display: none;
        }

    .chat-detail-header {
        padding: 10px;
        background: #fff;
        border-bottom: 1px solid #ddd;
    }
}

/* 🎵 Spotify Popup - Chat ekranının ÜZERİNDE olacak şekilde */
