/*
Theme Name: Yeşil Haber
Description: SEO uyumlu, AdSense hazır, mobil uyumlu modern yeşil haber teması. Açılır menü ve slider entegreli. Renkler sabitlendi.
Author: Gemini
Version: 1.4
*/

:root {
    --primary-green: #2e7d32;
    --dark-green: #1b5e20;
    --light-green: #e8f5e9;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-body: #f4f7f6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Üst Kısım ve Header Sabit Renkleri */
header { 
    background-color: #2e7d32 !important; 
    color: #ffffff !important; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 15px 0; }
.logo { font-size: 2rem; font-weight: 900; text-decoration: none; color: #ffffff !important; letter-spacing: 1px; }

/* --- Özel Logo Tasarım ve Boyut Ayarları --- */
.logo img, .custom-logo {
    max-height: 55px; 
    width: auto;      
    display: block;
    object-fit: contain;
}

/* --- AÇILIR MENÜ (DROPDOWN) DÜZENLEMELERİ --- */
.primary-menu { 
    list-style: none; 
    display: flex; 
    gap: 20px; 
    align-items: center;
    margin: 0; 
    padding: 0; 
}

.primary-menu > li { 
    position: relative; 
    padding: 10px 0; 
}

.primary-menu a { 
    color: #ffffff !important; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s ease; 
}

.primary-menu a:hover { 
    color: #e8f5e9 !important; 
}

/* Alt Menü (Sub-Menu) Temel Ayarları */
.primary-menu .sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #1b5e20 !important;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 9999 !important; 
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    border-radius: 4px;
    list-style: none;
}

.primary-menu li:hover > .sub-menu {
    visibility: visible;
    opacity: 1;
}

.primary-menu .sub-menu li {
    display: block;
    padding: 0;
    width: 100%;
}

.primary-menu .sub-menu a {
    padding: 12px 20px;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 0.95rem;
    color: #ffffff !important;
}

.primary-menu .sub-menu li:last-child a {
    border-bottom: none;
}

.primary-menu .sub-menu a:hover {
    background-color: #2e7d32 !important; 
    color: #ffffff !important;
}

/* --- MOBİL MENÜ TEMEL AYARLARI (Masaüstünde Gizli) --- */
.mobile-menu-toggle { display: none; background: none; border: none; color: #ffffff; font-size: 1.8rem; cursor: pointer; padding: 5px; margin-left: 10px; }
.mobile-nav { display: none; background-color: #1b5e20 !important; width: 100%; border-top: 1px solid rgba(255,255,255,0.1); padding: 10px 0; }
.mobile-menu-list { list-style: none; margin: 0; padding: 0; }
.mobile-menu-list li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu-list a { display: block; padding: 12px 15px; color: #ffffff !important; text-decoration: none; font-size: 1.1rem; }
.mobile-menu-list a:hover { background-color: #2e7d32 !important; }
.mobile-menu-list .sub-menu { display: block; visibility: visible; opacity: 1; position: static; background-color: #154718 !important; box-shadow: none; min-width: auto; padding-left: 15px; margin: 0; }
.mobile-menu-list .sub-menu a { font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* --- Header Arama Çubuğu Tasarımı --- */
.header-search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3px 6px 3px 14px;
    transition: background-color 0.3s ease;
    margin-left: 15px;
}

.header-search-form:focus-within {
    background-color: #ffffff;
}

.header-search-field {
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    width: 140px;
    transition: width 0.3s ease, color 0.3s ease;
}

.header-search-form:focus-within .header-search-field {
    color: #333333;
    width: 180px;
}

.header-search-field::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.header-search-form:focus-within .header-search-field::placeholder {
    color: #888888;
}

.header-search-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.header-search-form:focus-within .header-search-btn {
    color: #2e7d32;
}

.main-layout { display: flex; gap: 30px; margin-top: 20px; }
.content-area { flex: 3; min-width: 0; }
.sidebar { flex: 1; min-width: 300px; }

/* --- MANŞET SLIDER TASARIMI --- */
.manset-alan { margin-bottom: 30px; position: relative; width: 100%; max-width: 100%; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 1; }
.slider-container { display: flex; transition: transform 0.5s ease-in-out; width: 100%; }
.slide { min-width: 100%; position: relative; }
.slide img { width: 100%; height: 400px; object-fit: cover; display: block; }
.slide-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; padding: 30px 20px 20px; }
.slide-caption h2 { font-size: 1.8rem; margin-bottom: 10px; text-shadow: 1px 1px 3px rgba(0,0,0,0.8); color: #ffffff !important; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(46, 125, 50, 0.9) !important; color: #ffffff !important; border: none; padding: 15px; cursor: pointer; font-size: 1.5rem; border-radius: 50%; z-index: 10; transition: background 0.3s; }
.slider-btn:hover { background: #1b5e20 !important; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* --- Haber Kartları --- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: transform 0.3s ease; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.1); }
.news-card a { text-decoration: none; }
.news-image { width: 100%; height: 200px; object-fit: cover; background-color: #e8f5e9 !important; }
.news-content { padding: 20px; }
.news-category { display: inline-block; background-color: #2e7d32 !important; font-size: 0.8rem; padding: 4px 8px; border-radius: 4px; margin-bottom: 10px; }
.news-category a { color: #ffffff !important; }
.news-title { font-size: 1.25rem; color: #1b5e20 !important; margin-bottom: 10px; line-height: 1.4; }
.news-excerpt { font-size: 0.95rem; color: #555; margin-bottom: 15px; }
.read-more { color: #2e7d32 !important; font-weight: 600; }

/* --- Yorum Bölümü Tasarımı --- */
.comments-area { margin-top: 40px; padding-top: 30px; border-top: 2px solid #eee; }
.comment-list { list-style: none; padding: 0; }
.comment { background: #f9f9f9; padding: 15px; border-radius: 6px; margin-bottom: 15px; }
.comment-author { font-weight: bold; color: #1b5e20 !important; margin-bottom: 5px; }
.comment-respond { margin-top: 30px; }
.comment-form input, .comment-form textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; }
.comment-form input[type="submit"] { background: #2e7d32 !important; color: #ffffff !important; border: none; cursor: pointer; font-weight: bold; width: auto; padding: 10px 25px; }
.comment-form input[type="submit"]:hover { background: #1b5e20 !important; }

/* --- Sidebar Widget ve Arama --- */
.widget { background: #fff; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.widget-title { font-size: 1.2rem; color: #1b5e20 !important; border-bottom: 3px solid #2e7d32 !important; padding-bottom: 10px; margin-bottom: 15px; }
.widget-list { list-style: none; }
.widget-list li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.widget-list a { text-decoration: none; color: #333333 !important; transition: color 0.2s; }
.widget-list a:hover { color: #2e7d32 !important; }

.sidebar-search-form { display: flex; gap: 8px; }
.sidebar-search-form input[type="search"] { flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; outline: none; }
.sidebar-search-form input[type="search"]:focus { border-color: #2e7d32; }
.sidebar-search-form button { background-color: #2e7d32 !important; color: #ffffff !important; border: none; padding: 10px 18px; border-radius: 4px; font-weight: 600; cursor: pointer; transition: background-color 0.2s ease; }
.sidebar-search-form button:hover { background-color: #1b5e20 !important; }

/* --- Etiket Bulutu (Tag Cloud) Tasarımı --- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { display: inline-block; background-color: #e8f5e9 !important; color: #1b5e20 !important; padding: 6px 14px; border: 1px solid #2e7d32; border-radius: 20px; font-size: 0.9rem !important; text-decoration: none; transition: all 0.3s ease; }
.tag-cloud a:hover { background-color: #2e7d32 !important; color: #ffffff !important; box-shadow: 0 3px 6px rgba(0,0,0,0.15); transform: translateY(-2px); }

/* --- Ezan Vakitleri Widget Tasarımı --- */
.prayer-times-list { list-style: none; padding: 0; margin: 0; border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.prayer-times-list li { display: flex; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid #eee; font-size: 1rem; transition: background-color 0.2s ease; }
.prayer-times-list li:nth-child(even) { background-color: #f4f7f6; }
.prayer-times-list li:last-child { border-bottom: none; }
.prayer-times-list li:hover { background-color: #e8f5e9; }
.prayer-times-list .vakit-isim { font-weight: 600; color: #1b5e20 !important; }
.prayer-times-list .vakit-saat { font-weight: 700; color: #2e7d32 !important; }

/* --- Hava Durumu Widget Tasarımı --- */
.weather-widget { background-color: #f4f7f6; border: 1px solid #eee; border-radius: 6px; padding: 20px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.weather-widget:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.weather-current .weather-city { font-size: 1.2rem; font-weight: 700; color: #1b5e20 !important; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.weather-current .weather-main { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 10px; }
.weather-current .weather-icon { font-size: 3.5rem; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.weather-current .weather-temp { font-size: 2.8rem; font-weight: 800; color: #2e7d32 !important; line-height: 1; }
.weather-current .weather-desc { font-size: 0.95rem; font-weight: 500; color: #555; border-top: 1px solid #e0e0e0; padding-top: 15px; margin-top: 10px; }

/* --- Çok Okunanlar Widget Tasarımı --- */
.popular-posts-list { list-style: none; padding: 0; margin: 0; }
.popular-posts-list li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.popular-posts-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.popular-posts-list a { display: flex; align-items: center; gap: 15px; text-decoration: none; transition: transform 0.2s ease; }
.popular-posts-list a:hover { transform: translateX(4px); }
.popular-number { background-color: #2e7d32 !important; color: #ffffff !important; font-size: 1.1rem; font-weight: 800; width: 36px; height: 36px; min-width: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 2px 5px rgba(46, 125, 50, 0.3); }
.popular-details { flex: 1; }
.popular-title { font-size: 0.95rem; font-weight: 600; color: #333333 !important; line-height: 1.4; margin-bottom: 4px; transition: color 0.2s ease; }
.popular-posts-list a:hover .popular-title { color: #2e7d32 !important; }
.popular-date { font-size: 0.8rem; color: #888888; }

/* --- Sosyal Medya Paylaşım Butonları --- */
.share-buttons-container { margin: 30px 0; padding: 20px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.share-title { display: block; font-size: 1rem; font-weight: 700; color: #1b5e20; margin-bottom: 12px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 6px; color: #ffffff !important; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: transform 0.2s ease, opacity 0.2s ease; }
.share-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.whatsapp { background-color: #25D366 !important; }
.share-btn.twitter { background-color: #000000 !important; }
.share-btn.facebook { background-color: #1877F2 !important; }
.share-btn.telegram { background-color: #229ED9 !important; }

/* --- Footer --- */
footer { background-color: #1b5e20 !important; color: #ffffff !important; text-align: center; padding: 20px 0; margin-top: 50px; }
footer p, footer a { color: #ffffff !important; }
.footer-menu { list-style: none; display: flex; justify-content: center; gap: 20px; margin-bottom: 15px; padding: 0; flex-wrap: wrap; }
.footer-menu li { display: inline-block; }
.footer-menu a { color: #ffffff !important; text-decoration: none; font-size: 0.95rem; transition: opacity 0.3s; }
.footer-menu a:hover { opacity: 0.8; text-decoration: underline; }

/* =========================================================
   MÜKEMMEL MOBİL UYUMLULUK (Sadece Telefonlarda Çalışır)
   ========================================================= */
@media (max-width: 768px) {
    /* Header, Logo ve Menü Butonu Düzeni */
    .header-content { flex-direction: row; justify-content: space-between; align-items: center; padding: 10px 15px; flex-wrap: wrap; }
    .logo { font-size: 1.6rem !important; }
    .logo img, .custom-logo { max-height: 42px; }
    
    /* Masaüstü menüsünü gizle, Hamburger butonunu göster */
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    
    /* Mobil Arama Çubuğunu alta kaydır ve büyüt */
    .header-search { width: 100%; order: 3; margin-top: 15px; margin-left: 0; }
    .header-search-form { width: 100%; justify-content: space-between; }
    .header-search-field { width: 100% !important; }

    /* Düzen ve Yan Panel (Sidebar'ı Alta Al) */
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; min-width: auto; }
    
    /* Slider Mobilde Küçültme */
    .slide img { height: 250px; } 
    .slide-caption { padding: 15px 10px 10px; }
    .slide-caption h2 { font-size: 1.1rem; line-height: 1.3; margin-bottom: 5px; } 
    .slider-btn { padding: 8px 12px; font-size: 1.2rem; } 

    /* Paylaşım Butonları 2'li Izgara */
    .share-buttons { display: grid; grid-template-columns: 1fr 1fr; }
    .share-btn { justify-content: center; }
}