/* =========================================
   iyihesaplama.com - Minimalist Vanilla CSS
   ========================================= */

:root {
    /* Kullanıcının Belirlediği Renk Paleti */
    --bg-color: #edf3ff;
    --heading-color: #213045;
    --link-color: #2562df;
    --link-hover: #1d4ed8;
    --text-color: #484f59;
    --orange-color: #f79d09;
    
    /* Apple Tarzı Tasarım Değişkenleri */
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --font-main: 'Plus Jakarta Sans', system-ui, sans-serif;
    --shadow-sm: 0 2px 8px rgba(33, 48, 69, 0.04);
    --shadow-md: 0 12px 32px rgba(33, 48, 69, 0.08);
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* 1. Temel Sıfırlama */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--link-color); transition: all 0.2s ease; }
a:hover { color: var(--link-hover); }

/* 2. Genel Düzen */
.container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.site-main { flex: 1; padding: 60px 0; }

/* 3. Header (Üst Menü) */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); /* Apple tarzı buzlu cam efekti */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 700; color: var(--heading-color); letter-spacing: -0.5px; }
.logo-icon { color: var(--link-color); width: 24px; height: 24px; }
.logo span { color: var(--link-color); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 15px; color: var(--text-color); }
.main-nav a:hover { color: var(--link-color); }

/* 4. Dinamik Sayfa Başlığı (H1) */
.page-main-title {
    text-align: center; font-size: 32px; font-weight: 800;
    color: var(--heading-color); margin-bottom: 40px; letter-spacing: -1px;
}

/* 5. SEO Zengin Metin Alanı (Quill Editör Çıktısı İçin) */
.seo-content {
    background: var(--card-bg); padding: 40px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); margin-top: 60px;
}
.seo-content h2 { color: var(--heading-color); font-size: 24px; margin: 30px 0 15px; letter-spacing: -0.5px; }
.seo-content h3 { color: var(--heading-color); font-size: 20px; margin: 25px 0 12px; }
.seo-content p { margin-bottom: 16px; font-size: 16px; color: var(--text-color); }

/* 6. Footer */
.site-footer {
    background-color: transparent; padding: 40px 0; text-align: center;
    font-size: 14px; color: #6b7280; border-top: 1px solid rgba(33, 48, 69, 0.1);
}
/* =========================================
   Anasayfa Vitrin (Grid ve Kartlar) CSS'i
   ========================================= */

/* Hero (Karşılama) Alanı */
.hero-section { text-align: center; padding: 40px 0 60px; max-width: 700px; margin: 0 auto; }
.hero-title { font-size: 38px; font-weight: 800; color: var(--heading-color); letter-spacing: -1.5px; line-height: 1.2; margin-bottom: 16px; }
.hero-desc { font-size: 18px; color: var(--text-color); margin-bottom: 30px; }

/* Arama Çubuğu */
.search-box {
    position: relative; max-width: 500px; margin: 0 auto;
}
.search-box input {
    width: 100%; padding: 18px 20px 18px 50px; font-size: 16px; font-family: inherit;
    border: 1px solid var(--border-color); border-radius: 100px; 
    box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.search-box input:focus { outline: none; border-color: var(--link-color); box-shadow: 0 0 0 4px rgba(37, 98, 223, 0.1); }
.search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #9ca3af; width: 20px; height: 20px; }

/* Kategori Başlıkları */
.category-section { margin-bottom: 60px; }
.category-title {
    display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700;
    color: var(--heading-color); margin-bottom: 24px; padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}
.cat-icon { color: var(--link-color); }

/* Grid (Izgara) Sistemi */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Apple Tarzı Animasyonlu Kartlar */
.tool-card {
    display: block; background: var(--card-bg); border-radius: var(--radius-lg);
    padding: 26px; border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
}
.tool-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cbd5e1;
}

/* Kart İçi İkon Kutuları */
.tool-icon-wrapper {
    width: 54px; height: 54px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px; transition: transform 0.3s ease;
}
.tool-card:hover .tool-icon-wrapper { transform: scale(1.1); }

/* Renk Sınıfları */
.bg-blue-light { background-color: #eff6ff; } .text-blue { color: #3b82f6; }
.bg-orange-light { background-color: #fff7ed; } .text-orange { color: #f97316; }
.bg-green-light { background-color: #f0fdf4; } .text-green { color: #22c55e; }
.bg-purple-light { background-color: #faf5ff; } .text-purple { color: #a855f7; }
.bg-gray-light { background-color: #f3f4f6; } .text-gray { color: #6b7280; }

/* Kart Tipografisi */
.tool-title { font-size: 18px; font-weight: 700; color: var(--heading-color); margin-bottom: 8px; letter-spacing: -0.3px; }
.tool-desc { font-size: 14px; color: var(--text-color); line-height: 1.5; }
/* =========================================
   7. Hesaplama Motoru (Kart, Form ve Sonuçlar)
   ========================================= */

/* Hesaplama Kartı Ana Taşıyıcı */
.calc-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); /* Oval köşeler */
    padding: 40px;
    box-shadow: var(--shadow-md); /* Yumuşak derinlik gölgesi */
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Form Elemanları (Inputlar) */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px; /* Geniş ve ferah iç boşluk */
    font-size: 18px; /* Rakamların net okunması için büyük punto */
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--heading-color);
    background-color: #f8fafc; /* Odaklanılmadığında çok hafif gri zemin */
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: all 0.3s ease; /* Yumuşak renk geçişi */
}

/* Inputa Tıklanınca (Focus State - Apple Tarzı Işıltı) */
.form-group input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--link-color);
    box-shadow: 0 0 0 4px rgba(37, 98, 223, 0.15); /* Mavi parlayan halka */
}

/* Sonuç Kutusu */
.result-box {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 32px;
}

/* Sonuç Satırları */
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #cbd5e1; /* Satırlar arası kesik çizgi */
}

.result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.result-item:first-child {
    padding-top: 0;
}

.result-label {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.result-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
}