/* --- KUTU SIFIRLAMA --- */
#biziz-chat-container, #biziz-chat-container * { box-sizing: border-box; }

/* Maskot */
#biziz-toggle-btn {
    position: fixed; bottom: 25px; left: 25px; width: 60px; height: 60px;
    background: #e50914; color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; cursor: pointer; z-index: 2147483647;
    box-shadow: 0 5px 20px rgba(0,0,0,0.6); border: 2px solid #fff;
    transition: transform 0.2s;
}
#biziz-toggle-btn:hover { transform: scale(1.1); }

/* Pencere */
#biziz-chat-container {
    position: fixed; bottom: 95px; left: 25px; width: 350px; height: 520px;
    max-height: 80vh; background-color: #121212; border: 1px solid #333;
    border-radius: 12px; display: none; z-index: 2147483647;
    font-family: 'Roboto', sans-serif; box-shadow: 0 10px 50px rgba(0,0,0,1);
    overflow: hidden;
}

.biziz-header {
    position: absolute; top: 0; left: 0; right: 0; height: 50px;
    background: #1e1e1e; color: #e50914; padding: 0 15px; font-weight: bold;
    border-bottom: 1px solid #333; display: flex; justify-content: space-between;
    align-items: center; z-index: 2;
}
.biziz-close { cursor: pointer; color: #fff; font-size: 24px; }

/* Mesaj Alanı */
#biziz-messages {
    position: absolute; top: 50px; bottom: 70px; left: 0; right: 0;
    padding: 15px; overflow-y: scroll; background: #000; display: block;
}
#biziz-messages::-webkit-scrollbar { width: 6px; }
#biziz-messages::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }

/* Baloncuklar */
.msg-row { margin-bottom: 15px; display: flex; flex-direction: column; width: 100%; }
.msg-bubble { padding: 10px 14px; border-radius: 6px; font-size: 14px; line-height: 1.4; color: #fff; max-width: 85%; }
.msg-user-row { align-items: flex-end; }
.msg-user-bubble { background-color: #e50914; border-bottom-right-radius: 2px; }
.msg-bot-row { align-items: flex-start; }
.msg-bot-bubble { background-color: #333; border: 1px solid #444; border-bottom-left-radius: 2px; }
.msg-name { font-size: 10px; margin-bottom: 4px; opacity: 0.8; font-weight: bold; color: #ccc; }

/* Alt Input */
.biziz-input-area {
    position: absolute; bottom: 0; left: 0; right: 0; height: 70px;
    padding: 12px; background: #1e1e1e; border-top: 1px solid #333;
    display: flex; gap: 10px; z-index: 2;
}
#biziz-input { flex: 1; background: #2b2b2b; border: 1px solid #444; color: #fff; padding: 10px; border-radius: 4px; outline: none; }
#biziz-send { background: #e50914; color: #fff; border: none; width: 45px; border-radius: 4px; cursor: pointer; }

/* --- KOMPAKT FİLM KARTI --- */
.bot-result {
    text-align: left; background: #1a1a1a; padding: 10px;
    border-radius: 6px; border: 1px solid #333;
}
.bot-result-header { display: flex; gap: 12px; margin-bottom: 10px; }
.poster-small {
    width: 60px !important; height: 90px !important; border-radius: 4px;
    object-fit: cover; border: 1px solid #444; flex-shrink: 0;
}
.bot-info { display: flex; flex-direction: column; justify-content: center; }
.bot-info b a { color: #fff; text-decoration: none; font-size: 15px; display: block; margin-bottom: 5px; }
.bot-rating { font-size: 13px; color: #ffc107; font-weight: bold; }

.bot-details {
    font-size: 12px; color: #ccc; line-height: 1.4;
    margin-bottom: 10px; border-top: 1px solid #333; padding-top: 8px;
}
.bot-plot { margin-bottom: 8px; }

/* Bot Yorumu Stili */
.bot-comment {
    background: #252525; padding: 6px; border-left: 3px solid #e50914;
    font-style: italic; color: #eee; font-size: 11px; margin-top: 5px;
}

/* İncele Butonu */
.bot-result .btn {
    display: block; background: #fff; color: #e50914; padding: 8px;
    text-align: center; border-radius: 4px; text-decoration: none;
    font-weight: bold; font-size: 13px; transition: background 0.2s;
}
.bot-result .btn:hover { background: #f0f0f0; }

/* --- DİKKAT ÇEKME ANİMASYONU (PULSE) --- */
@keyframes biziz-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(229, 9, 20, 0);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
        transform: scale(1);
    }
}

/* Bu sınıf JS ile butona eklenecek */
.notification-active {
    animation: biziz-pulse 2s infinite;
}

/* Baloncuk içindeki liste stili */
.welcome-list {
    margin: 5px 0 0 15px;
    padding: 0;
    list-style-type: disc;
}
.welcome-list li {
    margin-bottom: 3px;
    color: #ccc;
    font-size: 13px;
}
/* CAPTCHA ALANI */
#biziz-captcha-overlay {
    position: absolute;
    top: 50px;
    bottom: 70px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* --- ROBOT ÜSTÜ YAZI (BADGE) --- */
.biziz-badge {
    position: absolute;
    bottom: 75px; /* Masaüstünde butonun biraz yukarisinda */
    left: 50%;
    transform: translateX(-50%) rotate(-10deg); /* Ortala ve eğik yap */
    background-color: #fff;
    color: #e50914;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2147483648;
    pointer-events: none;
    border: 1px solid #e50914;
    transition: all 0.3s ease; /* Yumuşak geçiş efekti */
}

/* Baloncuğun altındaki ok ucu */
.biziz-badge::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
}

/* --- MOBİL AYARLARI (KÜÇÜLTME) --- */
@media (max-width: 768px) {
    .biziz-badge {
        display: block !important; /* Mobilde GÖSTER */
        font-size: 10px;           /* Yazıyı küçült */
        padding: 3px 8px;          /* Kutuyu küçült */
        bottom: 65px;              /* Butona daha yaklaştır */
        left: 50%;                 /* Ortalamayı koru */
        border-radius: 10px;
    }
    
    /* Mobilde ok ucunu da biraz küçültelim */
    .biziz-badge::after {
        bottom: -4px;
        border-width: 4px 4px 0;
    }
}