/*
Theme Name: JSPS PRO Ultimate Haber
Theme URI: https://www.jsps.pro/
Description: JSPS PRO v16.5 Ultimate Haber Teması - Full Uyumlu.
Author: JSPS PRO Systems
Version: 16.5
*/

/* Temel Sıfırlama */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background-color: #f1f5f9; 
    color: #1e293b; 
    padding-top: 130px; 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }

/* Sabit Üst Alan */
.header-fixed-wrapper { position: fixed; top: 0; left: 0; width: 100%; z-index: 9999; background: #ffffff; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.top-ticker-bar { background-color: #0f172a; color: #ffffff; height: 38px; display: flex; align-items: center; overflow: hidden; font-size: 13px; }
.sub-top-bar { background: #0f172a; border-bottom: 1px solid #1e293b; padding: 6px 0; }
.top-menu-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.top-menu-links a { color: #cbd5e1; text-decoration: none; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.main-header { background: #ffffff; padding: 12px 0; border-bottom: 1px solid #e2e8f0; }

/* Menü Tasarımları */
.main-menu-links { list-style: none; display: flex; gap: 20px; align-items: center; margin: 0; padding: 0; }
.main-menu-links li { position: relative; }
.main-menu-links a { text-decoration: none; color: #334155; font-weight: 700; font-size: 13.5px; text-transform: uppercase; padding: 8px 0; display: block; }
.main-menu-links a:hover { color: #d32f2f; }
.main-menu-links .sub-menu {
    position: absolute; top: 100%; left: 0; background: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-radius: 8px;
    padding: 10px 0; min-width: 200px; display: none; z-index: 1000; border: 1px solid #e2e8f0; list-style: none;
}
.main-menu-links li:hover > .sub-menu { display: block; }
.main-menu-links .sub-menu a { padding: 8px 18px; font-size: 13px; color: #475569; text-transform: none; }

/* Bilgi Akışı Şeridi */
.bottom-ticker-bar { background-color: #0f172a; color: #ffffff; height: 36px; display: flex; align-items: center; overflow: hidden; font-size: 13px; }

/* Grid Altyapısı */
.main-content-layout { display: grid; grid-template-columns: 1fr; gap: 25px; margin-top: 20px; width: 100%; }
@media(min-width: 992px) { .main-content-layout { grid-template-columns: 8fr 4fr; gap: 30px; } }

/* Sidebar & Modern Kart Yapısı */
aside.sidebar { display: flex; flex-direction: column; gap: 24px; width: 100%; }
.widget { 
    background: #ffffff; 
    padding: 24px; 
    border-radius: 16px; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); 
    width: 100%;
    transition: all 0.3s ease;
}
.widget:hover { box-shadow: 0 6px 25px rgba(0,0,0,0.06); border-color: #cbd5e1; }
.widget-title { font-size: 14.5px; font-weight: 800; color: #0f172a; text-transform: uppercase; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 2px solid #d32f2f; display: flex; align-items: center; gap: 8px; }

/* WP Bileşen Listeleri & Çok Okunanlar */
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; }
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.widget ul li a { color: #1e293b; text-decoration: none; transition: color 0.2s; }
.widget ul li:hover { transform: translateX(4px); }
.widget ul li a:hover { color: #d32f2f; }

.popular-posts-list { list-style: none; padding: 0; margin: 0; }
.popular-post-item { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; transition: transform 0.2s; }
.popular-post-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.popular-post-item:hover { transform: translateX(4px); }
.popular-post-thumb { width: 65px; height: 50px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 1px solid #e2e8f0; }
.popular-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   YENİ EKLENEN: YAZI İÇİ SKS VE PAYLAŞIM ESNEKLİK YAPILARI
   ========================================================= */
.single-post-container { background: #ffffff; padding: 18px; border-radius: 16px; border: 1px solid #e2e8f0; box-shadow: 0 4px 25px rgba(0,0,0,0.03); }
@media(min-width: 768px) { .single-post-container { padding: 30px; } }

.single-post-meta-bar { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; padding: 14px 0; margin-bottom: 25px; font-size: 13px; color: #64748b; }
@media(min-width: 768px) { .single-post-meta-bar { flex-direction: row; align-items: center; justify-content: space-between; } }

.meta-info-left { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.social-share-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Buton Renk ve Tasarım Netliği */
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 8px; color: #ffffff !important; font-size: 12px; font-weight: 700; text-decoration: none !important; border: none; cursor: pointer; transition: all 0.2s ease; }
.share-btn:hover { opacity: 0.9; transform: translateY(-2px); }
.share-btn-facebook { background-color: #1877f2; }
.share-btn-x { background-color: #0f172a; }
.share-btn-whatsapp { background-color: #25d366; }
.share-btn-telegram { background-color: #229ed9; }

@media (max-width: 991px) { 
    body { padding-top: 100px; }
    .desktop-nav { display: none; } 
    .mobile-toggle-btn { display: block; } 
    .sub-top-bar { display: none; } 
}
footer { background: #0f172a; color: #94a3b8; padding: 40px 0; margin-top: 50px; font-size: 14px; }

/* ==========================================================================
   JSPS PRO - MODERN, ELİT & MOBİL UYUMLU PORTAL TASARIMI (v16)
   ========================================================================== */

/* Genel Konteyner ve Izgara Yapısı */
.jsps-portal-container {
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1e293b;
}

.jsps-portal-grid {
    display: grid;
    grid-template-columns: 1fr 340px; /* PC'de %70 İçerik + 340px Sidebar */
    gap: 40px;
    align-items: start;
}

/* Masaüstü ve Mobil Uyumlu Ana İçerik Alanı */
.jsps-main-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid #f1f5f9;
}

/* Şık Başlık ve Üst Metalar */
.jsps-category-badge {
    display: inline-block;
    background: #fef2f2;
    color: #d32f2f;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    border: 1px solid #fee2e2;
}

.jsps-post-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin: 0 0 18px 0;
    letter-spacing: -0.5px;
}

.jsps-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    font-size: 13px;
    color: #64748b;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 18px;
    margin-bottom: 25px;
}

.jsps-post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.jsps-post-meta i {
    color: #d32f2f;
}

/* Öne Çıkan Görsel Vitrini */
.jsps-featured-image {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.jsps-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.jsps-featured-image:hover img {
    transform: scale(1.02);
}

/* Okuma Kalitesi Yüksek Yazı İçeriği */
.jsps-article-content {
    font-size: 17px;
    line-height: 1.85;
    color: #334155;
    word-break: break-word;
}

.jsps-article-content p {
    margin-bottom: 22px;
}

.jsps-article-content h2, 
.jsps-article-content h3 {
    color: #0f172a;
    font-weight: 800;
    margin: 35px 0 15px 0;
    line-height: 1.3;
}

/* Şık Etiket Bulutu */
.jsps-post-tags {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.jsps-post-tags span {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-right: 5px;
}

.jsps-post-tags a {
    background: #f8fafc;
    color: #475569;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.jsps-post-tags a:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* Sağ Bileşenler (Sidebar) Alanı */
.jsps-sidebar-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    border: 1px solid #f1f5f9;
}

/* ==========================================================================
   MOBİL EKRANLAR İÇİN TAM UYUMLULUK (RESPONSIVE MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .jsps-portal-grid {
        grid-template-columns: 1fr; /* Tablet ve Mobilde Tek Sütun Alt Alta */
        gap: 25px;
    }
    
    .jsps-portal-container {
        margin: 20px auto;
        padding: 0 15px;
    }

    .jsps-main-content,
    .jsps-sidebar-content {
        padding: 22px;
        border-radius: 12px;
    }

    .jsps-post-title {
        font-size: 26px;
    }

    .jsps-article-content {
        font-size: 16px;
        line-height: 1.75;
    }
}


/* =========================================================
   MOBİL & TABLET MENÜ VE ARAMA MOTORU BAZİSİ DÜZELTMESİ
   ========================================================= */

/* 1. Arama Çubuğunu Şık ve Hizalı Yapalım */
.header-search, 
.search-form {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    padding: 2px 8px !important;
    max-width: 100% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}

.search-form input[type="search"],
.search-form input[type="text"] {
    border: none !important;
    background: transparent !important;
    padding: 8px 10px !important;
    font-size: 14px !important;
    outline: none !important;
    width: 100% !important;
    color: #1f2937 !important;
}

.search-form button,
.search-form input[type="submit"] {
    border: none !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

/* 2. Mobil ve Tablet Menü Butonunu Zorla Görünür Yapalım */
@media screen and (max-width: 991px) {
    /* Mobil menü tetikleyici butonunu göster */
    .mobile-menu-toggle,
    .menu-toggle,
    .nav-toggle,
    .jsps-mobile-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #1e293b !important;
        color: #ffffff !important;
        border: none !important;
        padding: 8px 12px !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        font-size: 18px !important;
        z-index: 9999 !important;
    }

    /* Masaüstü menüsünü mobilde gizle (Çakışmayı önler) */
    .desktop-menu {
        display: none !important;
    }
}
