/* --- 1. RENK DEĞİŞKENLERİ --- */
:root {
    --koyu-yesil: #1b5e20;
    --orta-yesil: #2e7d32;
    --acik-yesil: #f0fdf4;
    --nfa-mor: #6a1b9a;
    --nfa-koyu-mor: #4a148c;
    --cerceve: rgba(45, 90, 39, 0.15);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--acik-yesil);
    color: #333;
    margin: 0;
    line-height: 1.5;
}

/* --- 2. HEADER --- */
header {
    background-color: var(--koyu-yesil);
    padding: 0 3%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    gap: 10px;
}

.logo {
    font-size: 1.1rem;
    font-weight: bold;
    color: white !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

/* --- 3. NAV — sadece header içindeki nav --- */
header nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

header nav a {
    color: white !important;
    text-decoration: none !important;
    margin-left: 12px;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: color 0.2s;
}

header nav a:hover { color: #a5d6a7 !important; }

/* --- 4. HAMBURGER — masaüstünde gizli --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    flex-shrink: 0;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.acik span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.acik span:nth-child(2) { opacity: 0; }
.hamburger.acik span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- 5. ANA MİZAN --- */
.main-wrapper {
    display: flex;
    gap: 15px;
    max-width: 1350px;
    margin: 20px auto;
    padding: 0 15px;
}

.column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

/* --- 6. İÇ SAYFALAR --- */
.inner-page-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- 7. KARTLAR --- */
.card, .sidebar-ad {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--cerceve);
    box-shadow: none;
}

.calculator-card { border-top: 6px solid var(--orta-yesil); }

h2, h3 { color: var(--orta-yesil); margin-top: 0; }

/* --- 8. FORM --- */
.form-group { margin-bottom: 15px; }
label { display: block; font-weight: bold; font-size: 0.85rem; margin-bottom: 5px; }

select, input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}

button {
    width: 100%;
    background-color: var(--orta-yesil);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}
button:hover { background-color: var(--koyu-yesil); }

/* --- 9. SONUÇ PANELİ --- */
.result-display {
    margin-top: auto;
    background: rgba(220, 252, 231, 0.6);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.uygulanan-faiz-text { font-weight: bold; color: var(--nfa-mor) !important; }

.warning-panel {
    display: none;
    margin-top: 15px;
    padding: 12px;
    background: #fffde7;
    border-left: 4px solid #fbc02d;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #555;
    text-align: left;
}

/* --- 10. NFA BUTON --- */
.ad-btn {
    display: block;
    background: var(--nfa-mor);
    color: white !important;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    margin-top: auto;
    font-weight: 500;
    font-size: 0.85rem;
    text-align: center;
    transition: 0.3s;
}
.ad-btn:hover {
    background: var(--nfa-koyu-mor);
    box-shadow: 0 4px 10px rgba(106,27,154,0.2);
}

/* ═══════════════════════════════════════
   11. MOBİL
═══════════════════════════════════════ */
@media (max-width: 900px) {

    header {
        height: auto;
        min-height: 52px;
        padding: 10px 4%;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
    }

    .logo {
        flex: 1;
        font-size: 1rem;
    }

    /* Hamburger mobilde görünür */
    .hamburger {
        display: flex !important;
        order: 2;
        margin-left: 0;
    }

    /* Nav varsayılan gizli — JS ile .acik eklenince açılır */
    header nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;
        background: var(--koyu-yesil);
        border-top: 1px solid rgba(255,255,255,0.15);
        padding: 6px 0;
        margin-top: 6px;
    }

    header nav.acik {
        display: flex;
    }

    header nav a {
        margin-left: 0 !important;
        padding: 12px 20px;
        font-size: 1rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        white-space: normal;
    }

    header nav a:last-child { border-bottom: none; }

    /* İçerik tek sütun */
    .main-wrapper {
        flex-direction: column;
        padding: 0 12px;
        margin: 15px auto;
        gap: 12px;
    }

    aside.column { order: 3; }

    .inner-page-wrapper { padding: 0 15px; margin: 20px auto; }

    .card, .sidebar-ad { padding: 18px; }

    /* İletişim grid tek sütun */
    .iletisim-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    h2, h3 { font-size: 1rem; }
    .card, .sidebar-ad { padding: 14px; }
}