/* =============================================== */
/* GENEL AYARLAR */
/* =============================================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

header {
    background-color: #fff;
    padding: 15px 50px;
    border-bottom: 2px solid #ddd;
}

#ana-baslik {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.fiyat-bilgi {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

.basarili {
    color: #28a745;
    font-weight: bold;
}

/* =============================================== */
/* MENÜ STİLLERİ */
/* =============================================== */
.menu-container {
    background-color: #e9e9e9;
    padding: 10px 50px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #ddd;
}

.menu-item {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s;
    flex-shrink: 0; 
}

.menu-item:hover {
    background-color: #f0f0f0;
}

.menu-item.active {
    background-color: #00c0c0;
    color: white;
    border-color: #008080;
    font-weight: bold;
}


/* =============================================== */
/* ANA İÇERİK YAPISI (GRID) */
/* =============================================== */
.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* 3 eşit sütun */
    gap: 20px;
    padding: 30px 50px;
}

/* =============================================== */
/* KUTU STİLLERİ (Görsel, Form, Sonuç) */
/* =============================================== */

/* Ortak Kutu Stili */
.gorsel-kutu, .form-wrapper, .sonuc-wrapper {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden; 
    border: 1px solid #00c0c0; /* TÜM KUTULARA AYNI ÇERÇEVE */
    min-height: 350px; 
}

/* --- 1. GÖRSEL KUTU --- */
.gorsel-kutu {
    background-color: #fff; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

/* SVG Alanı */
#gorsel-alan {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profil-semasi {
    margin: 10px auto;
    max-width: 100%;
    height: auto;
}

/* --- 2. FORM KUTUSU (Ortadaki) --- */
.form-baslik-header {
    background-color: #00c0c0;
    color: white;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

.form-alanlari {
    padding: 20px;
}

.input-grup {
    margin-bottom: 15px;
}

.input-grup label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.input-birim-cift, .malzeme-grup, .adet-grup {
    display: flex;
    align-items: center;
}

.input-birim-cift input, .malzeme-select-wrapper select {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px;
    width: 100%;
    box-sizing: border-box;
}

.birim-kutu {
    background-color: #eee;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 4px 4px 0;
    font-size: 0.9em;
    color: #555;
}

.malzeme-adet-cift {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.malzeme-grup {
    flex: 2;
}

.malzeme-select-wrapper {
    display: flex;
}

.birim-kutu-yan {
    font-size: 0.8em;
    color: #777;
    margin-left: 10px;
    white-space: nowrap;
}

.adet-buton-grup {
    flex: 1;
    min-width: 120px;
}

.adet-grup input {
    text-align: center;
    width: 40px;
    margin: 0 5px;
    padding: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.adet-grup button {
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

.buton-cifti {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.hesapla-btn, .reset-btn {
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    flex-grow: 1;
}

.hesapla-btn {
    background-color: #28a745;
    color: white;
}

.reset-btn {
    background-color: #dc3545;
    color: white;
}


/* --- 3. SONUÇ KUTUSU --- */
.sonuc-header {
    background-color: #00c0c0;
    color: white;
    padding: 15px 20px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
}

.sonuc-alanlari {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(350px - 50px); 
}

.sonuc-listesi {
    background-color: #f8f8f8;
    border: 1px dashed #ccc;
    padding: 15px;
    border-radius: 4px;
    min-height: 150px;
    overflow-y: auto;
    margin-bottom: 20px;
}

/* YENİ STİL: Her bir sonuç listesi öğesi */
.sonuc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95em;
    padding: 3px 0;
}

.item-detay {
    font-weight: 500;
    color: #444;
}

.item-agirlik {
    font-weight: bold;
    color: #008080; 
    white-space: nowrap;
}

.sonuc-toplam-kapsayici {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; 
    margin-top: auto;
}

.tumunu-temizle-btn {
    padding: 8px 15px;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.tumunu-temizle-btn:hover {
    background-color: #ccc;
}

.genel-toplam-gosterge-kapsayici {
    background-color: #2c3e50; 
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* =============================================== */
/* FOOTER STİLLERİ */
/* =============================================== */
footer {
    background-color: #34495e;
    color: white;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.toplam-maliyet-grup {
    font-size: 0.9em;
}

.maliyet-degeri {
    font-size: 1.8em;
    font-weight: bold;
    color: #00c0c0; 
    margin-top: 5px;
}

.maliyet-aciklama {
    font-size: 0.8em;
    opacity: 0.7;
}

.iletisim-grup {
    text-align: right;
}

.mail-adresi {
    color: #f1c40f; 
    font-weight: bold;
    margin-top: 5px;
}

/* =============================================== */
/* RESPONSIVE AYARLAR */
/* =============================================== */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: 1fr 1fr;
    }
    .sonuc-wrapper {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .menu-container, header, footer {
        padding: 10px 20px;
    }
    .sonuc-wrapper {
        grid-column: span 1;
    }
    footer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .iletisim-grup {
        text-align: center;
    }
}
/* =============================================== */
/* SEO MAKALELERİ ALANI - GÜNCELLENMİŞ STİL */
/* =============================================== */
.seo-makale-kapsayici {
    /* Genişliği 1200px'ten 850px'e düşürdük. 
       Bu, daha rahat bir okuma satır uzunluğu sağlar. */
    max-width: 1000px; 
    margin: 40px auto; /* Üstte, altta 40px boşluk; sağda solda auto (ortalar) */
    padding: 30px;
    background-color: #ffffff; /* Arka planı beyaza çekerek ana tasarımla bütünleşmeyi artırır. */
    border-radius: 12px;
    /* Hafif bir gölge ekleyerek içeriden ayrışmasını sağlar */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); 
    color: #333;
    line-height: 1.7; /* Okunabilirliği artırmak için satır yüksekliğini artırdık */
}

/* Başlıklar */
.seo-makale-kapsayici h2 {
    font-size: 2.2em;
    color: #007bff;
    border-bottom: 3px solid #00c0c0; /* Vurgu rengini kullandık */
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center; /* Ana başlığı ortaladık */
}

.seo-makale-kapsayici h3 {
    font-size: 1.7em;
    color: #333;
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 6px solid #007bff; /* Mavi vurgu */
    padding-left: 15px;
}

.seo-makale-kapsayici h4 {
    font-size: 1.25em;
    color: #555;
    margin-top: 25px;
    font-weight: bold;
}

/* Metin ve Listeler */
.seo-makale-kapsayici p,
.seo-makale-kapsayici li {
    font-size: 1.05em;
    margin-bottom: 18px;
    text-align: justify;
}

.seo-makale-kapsayici ul {
    list-style-type: none; /* Standart madde işaretlerini kaldırdık */
    margin-left: 0;
    padding-left: 0;
}

.seo-makale-kapsayici ul li {
    padding-left: 1.5em;
    position: relative;
}

.seo-makale-kapsayici ul li::before {
    content: '▪'; /* Özel bir madde işareti */
    position: absolute;
    left: 0;
    color: #00c0c0; /* Turkuaz madde işareti rengi */
    font-weight: bold;
}

/* Vurgulu kelimeler */
.seo-makale-kapsayici strong {
    color: #007bff;
    font-weight: 600;
}