/* Talk to Benad AI Specific Styles */
.chat-section {
    min-height: 100vh;
    padding: 150px 40px 80px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
}

.chat-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-top: 40px;
    height: 700px;
}

/* Chat Info Sidebar */
.chat-info {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 30px;
    animation: fadeInLeft 0.8s ease;
    overflow-y: auto;
}

.ai-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #ff6b9d;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.5);
}

.status-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #4ecdc4;
    border-radius: 50%;
    border: 3px solid #0f0c29;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
}

.chat-info h2 {
    text-align: center;
    font-size: 28px;
    background: linear-gradient(135deg, #ff6b9d, #ffd93d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.ai-description {
    text-align: center;
    color: #c8c8e8;
    margin-bottom: 20px;
    font-size: 16px;
}

.capabilities {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.capabilities li {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease backwards;
}

.capabilities li:nth-child(1) { animation-delay: 0.1s; }
.capabilities li:nth-child(2) { animation-delay: 0.2s; }
.capabilities li:nth-child(3) { animation-delay: 0.3s; }
.capabilities li:nth-child(4) { animation-delay: 0.4s; }
.capabilities li:nth-child(5) { animation-delay: 0.5s; }

.capabilities li:hover {
    background: rgba(255, 107, 157, 0.1);
    border-color: #ff6b9d;
    transform: translateX(5px);
}

.quick-actions {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.quick-actions h3 {
    color: #ffd93d;
    font-size: 18px;
    margin-bottom: 15px;
}

.quick-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #ffffff;
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.quick-btn span {
    font-size: 24px;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #4ecdc4, #6ee7df);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

/* Chat Messages Container */
.chat-messages-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    display: flex;
    flex-direction: column;
    animation: fadeInRight 0.8s ease;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.5s ease;
}

.message-avatar {
    flex-shrink: 0;
}

.message-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ff6b9d;
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.message-bubble {
    background: rgba(255, 107, 157, 0.15);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    padding: 15px 20px;
    max-width: 80%;
}

.ai-message .message-bubble {
    background: rgba(78, 205, 196, 0.15);
    border-color: rgba(78, 205, 196, 0.3);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-avatar img {
    border-color: #4ecdc4;
}

.user-message .message-content {
    align-items: flex-end;
}

.user-message .message-bubble {
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border-color: transparent;
}

.message-bubble p {
    color: #ffffff;
    line-height: 1.6;
    margin-bottom: 10px;
}

.message-bubble p:last-child {
    margin-bottom: 0;
}

.message-time {
    color: #a8a8d8;
    font-size: 12px;
    margin-top: 5px;
    padding: 0 10px;
}

.typing-indicator {
    display: flex;
    gap: 5px;
    padding: 15px 20px;
}

.typing-dot {
    width: 10px;
    height: 10px;
    background: #4ecdc4;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-container {
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
}

.input-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

#chatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 15px 20px;
    color: #ffffff;
    font-family: 'Fredoka', sans-serif;
    font-size: 15px;
    resize: none;
    max-height: 120px;
    transition: all 0.3s ease;
}

#chatInput:focus {
    outline: none;
    border-color: #ff6b9d;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.3);
}

#chatInput::placeholder {
    color: #a8a8d8;
}

.send-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff6b9d, #ff8fab);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-btn svg {
    width: 24px;
    height: 24px;
}

.send-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.5);
}

.send-btn:active {
    transform: scale(0.95);
}

.input-footer {
    text-align: center;
    margin-top: 15px;
}

.input-footer p {
    color: #a8a8d8;
    font-size: 12px;
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar,
.chat-info::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track,
.chat-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
.chat-info::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b9d, #4ecdc4);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.chat-info::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff8fab, #6ee7df);
}

/* Loading Animation */
.loading-message {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .chat-container {
        grid-template-columns: 300px 1fr;
    }
}

@media (max-width: 968px) {
    .chat-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .chat-info {
        height: auto;
        max-height: none;
    }
    
    .chat-messages-container {
        height: 600px;
    }
}

@media (max-width: 768px) {
    .chat-section {
        padding: 120px 20px 60px;
    }
    
    .message-bubble {
        max-width: 90%;
    }
    
    .chat-messages {
        padding: 20px;
    }
    
    .chat-input-container {
        padding: 15px 20px;
    }
}
