/* ROBOT HESAP - EKSİKSİZ MODERN TASARIM SİSTEMİ (V2.0)
    Tüm sayfalar (Ana Sayfa, Hesaplama Araçları, Kurumsal Sayfalar) için tek dosya.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-body: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --primary-blue: #2563eb;
    --border-light: #e2e8f0;
    --text-muted: #64748b;
    --hover-gray: #f1f5f9;
    --success-green: #ecfdf5;
    --success-text: #059669;
}

/* --- TEMEL SIFIRLAMA --- */
* { box-sizing: border-box; -webkit-font-smoothing: antialiased; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    padding-top: 85px; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- 1. ÜST NAVİGASYON (menu.html) --- */
nav {
    position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); height: 65px; display: flex; align-items: center; 
    justify-content: space-between; padding: 0 4%; z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

.site-logo { font-weight: 800; color: var(--primary-blue); text-decoration: none; font-size: 1.3rem; letter-spacing: -0.5px; }
.categories-nav { display: flex; justify-content: flex-end; height: 100%; flex: 1; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; }

.dropbtn {
    background: none; border: none; color: var(--text-dark); font-size: 0.82rem; 
    font-weight: 600; padding: 0 15px; height: 100%; cursor: pointer; 
    white-space: nowrap; transition: 0.2s; display: flex; align-items: center;
}
.nav-item:hover .dropbtn { color: var(--primary-blue); background-color: var(--hover-gray); }

.dropdown-content {
    display: none; position: absolute; top: 65px; left: 50%; transform: translateX(-50%);
    background-color: var(--bg-white); min-width: 280px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border: 1px solid var(--border-light); border-radius: 0 0 12px 12px; z-index: 1100;
}
.nav-item:hover .dropdown-content { display: block; }
.dropdown-content a {
    color: var(--text-dark); padding: 10px 20px; text-decoration: none;
    display: block; font-size: 0.78rem; line-height: 1.4; border-bottom: 1px solid #f1f5f9;
}
.dropdown-content a:hover { background-color: var(--hover-gray); color: var(--primary-blue); }

/* --- 2. GENEL SAYFA YAPISI (GENİŞ EKRAN) --- */
.page-wrapper { 
    display: flex; justify-content: center; max-width: 1800px; 
    margin: 0 auto; gap: 30px; padding: 0 30px; width: 100%;
}
.ad-sidebar { width: 160px; min-width: 160px; padding-top: 20px; }
.ad-placeholder { 
    background: #f1f5f9; border: 1px dashed #cbd5e0; border-radius: 12px; 
    height: 600px; position: sticky; top: 100px; display: flex;
    align-items: center; justify-content: center; color: #94a3b8; font-size: 0.7rem;
}
.main-container { flex: 1; padding: 20px 0; width: 100%; text-align: center; }

/* --- 3. ANA SAYFA VE BAŞLIKLAR --- */
.hero-section { margin-bottom: 45px; }
.hero-section h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 15px; color: var(--text-dark); letter-spacing: -1px; }
.hero-section p { color: var(--text-muted); font-size: 1.15rem; max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* Ortalanmış Kategori Başlıkları */
.category-title {
    display: table;
    margin: 50px auto 30px auto; 
    text-align: center; 
    font-size: 1.6rem; 
    font-weight: 800; 
    padding-bottom: 12px; 
    border-bottom: 4px solid var(--primary-blue);
}

.grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; }
.tool-card { 
    background: #fff; border: 1px solid var(--border-light); padding: 40px 25px; 
    border-radius: 24px; text-decoration: none; color: var(--text-dark); 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; align-items: center; 
}
.tool-card:hover { border-color: var(--primary-blue); transform: translateY(-10px); box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1); }
.tool-icon { font-size: 3.5rem; margin-bottom: 20px; }
.tool-name { font-weight: 700; font-size: 1.1rem; }

/* --- 4. HESAPLAMA ARAÇLARI (Dropdown Menülü Yapı) --- */
.selector-wrapper { max-width: 600px; margin: 0 auto 35px auto; text-align: left; }
.selector-wrapper label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 10px; color: var(--text-muted); text-transform: uppercase; }

.modern-select {
    width: 100%; padding: 18px 25px; font-size: 1.1rem; font-weight: 600; font-family: inherit;
    color: var(--text-dark); background: #fff; border: 2px solid var(--primary-blue);
    border-radius: 16px; cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563eb'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 25px center; background-size: 20px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.1); transition: 0.3s;
}

.calc-main-full { max-width: 850px; margin: 0 auto; background: #fff; border: 1px solid var(--border-light); border-radius: 28px; padding: 50px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05); }
.calc-section { display: none; }
.calc-section.active { display: block; animation: fadeIn 0.4s ease; }

.input-wrapper { margin-bottom: 25px; text-align: left; }
.input-wrapper label { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 10px; }
.input-field { 
    width: 100%; padding: 18px; border: 1px solid var(--border-light); border-radius: 14px; 
    font-size: 1.1rem; font-family: inherit; background: #f8fafc; transition: 0.2s;
}
.input-field:focus { border-color: var(--primary-blue); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); }

.action-btn { 
    background: var(--primary-blue); color: #fff; border: none; padding: 20px; 
    border-radius: 16px; font-weight: 700; cursor: pointer; width: 100%; 
    font-size: 1.15rem; transition: 0.3s; margin-top: 10px;
}
.action-btn:hover { background: #1d4ed8; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(37,99,235,0.2); }

.modern-result { 
    margin-top: 40px; padding: 35px; background: var(--success-green); 
    border-radius: 20px; border: 1px solid #bbf7d0; text-align: center; 
}
.modern-result span { color: var(--success-text); font-weight: 600; font-size: 1rem; text-transform: uppercase; }
.modern-result strong { font-size: 3.2rem; color: var(--success-text); display: block; margin-top: 10px; letter-spacing: -1.5px; }

/* --- 5. KURUMSAL SAYFALAR (text-page) --- */
.main-container.text-page { text-align: left; padding: 60px; background: #fff; border-radius: 24px; border: 1px solid var(--border-light); max-width: 1000px; margin: 20px auto; }
.content-section { margin-bottom: 40px; }
.content-section h2 { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 20px; border-left: 6px solid var(--primary-blue); padding-left: 20px; }
.content-section p { font-size: 1.1rem; line-height: 1.8; color: #334155; }

/* İletişim Kartı */
.contact-card { background: #f8fafc; border: 1px solid var(--border-light); padding: 50px; border-radius: 24px; text-align: center; }
.email-link { 
    display: inline-block; font-size: 1.4rem; font-weight: 700; color: var(--primary-blue); 
    text-decoration: none; padding: 15px 30px; border: 2px solid var(--primary-blue); 
    border-radius: 14px; transition: 0.2s; margin: 25px 0; 
}
.email-link:hover { background: var(--primary-blue); color: #fff; }

/* --- 6. MODÜLER FOOTER --- */
footer { padding: 80px 0; background: #fff; border-top: 1px solid var(--border-light); text-align: center; margin-top: auto; width: 100%; }
.footer-links { margin-bottom: 35px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.footer-links a { color: var(--text-dark); text-decoration: none; font-size: 1rem; font-weight: 700; transition: 0.2s; }
.footer-links a:hover { color: var(--primary-blue); }
.copyright-text { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }

/* --- 7. REKLAM VE MOBİL --- */
.ad-bottom { width: 100%; margin: 40px 0; min-height: 100px; background: #f1f5f9; border: 1px dashed #cbd5e0; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #94a3b8; }

@media (max-width: 1024px) {
    .page-wrapper { padding: 0 15px; }
    .ad-sidebar { display: none; }
    .calc-main-full { padding: 30px; }
    .hero-section h1 { font-size: 2rem; }
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }