/* Ana Kapsayıcı */
#pr-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    font-family: 'Rubik', sans-serif;
}

/* Yüzen Avatar Butonu */
#pr-bot-trigger {
    width: 75px;
    height: 75px;
    background: #2c2c2e;
    border: 3px solid #FF9900;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
#pr-bot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #FF9900;
}
#pr-bot-trigger img {
    width: 60px; /* Avatarın boyutuna göre ayarla */
    height: auto;
}

/* Sohbet Penceresi */
#pr-bot-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 350px;
    height: 500px;
    background: #1c1c1e;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    border: 1px solid #424242;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#pr-bot-window.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Üst Kısım (Header) */
#pr-bot-header {
    background: linear-gradient(90deg, #FF9900 0%, #FF6B35 100%);
    padding: 15px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
}
#pr-bot-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    margin-right: 10px;
}
#pr-bot-header .header-text h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
#pr-bot-header .header-text span {
    font-size: 12px;
    opacity: 0.9;
}
#pr-bot-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

/* Mesaj Alanı */
#pr-bot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #1c1c1e;
}
.bot-msg, .user-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}
.bot-msg {
    background: #3a3a3c;
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}
.user-msg {
    background: #FF9900;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}
.typing {
    font-style: italic;
    opacity: 0.7;
}
.error {
    background: #5c1a1a;
    color: #ffc4c4;
}

/* Giriş Alanı */
#pr-bot-input-area {
    display: flex;
    padding: 10px;
    background: #2c2c2e;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    border-top: 1px solid #424242;
}
#pr-bot-input {
    flex: 1;
    background: #3a3a3c;
    border: 1px solid #545458;
    padding: 10px 15px;
    border-radius: 20px;
    color: #e0e0e0;
    outline: none;
}
#pr-bot-input::placeholder {
    color: #a0a0a0;
}
#pr-bot-send {
    background: #FF9900;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: background 0.2s;
}
#pr-bot-send:hover {
    background: #e68a00;
}
#pr-bot-send svg {
    width: 20px;
    height: 20px;
}

/* Mobilde tam ekran yap */
@media (max-width: 480px) {
    #pr-bot-window {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 85px;
    }
}