/* Main Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Pinterest-inspired Gradients */
.gradient-bg {
    background: linear-gradient(135deg, #e60023 0%, #c7002b 100%);
}

/* Navigation Dropdown Styles */
.group:hover .hidden {
    display: block;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Card Styles */
.bg-white.rounded-xl {
    transition: all 0.3s ease;
}

.bg-white.rounded-xl:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.bg-white.rounded-xl img {
    transition: transform 0.3s ease;
}

.bg-white.rounded-xl:hover img {
    transform: scale(1.05);
}

/* Card Hover Effects */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Pinterest-style Images */
.hero-image {
    border-radius: 24px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Navigation Links */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e60023;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Section Images */
.section-image {
    overflow: hidden;
    border-radius: 12px;
}

.section-image img {
    transition: transform 0.5s ease;
}

.section-image:hover img {
    transform: scale(1.1);
}

/* Custom Button Styles */
.pinterest-button {
    background-color: #e60023;
    color: white;
    transition: all 0.3s ease;
}

.pinterest-button:hover {
    background-color: #ad081b;
    transform: translateY(-2px);
}

.pinterest-button:active {
    transform: translateY(0);
}

/* Feature Icons */
.feature-icon {
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* Chat Interface Styles */
#chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #e60023 #f1f1f1;
}

#chat-messages::-webkit-scrollbar {
    width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: #e60023;
    border-radius: 10px;
}

.chat-message {
    transition: opacity 0.3s ease;
}

.chat-message.new {
    animation: slideIn 0.3s ease;
}

/* Financial Advisor Chat Styles */
.advisor-message {
    border-left: 4px solid #e60023;
}

.financial-tip {
    background-color: #fff8e6;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}

.risk-high {
    color: #e60023;
}

.risk-medium {
    color: #ffa500;
}

.risk-low {
    color: #008000;
}

/* Typing Indicator Animation */
.typing-indicator .dots {
    display: inline-block;
    animation: typing 1.4s infinite;
}

@keyframes typing {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60% { content: '...'; }
    80%, 100% { content: ''; }
}

/* Financial Terms Tooltip */
.financial-term {
    border-bottom: 1px dashed #e60023;
    cursor: help;
    position: relative;
}

.financial-term:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
}

/* Chat Input Styles */
#user-input {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#user-input:focus {
    border-color: #e60023;
    box-shadow: 0 0 0 2px rgba(230, 0, 35, 0.1);
}

/* Responsive Grid */
.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #e60023;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ad081b;
}

/* Modal Animations */
.modal-enter {
    animation: modalEnter 0.3s ease;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
} 