/* -----------------------------------------------------------
   1. TEMEL AYARLAR
----------------------------------------------------------- */
:root {
    --primary-color: #10b981; /* Zümrüt Yeşili */
    --primary-dark: #059669;
    --primary-light: #d1fae5; /* Vurgular için açık yeşil */
    
    --text-dark: #111827;     /* Başlıklar için Koyu Renk */
    --text-body: #4b5563;     /* Yazılar için Gri */
    --bg-body: #f3f4f6;       /* Sayfa Arka Planı */
    --white: #ffffff;
    
    --border-radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* -----------------------------------------------------------
   2. HEADER (Senin Sevdiğin Kalın Logolu Yapı)
----------------------------------------------------------- */
header {
    background-color: var(--white);
    height: 75px;
    /* Daha belirgin gölge */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

/* Logo: Senin attığın koddaki font ayarları */
.logo {
    font-size: 1.7rem; /* Biraz daha büyük */
    font-weight: 900;  /* İyice kalın */
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.logo span { color: var(--primary-color); } /* Dehası kısmı yeşil */

.nav-menu { display: flex; gap: 25px; }
.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}
.nav-menu a:hover { 
    color: var(--primary-color); 
    background-color: #f0fdf4; /* Hover olunca arkası hafif yeşersin */
}

/* -----------------------------------------------------------
   3. HERO ALANI (ARAMA) - ARTIK DAHA BELİRGİN!
----------------------------------------------------------- */
.calculator-hero {
    /* Düz beyaz yerine, üstten aşağı hafif Yeşil > Beyaz geçişi */
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    
    padding: 60px 40px;
    border-radius: var(--border-radius);
    
    /* Kartın sınırlarını belli eden ince yeşil çizgi */
    border: 1px solid #a7f3d0;
    border-top: 6px solid var(--primary-color); /* Üst çizgi daha kalın */
    
    /* Sayfadan fırlayan gölge efekti */
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    text-align: center;
    margin-top: 40px;
    margin-bottom: 50px;
}

.calculator-hero h1 {
    color: var(--text-dark);
    margin: 0 0 15px 0;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.calculator-hero p {
    color: #4b5563;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

/* Arama Kutusu */
.search-box { position: relative; max-width: 650px; margin: 0 auto; }
.search-box input { 
    width: 100%; 
    padding: 22px 25px 22px 60px; 
    border: 2px solid #d1d5db; /* Çerçeve biraz daha koyu gri */
    border-radius: 50px; 
    font-size: 1.1rem; 
    outline: none;
    transition: 0.3s;
    background: var(--white);
    /* Arama kutusu da gölgeli olsun */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.search-box input:focus { 
    border-color: var(--primary-color); 
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2); /* Yeşil Parlama */
}

.search-box i { 
    position: absolute; 
    left: 22px; 
    top: 24px; 
    color: var(--primary-color); 
    font-size: 22px; 
}

/* -----------------------------------------------------------
   4. KATEGORİ KARTLARI - ARTIK YAVAN DEĞİL
----------------------------------------------------------- */
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    margin-bottom: 80px;
}

.cat-card {
    background: var(--white);
    border-radius: var(--border-radius);
    /* Kartın etrafında belirgin çizgi */
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    overflow: hidden; /* Taşmaları gizle */
    transition: 0.3s;
}

/* Hover Efekti: Yukarı kalksın ve yeşil çerçeve olsun */
.cat-card:hover { 
    transform: translateY(-5px); 
    border-color: var(--primary-color); 
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1); 
}

/* KART BAŞLIĞI - Burayı renklendirdik! */
.cat-header { 
    display: flex; 
    align-items: center; 
    padding: 20px 25px; 
    /* Başlık kısmının arkası hafif gri/yeşil olsun ki ayrı dursun */
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.cat-header i { 
    font-size: 24px; 
    color: var(--primary-color); 
    margin-right: 15px; 
    background: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* İkon da kutulu olsun */
}

.cat-header h3 { 
    margin: 0; 
    font-size: 1.15rem; 
    font-weight: 700;
    color: var(--text-dark); 
}

/* Kartın İçeriği (Linkler) */
.cat-card ul { 
    list-style: none; 
    padding: 20px 25px; 
    margin: 0; 
}
.cat-card ul li { margin-bottom: 12px; }
.cat-card ul li a { 
    text-decoration: none; 
    color: #4b5563; 
    font-weight: 500; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    transition: 0.2s; 
}

/* Ok ikonu */
.cat-card ul li a::before { 
    content: "→"; 
    color: #9ca3af; 
    transition: 0.2s; 
}

.cat-card ul li a:hover { color: var(--primary-color); padding-left: 5px; }
.cat-card ul li a:hover::before { color: var(--primary-color); }

/* -----------------------------------------------------------
   5. FOOTER (KOYU VE OKUNAKLI)
----------------------------------------------------------- */
footer {
    /* Senin beğendiğin koyu tema */
    background-color: #1f2937; 
    color: #e5e7eb;
    padding: 60px 0 20px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #374151; /* Çizgi rengi */
}

.footer-col h4 { 
    color: var(--white); 
    margin-top: 0; 
    margin-bottom: 20px; 
    font-size: 1.1rem; 
    font-weight: 700;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { 
    color: #9ca3af; /* Linkler açık gri */
    text-decoration: none; 
    font-size: 0.95rem; 
    transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--primary-color); }

.copyright {
    text-align: center;
    padding-top: 25px;
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 900px) {
    .header-inner { flex-direction: column; gap: 15px; padding: 15px 0; height: auto;}
    .nav-menu { flex-wrap: wrap; justify-content: center; }
}