/* Genel Ayarlar ve Font Tanımı */
:root {
    /* Renk Paleti (Diyetisyene uygun, doğal ve güven veren renkler) */
    --primary-color: #4CAF50; /* Yeşil - Sağlık, Doğa */
    --secondary-color: #8BC34A; /* Açık Yeşil */
    --text-color: #333;
    --light-bg: #f7f7f7;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Başlık (Hero) Bölümü */
.hero {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
    box-shadow: 0 4px 6px var(--shadow);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%; /* Resim daire şeklinde */
    object-fit: cover;
    border: 5px solid var(--secondary-color);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    font-weight: 700;
}

.hero h2 {
    font-size: 1.2em;
    font-weight: 300;
    opacity: 0.9;
}

/* Ortak Section Stilleri */
.section {
    padding: 60px 0;
}

.section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

/* Hakkımda Bölümü */
.about {
    background-color: var(--light-bg);
}

.about p {
    text-align: justify;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Hizmetler Bölümü */
.services {
    background-color: var(--white);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    background-color: var(--secondary-color);
    color: var(--white);
}

.service-item i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-item:hover i {
    color: var(--white);
}

.service-item h3 {
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Alt Kısım (Footer) ve Sosyal Medya */
.footer {
    background-color: var(--text-color);
    color: var(--light-bg);
    text-align: center;
    padding: 30px 0;
}

.footer p {
    margin-bottom: 15px;
    font-size: 0.9em;
}

.social-links {
    margin-bottom: 20px;
}

.social-links a {
    color: var(--light-bg);
    font-size: 1.5em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color); /* Hover'da canlı yeşil */
}

.copyright {
    font-size: 0.8em;
    opacity: 0.7;
}

/* ************************************** */
/* ********** MOBİL UYUMLULUK *********** */
/* ************************************** */

@media (max-width: 768px) {
    .hero {
        padding: 60px 10px;
    }

    .hero h1 {
        font-size: 2em;
    }

    .hero h2 {
        font-size: 1em;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .section {
        padding: 40px 0;
    }

    .section h2 {
        font-size: 1.7em;
        margin-bottom: 30px;
    }

    .service-list {
        /* Tek sütuna düşmesi için grid yapısı otomatik hallediyor */
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8em;
    }

    .hero h2 {
        font-size: 0.9em;
    }

    .social-links a {
        font-size: 1.3em;
        margin: 0 8px;
    }
}
/* Bloglar Bölümü Stilleri */
.blog {
    background-color: var(--light-bg); /* Hakkımda bölümünden ayırt etmek için farklı bir zemin rengi */
}

.blog-list {
    display: grid;
    /* Masaüstünde 3 sütun */
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
}

.blog-post {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Resmi kutuya sığdırır */
}

.blog-post h3 {
    padding: 15px 20px 0;
    font-size: 1.2em;
    color: var(--primary-color);
}

.blog-post p {
    padding: 0 20px;
    font-size: 0.95em;
    color: #555;
}

.blog-post .post-date {
    font-size: 0.8em;
    color: #999;
    padding: 10px 20px 5px;
}

.read-more {
    display: block;
    text-align: right;
    padding: 15px 20px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
}

.all-blogs-link {
    text-align: center;
    margin-top: 40px;
}

.all-blogs-link a {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.all-blogs-link a:hover {
    background-color: #388E3C; /* Daha koyu yeşil */
}


/* ************************************** */
/* ********** MOBİL UYUMLULUK (Bloglar) *********** */
/* ************************************** */

@media (max-width: 992px) {
    /* Orta boy ekranlar (Tablet) */
    .blog-list {
        /* İki sütuna düşür */
        grid-template-columns: repeat(2, 1fr); 
    }
    /* Üçüncü blog yazısını mobil/tablet görünümünde gizle */
    .blog-post.hidden-on-mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Küçük ekranlar (Telefon) */
    .blog-list {
        /* Tek sütuna düşür */
        grid-template-columns: 1fr;
    }
}

/* Blog Detay Sayfası için Özel Stiller */

/* Üst Navigasyon Çubuğu */
.top-nav {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top-nav .container {
    display: flex;
    align-items: center;
}

.logo-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5em;
    font-weight: 600;
}

.logo-link i {
    margin-right: 10px;
    color: var(--secondary-color); /* Logoda farklı bir renk */
}

/* Blog İçeriği Bölümü */
.blog-detail-section {
    padding-top: 50px;
    padding-bottom: 80px;
}

.blog-content-wrapper {
    max-width: 850px; /* Okunabilirliği artırmak için içeriği daraltalım */
    margin: 0 auto;
}

.post-title {
    font-size: 2.5em;
    color: var(--text-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

/* Meta Bilgiler (Yazar, Tarih, Kategori) */
.post-meta {
    margin-bottom: 30px;
    color: #666;
    font-size: 0.9em;
}

.post-meta span {
    margin-right: 20px;
}

.post-meta i {
    margin-right: 5px;
    color: var(--primary-color);
}

.detail-img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Post İçeriği */
.post-body h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
}

.post-body h3 {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.post-body p {
    margin-bottom: 20px;
    line-height: 1.7;
    text-align: justify;
}

.post-body ul {
    margin: 20px 0 30px 20px;
    padding-left: 20px;
    list-style: disc;
}

.post-body li {
    margin-bottom: 10px;
}

/* Alıntı (Blockquote) Stili */
blockquote {
    border-left: 5px solid var(--secondary-color);
    padding: 15px 20px;
    margin: 30px 0;
    background-color: #e8f5e9; /* Çok hafif yeşil arka plan */
    font-style: italic;
    color: #4CAF50;
}

/* Sosyal Medya Paylaşım Seçenekleri */
.share-options {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    display: flex;
    align-items: center;
}

.share-options p {
    margin: 0 20px 0 0;
    font-weight: 600;
}

.share-options a {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.share-options a:hover {
    color: var(--secondary-color);
}

/* Geri Dön Butonu */
.back-to-blog {
    display: block;
    text-align: center;
    margin-top: 40px;
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    width: 250px;
    margin-left: auto;
    margin-right: auto;
}

.back-to-blog:hover {
    background-color: var(--primary-color);
}

/* Mobil Uyumlu Düzenlemeler */
@media (max-width: 768px) {
    .post-title {
        font-size: 1.8em;
    }

    .detail-img {
        max-height: 250px;
    }
    
    .post-meta span {
        display: block;
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .post-body h2 {
        font-size: 1.5em;
    }

    .share-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .share-options p {
        margin-bottom: 15px;
    }
}