/*
Theme Name: Basit Haber Teması
Theme URI: http://example.com/haber-temasi
Author: Senin Adın
Author URI: http://example.com
Description: Basit bir haber teması örneği.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, two-columns, right-sidebar, custom-header, custom-menu
Text Domain: basit-haber-temasi
*/

/* Temanızın temel CSS stillerini buraya ekleyebilirsiniz */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

.container {
    width: 80%;
    margin: 0 auto; /* Center the container */
    overflow: hidden;
    padding: 20px 0;
}

header {
    background: #fff;
    padding: 10px 0;
    border-bottom: #cccccc 1px solid;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

h1, h2, h3 {
    color: #333;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

article {
    background: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

/* İki Sütunlu Layout için Temel Kurallar */
.container {
    display: flex; /* Flexbox düzenini aktifleştir */
    gap: 20px; /* Ana içerik ve kenar çubuğu arasına boşluk */
}

/* Ana içerik alanı (index.php, single.php vb.) */
.container > *:not(#secondary) { /* Container içindeki secondary hariç tüm elementler */
    flex: 2; /* Ana içerik kenar çubuğundan iki kat daha geniş olsun */
}

/* Kenar Çubuğu alanı */
#secondary {
    flex: 1; /* Kenar çubuğu için ayrılan alan */
}

/* Küçük ekranlar için düzeni değiştir */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Küçük ekranlarda sütun düzenine geç */
    }

    .container > *:not(#secondary),
    #secondary {
        flex: auto; /* Flex özelliklerini sıfırla */
        width: 100%; /* Tam genişlik */
    }
}

/* Haber Listesi (index.php) specific overrides or additions */
article {
    /* Existing styles will be applied, adding more specifics if needed */
    border-bottom: 1px solid #eee; /* Add border to separate list items */
    padding-bottom: 20px; /* Add padding below content */
    margin-bottom: 30px; /* Increase margin between articles in list */
}

/* Tekil Haber (single.php) */
.post-thumbnail {
    margin-bottom: 20px;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove extra space below image */
}

.entry-content {
    margin-bottom: 20px; /* Add space below the main content */
}

.post-meta {
    font-size: 0.9em;
    color: #777;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

/* Widget başlıkları */
.widget-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

/* Widget liste elemanları (örneğin son yazılar, kategoriler) */
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget a {
    text-decoration: none;
    color: #333;
}

/* Footer basic styles */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: #cccccc 1px solid; /* Add a top border */
    background: #f4f4f4; /* Change background to a lighter shade */
    color: #555; /* Adjust text color for the new background */
    font-size: 0.9em; /* Adjust font size */
}

footer a { /* Adjust link color for the new background */
    color: #0073aa;
}

/* Yorum Bölümü */
.comments-area {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.comments-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 15px;
    background-color: #fff; /* Add background to comments */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* Add subtle shadow */
}

.comment-meta.commentmetadata {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 10px;
}

.comment-author.vcard {
    font-weight: bold;
    margin-bottom: 5px;
}

.comment-content {
    margin-bottom: 10px;
}

.reply {
    font-size: 0.9em;
}

.comment-form {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Padding ve border genişliğe dahil */
}

.comment-form input[type="submit"] {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease; /* Smooth transition on hover */
}

.comment-form input[type="submit"]:hover {
    background-color: #005177;
}

/* Navigasyon Menüsü */
.main-navigation {
    margin-top: 20px;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Menü elemanlarını yan yana dizer */
    justify-content: center; /* Menüyü ortalar */
}

.main-navigation ul li {
    margin: 0 15px; /* Menü elemanları arasına boşluk */
    position: relative; /* Alt menüler için */
}

.main-navigation ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 0;
    display: block;
}

.main-navigation ul li a:hover {
    color: #0073aa;
}

/* Alt Menüler (Dropdown) */
.main-navigation ul ul {
    display: none; /* Varsayılan olarak gizli */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-direction: column; /* Alt menü elemanlarını alt alta dizer */
    z-index: 99;
}

.main-navigation ul li:hover > ul {
    display: flex; /* Hover durumunda alt menüyü göster */
}

.main-navigation ul ul li {
    margin: 0;
    border-bottom: 1px dashed #eee;
}

.main-navigation ul ul li:last-child {
    border-bottom: none;
}

.main-navigation ul ul li a {
    padding: 8px 20px;
    white-space: nowrap; /* Alt menü öğelerinin tek satırda kalmasını sağlar */
}

@media (max-width: 768px) {
    .main-navigation ul {
        flex-direction: column; /* Küçük ekranlarda dikey menü */
        align-items: center; /* Menü elemanlarını ortalar */
    }

    .main-navigation ul li {
        margin: 10px 0;
    }

    .main-navigation ul ul {
        position: static; /* Küçük ekranlarda alt menüyü normal akışta göster */
        border: none;
        box-shadow: none;
        padding: 0;
        background: none;
    }

    .main-navigation ul li:hover > ul {
        display: flex;
    }

    .main-navigation ul ul li {
        border-bottom: none;
        text-align: center;
    }

    .main-navigation ul ul li a {
        padding: 5px 0;
    }
}

/* Tam Genişlik Şablonu */
.container.full-width-template {
    display: block; /* Flexbox'ı iptal et */
    width: 80%; /* Veya ihtiyaca göre farklı bir genişlik */
    margin: auto; /* Ortala */
}

/* Küçük ekranlarda flexbox'a geri dönmesini engellemek için */
@media (max-width: 768px) {
    .container.full-width-template {
        flex-direction: column; /* Zaten block olduğu için etkisi olmaz, ama açık olmak adına */
        width: 100%;
    }
}

/* Görsel Animasyonlar (Örnek) */
article {
    transition: transform 0.3s ease-in-out; /* Animasyon için geçiş süresi ve hızı */
}

article:hover {
    transform: scale(1.02); /* Fare üzerine gelindiğinde %2 büyüt */
}

/* Öne çıkan görsel üzerinde hover efekti */
.post-thumbnail img {
    transition: transform 0.3s ease-in-out;
    transform: scale(1); /* Ensure starting scale is 1 */
}

.post-thumbnail img:hover {
    transform: scale(1.05); /* Görsel üzerine gelindiğinde %5 büyüt */
}

/* Kategori Listeleri */
.widget ul.category-posts-widget,
.widget ul.product-categories { /* Yaygın widget sınıfları */
 list-style: none;
 padding: 0;
 margin: 0;
}

.widget ul.category-posts-widget li,
.widget ul.product-categories li {
 margin-bottom: 8px;
 padding-bottom: 8px;
 border-bottom: 1px dotted #ddd;
}

.widget ul.category-posts-widget li:last-child,
.widget ul.product-categories li:last-child {
 border-bottom: none;
 padding-bottom: 0;
}

.widget ul.category-posts-widget li a,
.widget ul.product-categories li a {
 text-decoration: none;
 color: #555;
}

.widget ul.category-posts-widget li a:hover,
.widget ul.product-categories li a:hover {
 color: #0073aa;
}

/* Kategori sayısı parantez içindeyse stil */
.widget ul.category-posts-widget li span.post-count,
.widget ul.product-categories li span.count {
 font-size: 0.9em;
 color: #888;
 margin-left: 5px;
}

/* Öne Çıkan Haberler Bölümü */
.featured-posts {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 30px;
}

.featured-posts-list {
    display: flex; /* Yan yana diz */
    gap: 20px; /* Aralarına boşluk */
    flex-wrap: wrap; /* Küçük ekranlarda alt alta geç */
}

.featured-post-item {
    flex: 1 1 300px; /* Minimum 300px genişlik, esnek büyüme ve küçülme */
    text-align: center;
}

.featured-post-item .post-thumbnail img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.featured-post-item h3 {
    margin-top: 0;
}

.featured-post-item h3 a {
    text-decoration: none;
    color: #333;
}

.featured-post-item h3 a:hover {
    color: #0073aa;
}

/* Küçük ekranlarda tek sütun */
@media (max-width: 768px) {
    .featured-posts-list {
        flex-direction: column;
    }
}

/* Sosyal Medya İkon Boyutu */
.social-links img {
 width: 24px; /* Veya istediğiniz boyut */
 height: auto;
 margin: 0 5px; /* İkonlar arasına boşluk */
 vertical-align: middle;
}