/**
 * Base CSS for Index Page
 * Core variables, typography, and layout foundations
 */

/* CSS Variables */
:root {
    --primary-color: #8b5cf6;
    --primary-color-dark: #7c3aed;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --background-color: #f8fafc;
    --text-color: #1e293b;
    --neomorphism-light: #ffffff;
    --neomorphism-shadow: rgba(163, 177, 198, 0.4);
    --card-background: #f0f2f5;
    --text-muted: #4a5568;
    --text-dark: #2d3748;
}

/* Landing page specific neomorphism styling */
.card {
    background: var(--card-background);
    border: none;
    border-radius: 25px;
    box-shadow: 
        8px 8px 16px var(--neomorphism-shadow),
        -8px -8px 16px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: 
        12px 12px 24px rgba(163, 177, 198, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.9),
        inset 2px 2px 4px rgba(163, 177, 198, 0.1);
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.4;
    padding-bottom: 4px;
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.3;
}

/* Remove translate effect for informational cards */
.col-lg-4 .card:hover {
    transform: none !important;
}

/* Apply Poppins font to sidebar container titles for consistency with "Expenses" branding */
.col-lg-4 .card-title {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* Hero Logo Link Styling */
.hero-logo-link {
    cursor: pointer !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.hero-logo-link:hover {
    transform: scale(1.02) !important;
}

.hero-logo-link:hover .hero-logo {
    filter: drop-shadow(0 12px 30px rgba(139, 92, 246, 0.4)) !important;
}

/* CTA Title Styling */
.cta-title {
    font-family: 'Poppins', 'Segoe UI', sans-serif !important;
    font-weight: 700 !important;
    font-size: 2.2rem !important;
    letter-spacing: -0.5px !important;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 2px 15px rgba(139, 92, 246, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cta-title:hover {
    transform: translateY(-2px) !important;
    text-shadow: 0 8px 25px rgba(139, 92, 246, 0.4) !important;
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.3)) !important;
}

/* Advertisement Space */
.ad-space {
    background: var(--card-background);
    border: none;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    margin: 2rem 0;
    box-shadow: 
        6px 6px 12px rgba(163, 177, 198, 0.3),
        -6px -6px 12px rgba(255, 255, 255, 0.7);
}

.ad-space h5 {
    color: var(--text-dark);
    font-weight: 600;
}

.list-unstyled li i {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(124, 58, 237, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mobile responsive card titles */
@media (max-width: 768px) {
    .card-title {
        font-size: clamp(1.3rem, 5vw, 2rem);
    }
    
    .cta-title {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 576px) {
    .card-title {
        font-size: clamp(1.1rem, 6vw, 1.8rem);
        line-height: 1.2;
    }
    
    .card-title .title-dash {
        display: none;
    }
    
    .card-title .title-second-part {
        display: block;
        margin-top: 0.3rem;
    }
    
    .card-title .title-second-part:before {
        content: "- ";
        color: rgba(139, 92, 246, 0.7);
    }
}