/* Custom Styles for Veda AI */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --vedic-gold: #D4AF37;
    --vedic-saffron: #FF9933;
    --vedic-deep: #2C1810;
    --vedic-paper: #F9F7F2;
    --vedic-ink: #5D4037;
    --vedic-accent: #C5A059;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(197, 160, 89, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 160, 89, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Message Styles */
.message-user {
    align-self: flex-end;
    background: var(--vedic-accent);
    color: white;
    border-radius: 24px 24px 4px 24px;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.1);
}

.message-ai {
    align-self: flex-start;
    background: white;
    border: 1px solid rgba(197, 160, 89, 0.1);
    border-radius: 24px 24px 24px 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
}

.dark .message-ai {
    background: #1A1816;
    border-color: rgba(197, 160, 89, 0.05);
}

/* Markdown Content Styling */
.markdown-body {
    line-height: 1.7;
    font-size: 0.95rem;
}

.markdown-body p {
    margin-bottom: 1rem;
}

.markdown-body p:last-child {
    margin-bottom: 0;
}

.markdown-body strong {
    color: var(--vedic-gold);
    font-weight: 700;
}

.markdown-body em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.markdown-body blockquote {
    border-left: 3px solid var(--vedic-accent);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    opacity: 0.8;
}

/* Suggestion Buttons */
.suggestion-btn {
    transition: all 0.3s ease;
}

.suggestion-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.1);
}

/* Input Area Focus */
#user-input:focus {
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

/* Typing Indicator Animation */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.animate-bounce {
    animation: bounce 0.6s infinite;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .glass {
    background: rgba(26, 24, 22, 0.7);
}

/* Tab Active State */
.tab-active {
    color: var(--vedic-accent);
    opacity: 1 !important;
}

/* Sign Grid Hover */
#sign-grid button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#sign-grid button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(197, 160, 89, 0.15);
}

/* Kundli Form Styles */
#kundli-form input:focus {
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
}

#kundli-content {
    min-height: 100px;
}

/* Responsive adjustments for 3 tabs */
@media (max-width: 640px) {
    nav button span {
        font-size: 8px;
    }
}
