/* AI Chat Box Styles */
.ai-chat-widget {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    z-index: 99999 !important;
    display: block !important;
}

.ai-chat-button {
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.ai-chat-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(229, 9, 20, 0.6);
}

.ai-chat-button i {
    font-size: 28px;
    color: white;
}

.ai-chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: #1f1f1f;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-chat-header {
    background: linear-gradient(135deg, #222 0%, #111 100%);
    padding: 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-avatar {
    width: 40px;
    height: 40px;
    background: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-avatar i {
    font-size: 20px;
    color: white;
}

.ai-chat-header-text h4 {
    margin: 0;
    font-size: 16px;
    color: #f5c518;
}

.ai-chat-header-text span {
    font-size: 12px;
    color: #888;
}

.ai-chat-close {
    cursor: pointer;
    color: #666;
    transition: 0.3s;
}

.ai-chat-close:hover {
    color: #e50914;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #181818;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.message-ai {
    align-self: flex-start;
    background: #2a2a2a;
    color: #eee;
    border-bottom-left-radius: 2px;
}

.message-user {
    align-self: flex-end;
    background: #e50914;
    color: white;
    border-bottom-right-radius: 2px;
}

.ai-feedback {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.ai-feedback i {
    cursor: pointer;
    transition: 0.2s;
}

.ai-feedback i:hover {
    color: #f5c518;
}

.ai-feedback i.active {
    color: #f5c518;
}

.ai-chat-input-area {
    padding: 20px;
    background: #1f1f1f;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
}

.ai-chat-input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 25px;
    padding: 10px 18px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.ai-chat-input:focus {
    border-color: #e50914;
}

.ai-chat-send {
    width: 40px;
    height: 40px;
    background: #e50914;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    color: white;
    transition: 0.3s;
}

.ai-chat-send:hover {
    transform: scale(1.1);
    background: #ff1f2a;
}

.typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: #2a2a2a;
    border-radius: 15px;
    width: fit-content;
}

.dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

.chat-link {
    color: #f5c518;
    text-decoration: underline;
    font-weight: bold;
}
