/* Chat Window Styles */
.chat-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 500px;
    background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    border: 3px solid #ff3333;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 51, 51, 0.3), 
                0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: none;
    flex-direction: column;
    font-family: 'Comic Book', sans-serif;
    cursor: move;
    user-select: none;
}

.chat-window.dragging {
    transition: none;
}

.chat-header {
    background: linear-gradient(145deg, #ff3333 0%, #cc0000 100%);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
}

.chat-title {
    font-family: 'Comic Book', sans-serif;
}

.chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3);
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ff3333;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #ff4444;
}

.message {
    display: flex;
    margin-bottom: 10px;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    font-family: Arial, sans-serif;
}

.user-message .message-content {
    background: linear-gradient(145deg, #ff3333 0%, #cc0000 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.bot-message .message-content {
    background: linear-gradient(145deg, #333 0%, #555 100%);
    color: #fff;
    border: 1px solid #ff3333;
    border-bottom-left-radius: 6px;
}

.chat-input-container {
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

#chatInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ff3333;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    min-width: 0;
}

#chatInput::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#chatInput:focus {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.chat-send {
    background: linear-gradient(145deg, #ff3333 0%, #cc0000 100%);
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    min-width: 70px;
    max-width: 80px;
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-send:hover {
    background: linear-gradient(145deg, #ff4444 0%, #dd1111 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.4);
}

.chat-send:active {
    transform: translateY(0);
}

/* Yatay Ekran (Landscape) */
@media screen and (orientation: landscape) {
    .chat-window {
        display: none; /* Başlangıçta kapalı */
        top: 20px;
        left: 20px;
        transform: none;
        width: 320px;
        height: 450px;
    }
    
    .chat-window.open {
        display: flex;
    }
}

/* Dikey Ekran (Portrait) */
@media screen and (orientation: portrait) {
    .chat-window {
        display: none; /* Dikey ekranlarda kapalı */
    }
}

/* Mobil cihazlar için ek optimizasyon */
@media screen and (max-width: 768px) {
    .chat-window {
        display: none; /* Mobilde kapalı */
    }
} 