/* NetHesapla - Kurumsal Fintech Tasarım Sistemi (style.css) */
:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #f0f9ff;
    --primary-border: #bae6fd;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --success: #059669;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08);
    --shadow-drawer: -12px 0 35px -5px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* HEADER */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.6px;
}

.logo span {
    color: var(--primary);
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.menu-toggle:hover {
    background: var(--bg-page);
    border-color: var(--border-hover);
}

.hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 3.5px;
    width: 16px;
}

.hamburger-lines span {
    height: 2px;
    width: 100%;
    background: var(--text-main);
    border-radius: 2px;
}

/* YAN MENÜ: DAHA GENİŞ VE KELİME KIRPILMASIZ */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dropdown-overlay.show {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -540px;
    width: 480px; /* Daha ferah genişlik */
    max-width: 95%;
    height: 100%;
    background: #ffffff;
    z-index: 1002;
    transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-drawer);
}

.nav-menu.open {
    right: 0;
}

.nav-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.nav-counter {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.nav-close:hover {
    background: #e2e8f0;
    color: var(--text-main);
}

/* CANLI ARAMA */
.menu-search-box {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.menu-search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 40px;
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.menu-search-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

/* KATEGORİ FİLTRE HAPLARI: TAŞMAYAN VE OKUNAKLI */
.category-filter-bar {
    display: flex;
    flex-wrap: wrap; /* İkinci satıra zarifçe geçer, sağdan kesilmez */
    gap: 6px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.filter-pill {
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    background: var(--bg-page);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-pill:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
}

.filter-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* MENÜ ELEMANLARI: TAM OKUNAKLI, SIĞAN VE FERAH YAZILAR */
.nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
}

.nav-tool-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    transition: background 0.12s;
    border: 1px solid transparent;
}

.nav-tool-link:hover {
    background: var(--bg-page);
    border-color: var(--border-color);
}

.nav-tool-link.active {
    background: var(--primary-light);
    border-color: var(--primary-border);
    font-weight: 600;
}

.tool-icon-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tool-meta {
    flex: 1;
}

.tool-title {
    font-size: 13.5px;
    font-weight: 500;
    white-space: normal; /* Noktalı kesinti kaldırıldı, tam okunur */
    line-height: 1.35;
    display: block;
    color: var(--text-main);
}

.tool-category-tag {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 3px;
    display: block;
}

/* REKLAM ALANLARI */
.ad-slot-wrapper {
    margin: 18px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-slot-placeholder {
    width: 100%;
    min-height: 85px;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    user-select: none;
}

/* SAYFA VE FORM DÜZENİ */
.main-wrapper {
    flex: 1;
}

.container {
    max-width: 680px;
    margin: 20px auto;
    padding: 0 16px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 20px;
}

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.page-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-main);
    outline: none;
    transition: all 0.15s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-group {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.btn-option {
    flex: 1;
    padding: 12px;
    font-size: 13.5px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.btn-option:hover {
    border-color: var(--border-hover);
}

.btn-option.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* ÖZEL ORAN INPUTU İÇİN YAN YANA DÜZEN */
.kdv-oran-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.2fr;
    gap: 8px;
}

.custom-rate-input {
    height: 46px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0 8px;
    outline: none;
}

.custom-rate-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}

.btn-hesapla {
    width: 100%;
    height: 52px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background 0.15s, transform 0.05s;
    margin-top: 6px;
}

.btn-hesapla:hover {
    background: var(--primary-dark);
}

.btn-hesapla:active {
    transform: scale(0.99);
}

/* SONUÇ KUTUSU */
.sonuc-kutusu {
    margin-top: 24px;
    padding: 20px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: var(--radius-md);
    display: none;
}

.sonuc-kutusu.aktif {
    display: block;
}

.sonuc-satir {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #cbd5e1;
    font-size: 14px;
}

.sonuc-satir:last-child {
    border-bottom: none;
    padding-top: 14px;
}

.sonuc-vurgu {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
}

.paylas-alani {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.btn-paylas {
    flex: 1;
    padding: 11px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background: #ffffff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s;
}

.btn-paylas:hover {
    background: #f1f5f9;
}

.info-card {
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    padding: 14px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-top: 20px;
    line-height: 1.6;
}

.seo-icerik {
    margin-top: 24px;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

.seo-icerik h2 {
    font-size: 18px;
    color: var(--text-main);
    margin: 20px 0 8px 0;
    font-weight: 700;
}

.seo-icerik p {
    margin-bottom: 12px;
}

/* FOOTER */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 36px 16px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.footer-link {
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-disclaimer {
    font-size: 12px;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.5;
}

.footer-copy {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}