/* =============================================
   ನಮ್ಮ ಹಣಕಾಸು - ಸಂಪೂರ್ಣ ಮಾಡರ್ನ್ ಸ್ಟೈಲ್ CSS
   ============================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Kannada', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
}

/* ===== ಹೆಡರ್ ===== */
header {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1750px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 68px;
    width: auto;
}

.logo span {
    font-size: 1.55rem;
    font-weight: 700;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 28px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #fde047;
    text-decoration: underline;
}

/* ===== ಸೆಕ್ಷನ್ ಸಾಮಾನ್ಯ ===== */
section {
    padding: 80px 20px;
}

h1, h2, h3 {
    color: #1e40af;
}

/* ===== ಕ್ಯಾಲ್ಕುಲೇಟರ್ ಗ್ರಿಡ್ (12 ಕ್ಯಾಲ್ಕುಲೇಟರ್) ===== */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 32px;
    max-width: 1750px;
    margin: 0 auto;
    padding: 20px;
}

.calc-box {
    background: white;
    padding: 40px 32px;
    border-radius: 28px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.calc-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(59,130,246,0.25);
}

.calc-box h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e40af;
    font-size: 1.6rem;
}

/* ===== ಟಿಪ್ಸ್, ಲೇಖನಗಳು, FAQ ಗ್ರಿಡ್ ===== */
.tips-grid, .articles-grid, .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 30px;
    max-width: 1650px;
    margin: 0 auto;
    padding: 20px;
}

.tip-card, .article-card, .faq-item {
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    min-height: 340px;
}

.tip-card:hover, .article-card:hover, .faq-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 50px rgba(59,130,246,0.2);
}

/* ===== ಫಲಿತಾಂಶ ಸ್ಟೈಲ್ ===== */
.result {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #ecfdf5, #dbeafe);
    border-radius: 16px;
    border-left: 5px solid #10b981;
    display: none;
    animation: resultPop 0.5s ease;
}

@keyframes resultPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ===== ಮೊಬೈಲ್ ರೆಸ್ಪಾನ್ಸಿವ್ ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav a {
        margin: 0 15px;
    }
    
    .calculators-grid,
    .tips-grid,
    .articles-grid,
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .calc-box {
        min-height: auto;
        padding: 35px 25px;
    }
    
    section {
        padding: 60px 15px;
    }
}

/* ===== ಇತರ ಸುಧಾರಣೆಗಳು ===== */
button {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: auto;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59,130,246,0.4);
}

input, select {
    width: 100%;
    padding: 12px;
    margin: 8px 0 18px 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
}
/* ==================== ಡಾರ್ಕ್ ಮೋಡ್ ==================== */
body.dark-mode {
    background: #0f172a;
    color: #e2e8f0;
}

body.dark-mode header {
    background: linear-gradient(135deg, #1e2937, #334155);
}

body.dark-mode .calc-box,
body.dark-mode .tip-card,
body.dark-mode .article-card,
body.dark-mode .faq-item {
    background: #1e2937 !important;
    border-color: #475569 !important;
    color: #e2e8f0;
}

body.dark-mode .result {
    background: #1e3a2f;
    border-left-color: #34d399;
    color: #a1e2c8;
}

body.dark-mode input,
body.dark-mode select {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}