/* ==========================================================================
   ANALIZOR.COM - KURUMSAL ORTAK TASARIM FRAMEWORKÜ - PARÇA 1
   Tüm sayfaların renk, giriş, sonuç ve modül dengesi tek merkezden yönetilir.
   ========================================================================== */

:root {
    /* Ana Renk Paleti */
    --color-primary: #4f46e5;       /* Kurumsal İndigo */
    --color-primary-hover: #4338ca;
    --color-success: #10b981;       /* Canlı Yeşil */
    --color-success-hover: #059669;
    
    /* Metin Renkleri */
    --text-title: #1e293b;          /* Koyu Lacivert/Gri */
    --text-body: #475569;           /* Standart Gövde Metni */
    --text-muted: #64748b;          /* Yardımcı Soft Metin */
    
    /* Arka Planlar ve Kenarlıklar */
    --bg-main: #f8fafc;             /* Tüm Site Arka Planı */
    --bg-card: #ffffff;             /* Beyaz Kartlar */
    --bg-result: #f1f5f9;           /* Sonuç Raporu Gri Alanı */
    --bg-button: #4f46e5;
    --border-color: #e2e8f0;        /* Standart İnce Çizgiler */
    
    /* Yapısal Ölçüler */
    --container-width: 1200px;
    --border-radius: 8px;
    --border-radius-large: 12px;
}

/* ==========================================
   1. GENEL SIFIRLAMA VE TEMEL ÖGELER (RESET)
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 20px;
}

/* ==========================================
   2. ORTAK ÜST MENÜ (NAVBAR)
   ========================================== */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-title);
    text-decoration: none;
}

.logo span {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-primary);
}
/* Hamburger buton — masaüstünde gizli */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-title);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .nav-links.open {
        max-height: 300px;
    }

    .nav-links li {
        width: 100%;
        border-top: 1px solid var(--border-color);
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
    }
}
/* ==========================================
   3. KAHRAMANLIK ALANI & CANLI ARAMA (HERO)
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.hero-section p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 25px;
}

.search-box {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    height: 54px;
    padding: 0 24px;
    border: none;
    border-radius: 30px;
    font-size: 1.05rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    outline: none;
    color: var(--text-title);
}

/* ==========================================
   4. ANASAYFA KATEGORİLİ GRID SİSTEMİ
   ========================================== */
.section-title {
    font-size: 1.5rem;
    color: var(--text-title);
    margin-bottom: 30px;
    font-weight: 700;
}

.category-block {
    margin-bottom: 40px;
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--border-radius-large);
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
    border: 1px solid var(--border-color);
}

.category-header {
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.category-title {
    font-size: 1.3rem;
    color: var(--text-title);
    font-weight: 700;
    margin-bottom: 4px;
}

.category-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 500;
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.calc-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.calc-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
}

.calc-card.hidden {
    display: none !important;
}

.calc-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.calc-icon.bg-finance       { background-color: rgba(79, 70, 229, 0.08); color: var(--color-primary); }
.calc-icon.bg-math          { background-color: rgba(6, 182, 212, 0.08); color: #06b6d4; }
.calc-icon.bg-education     { background-color: rgba(245, 158, 11, 0.08); color: #f59e0b; }
.calc-icon.bg-health        { background-color: rgba(236, 72, 153, 0.08); color: #ec4899; }
.calc-icon.bg-shop          { background-color: rgba(16, 185, 129, 0.08); color: var(--color-success); }
.calc-icon.bg-time          { background-color: rgba(100, 116, 139, 0.08); color: var(--text-muted); }
.calc-icon.bg-vergi         { background-color: rgba(239, 68, 68, 0.08); color: #ef4444; }
.calc-icon.bg-calisma-hayati { background-color: rgba(16, 185, 129, 0.08); color: #10b981; }
.calc-icon.bg-teknik        { background-color: rgba(14, 165, 233, 0.08); color: #0ea5e9; }

.calc-card h3 {
    font-size: 1.1rem;
    color: var(--text-title);
    margin-bottom: 8px;
    font-weight: 600;
}

.calc-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
/* ==========================================================================
   ANALIZOR.COM - KURUMSAL ORTAK TASARIM FRAMEWORKÜ - PARÇA 2
   ========================================================================== */

/* ==========================================
   5. HESAPLA SAYFALARI YAPISI (LAYOUT)
   ========================================== */
.calc-container {
    max-width: 650px;
    margin: 40px auto;
    padding: 0 20px;
}

.calc-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01);
}

/* ==========================================
   6. SEKME (TAB) SİSTEMİ STİLLERİ
   ========================================== */
.tab-menu {
    display: flex;
    background-color: var(--bg-main);
    padding: 6px;
    border-radius: var(--border-radius);
    margin-bottom: 25px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    height: 40px;
    border: none;
    background: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-title);
}

.tab-btn.active {
    background-color: var(--bg-card);
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: block !important;
}

/* ==========================================
   7. GİRİŞ ALANLARI VE FORMLAR (INPUTS)
   ========================================== */
.form-group {
    margin-bottom: 20px;
}

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-title);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-title);
    background-color: var(--bg-card);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

/* ==========================================
   8. EVRENSEL SONUÇ BORDROSU (REPORT CARD)
   ========================================== */
.report-card {
    margin-top: 25px;
    padding: 24px;
    background-color: var(--bg-result);
    border-left: 5px solid var(--color-success);
    border-radius: var(--border-radius);
}

.report-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.report-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.report-row:last-of-type {
    border-bottom: none;
}

.report-row span {
    font-weight: 500;
}

.report-row strong {
    color: var(--text-title);
    font-weight: 600;
}

.report-row.highlight {
    background-color: rgba(16, 185, 129, 0.05);
    padding: 14px 12px;
    border-radius: 6px;
    border-bottom: none;
    margin-bottom: 10px;
}

.report-row.highlight span {
    color: var(--text-title);
    font-weight: 600;
}

.report-row.highlight strong {
    color: var(--color-success);
    font-size: 1.35rem;
    font-weight: 700;
}

/* ==========================================
   9. ORTAK BİLGİLENDİRME KUTUSU (INFO BOX)
   ========================================== */
.info-box {
    margin-top: 30px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 30px;
}

.info-box h2 {
    font-size: 1.25rem;
    color: var(--text-title);
    margin-bottom: 15px;
    font-weight: 700;
}

.info-box p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 15px;
    line-height: 1.6;
}

.info-box ul {
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--text-body);
    font-size: 0.95rem;
}

.info-box li {
    margin-bottom: 8px;
}

/* ==========================================
   10. SIKÇA SORULAN SORULAR (FAQ ACCORDION)
   ========================================== */
.faq-section {
    margin-top: 30px;
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
}

.faq-title {
    font-size: 1.2rem;
    color: var(--text-title);
    margin-bottom: 15px;
    font-weight: 700;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-title);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.1rem;
    color: var(--color-primary);
    transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    margin-top: 10px;
}

/* ==========================================
   11. PAYLAŞIM LİNKİ MODÜLÜ (SHARE SECTION)
   ========================================== */
.share-section {
    margin-top: 25px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
}

.share-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-title);
    font-size: 0.9rem;
}

.share-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.share-input {
    flex: 1;
    background-color: var(--bg-result) !important;
    color: var(--text-muted) !important;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.share-btn {
    height: 48px;
    padding: 0 20px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.share-btn:hover {
    opacity: 0.9;
}

.share-btn.copied {
    background: var(--color-success) !important;
}

/* ==========================================
   12. İLGİLİ HESAPLAMALAR ÖNERİ MOTORU
   ========================================== */
.related-section {
    margin-top: 30px;
}

.related-title {
    font-size: 1.15rem;
    color: var(--text-title);
    margin-bottom: 15px;
    font-weight: 700;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.related-card {
    background: var(--bg-card);
    padding: 14px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-title);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.related-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.related-icon {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   13. HATA UYARILARI (KIRMIZI ALAN)
   ========================================== */
.form-error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}

/* ==========================================
   14. YENİ AŞAĞIYA HİZALANMIŞ BREADCRUMB
   ========================================== */
.breadcrumb-container {
    width: 100%;
    margin: 0 auto 15px auto;
    padding: 0 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--color-primary) !important; /* İnindigo Mavi */
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-weight: 400;
}

.breadcrumb-separator {
    font-size: 0.7rem;
    color: #cbd5e1;
}

/* ==========================================
   15. TÜM SAYFALARDA ORTAK ALT ALAN (FOOTER)
   ========================================== */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    margin-top: 60px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ==========================================
   16. BİLGİLENDİRME / SORUMLULUK UYARISI KUTUSU (YMYL)
   Finans, vergi, iş hukuku ve sağlık gibi hassas konulu
   araçlarda otomatik gösterilir.
   ========================================== */
.ymyl-uyari-box {
    margin-top: 20px;
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: var(--border-radius);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ymyl-uyari-box .ymyl-uyari-ikon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.ymyl-uyari-box p {
    font-size: 0.85rem;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================
   BU BLOK style.css'E EKLENMEK ÜZERE HAZIRLANDI.
   Amaç: Dinamik satır girişli tablo kullanan araçlarda (DCA ve gelecekteki
   benzer araçlarda) ortak, tekrar kullanılabilir stiller. Kredi sayfasındaki
   .table-wrapper / .schedule-table / .btn-group / .download-btn / .print-btn
   sınıfları o sayfaya özel <style> bloğunda tanımlıydı; burada aynı görsel
   dili GENEL (site geneli) sınıflar olarak tanımlıyoruz ki her yeni araç
   sıfırdan yazmak yerine bunları kullanabilsin. İstersen ileride kredi
   sayfasının kendi inline <style> bloğunu kaldırıp bu genel sınıflara
   geçirebilirsin (zorunlu değil, birbirini bozmaz).
   ========================================================== */

/* ---------- Dinamik Tablo (satır ekle/sil ile veri girişi) ---------- */
.dynamic-table-wrapper {
    margin-top: 15px;
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.dynamic-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.dynamic-table th,
.dynamic-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
}

.dynamic-table th {
    background-color: var(--bg-result);
    color: var(--text-title);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.82rem;
}

.dynamic-table tbody tr:hover {
    background-color: var(--bg-result);
}

.dynamic-table input.form-control {
    width: 100%;
    min-width: 90px;
    border: 1px solid transparent;
    background: transparent;
    padding: 6px 6px;
    font-size: 0.9rem;
}

.dynamic-table input.form-control:focus {
    border-color: var(--color-primary);
    background: #fff;
    outline: none;
}

.dynamic-table input[readonly] {
    color: var(--text-muted);
    background: var(--bg-result);
}

.dynamic-table td:first-child input[type="date"] {
    min-width: 130px;
}

.dynamic-table .row-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    opacity: 0.7;
}

.dynamic-table .row-remove-btn:hover {
    opacity: 1;
}

.dynamic-table-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
    flex-wrap: wrap;
}

.dynamic-table-header-flex h3 {
    font-size: 1rem;
    color: var(--text-title);
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
}

.add-row-btn {
    margin-top: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.add-row-btn:hover {
    background-color: var(--bg-result);
}

.optional-tag {
    font-weight: normal;
    font-size: 0.8em;
    opacity: 0.65;
}

/* ---------- Dışa aktarma butonları (kredi sayfasıyla aynı görsel dil) ---------- */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-btn {
    background-color: var(--color-success);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.download-btn:hover { opacity: 0.9; }

.print-btn {
    background-color: #64748b;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.print-btn:hover { opacity: 0.9; }

/* ---------- Mobilde geniş tabloyu ekrana tam yayma (full-bleed) ----------
   Container'ın gerçek padding değerini bilmeye gerek kalmadan çalışan
   standart teknik: viewport genişliğine göre sola/sağa taşırır.
   Herhangi bir dinamik-tablolu sayfada .full-bleed-mobile class'ını
   .dynamic-table-wrapper (veya taşırmak istediğin başka bir kapsayıcı)
   elemanına eklemen yeterli. */
@media (max-width: 640px) {
    .full-bleed-mobile {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* ---------- Genel yazdırma iskeleti (sayfa-bağımsız gizlenecek ortak elemanlar) ----------
   Her yeni aracın kendi @media print bloğunda bu satırları tekrar tekrar
   yazmaması için; sayfaya özel olan kısım (hangi tabloyu/kartı GÖSTERECEĞİN)
   yine o sayfanın kendi @media print bloğunda kalmalı. */
@media print {
    body { background: white; color: black; }
    .navbar, .hero-section, .calc-box, .info-box, .footer,
    .btn-group, .breadcrumb-container, .share-section,
    .related-section, .faq-section, .add-row-btn,
    .dynamic-table .row-remove-btn, .dynamic-table-header-flex h3 + .btn-group {
        display: none !important;
    }
    .main-container, .calc-container { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
    .dynamic-table-wrapper { display: block !important; border: none !important; margin: 0 !important; overflow: visible !important; }
    .dynamic-table { font-size: 10pt; width: 100%; }
    .dynamic-table th { background-color: #f1f5f9 !important; color: black !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .dynamic-table input.form-control { border: none !important; background: transparent !important; color: black !important; }
}
