/**
 * Theme Name:  Pusulahaber Theme
 * Theme URL:   https://mersinpusula.com
 * Author:      Mersin Pusula
 * Description: Pusula Haber v1.3.6: Mobil öncelikli, optimize edilmiş modern haber portalı.
 * Version:     1.5.4
 * Text Domain: Pusulahaber Theme
 */

/* --- 1. DEĞİŞKENLER VE TEMEL AYARLAR --- */
:root {
    --navy-blue: #2c3e50;
    --main-orange: #ed3b41;
    --header-bg: #ed1c24; 
    --footer-bg: #2c3e50; 
    --site-bg: #ffffff;   
    --white: #ffffff;
}

* { box-sizing: border-box; }

body { 
    margin: 0; padding: 0; 
    font-family: 'Roboto', sans-serif; 
    color: #333; line-height: 1.6; 
    background-color: var(--site-bg);
    overflow-x: hidden; 
}

a { color: var(--navy-blue); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--main-orange); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 10px; }

/* --- 2. HEADER (DEĞİŞMEDİ) --- */
#site-header { color: var(--white); background: transparent !important; }
#site-header a { color: var(--white); }
.header-top-row { width: 100%; background-color: var(--header-bg); border-bottom: 3px solid rgba(0,0,0,0.1); }
.header-flex-wrapper { display: flex; align-items: center; justify-content: space-between; height: 80px; flex-wrap: nowrap; }
.header-bottom-row { background-color: transparent !important; color: #333333 !important; padding: 10px 0; width: 100%; }
.header-bottom-row a { color: #333333 !important; }
.hamburger-btn { display: flex !important; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 0; }
.hamburger-btn span { width: 25px; height: 3px; background-color: var(--white); border-radius: 2px; }
.header-logo { flex: 0 0 auto; }
.header-logo img { height: 100px; width: auto; }
.header-nav-center { flex: 1; display: flex; justify-content: center; }
.header-nav-center ul { display: flex; list-style: none; gap: 20px; font-weight: 600; text-transform: uppercase; font-size: 13px; margin: 0; padding: 0; }
#site-header .header-nav-center ul li a:hover { color: var(--main-orange) !important; }
.header-top-widget-area { flex: 0 0 auto; text-align: right; overflow: hidden; }

/* --- 3. MOBİL MENÜ --- */
#mobil-menu-container { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 999998; }
#mobil-menu-container.active { display: block; } 
.menu-box { background: #fff; width: auto; min-width: 200px; max-width: 280px; padding: 20px; border-radius: 12px; position: absolute; box-shadow: 5px 5px 15px rgba(0,0,0,0.2); z-index: 999999; pointer-events: auto; }
.close-mobile-menu { display: block; width: 100%; background: #ed1c24; color: #fff; border: none; padding: 10px; margin-bottom: 10px; border-radius: 5px; font-weight: bold; cursor: pointer !important; pointer-events: auto !important; }
.mobile-menu-items { list-style: none; padding: 0; margin: 10px 0 0; }
.mobile-menu-items li { padding: 12px 0; text-align: left; border-bottom: 1px solid #eee; }
.mobile-menu-items a { font-size: 16px; font-weight: 600; color: #333; text-decoration: none; display: block; }

/* --- 4. ANA YERLEŞİM --- */
.site-wrapper { max-width: 1200px; margin: 0 auto; padding: 10px; }
.main-layout { display: grid !important; grid-template-columns: 1fr 320px !important; gap: 10px !important; align-items: start !important; width: 100% !important; max-width: 1200px !important; margin-left: auto !important; margin-right: auto !important; }
.content-area { width: 100% !important; min-width: 100% !important; min-height: 400px !important; flex: 1 1 auto !important; }
.sidebar-area { width: 320px !important; min-width: 320px !important; flex-shrink: 0 !important; }

/* --- 5. FOOTER (NOKTA AYRAÇ VE SIFIR BOŞLUK) --- */
#site-footer { 
    background-color: var(--footer-bg); 
    color: var(--white); 
    padding: 15px 10px; 
    margin-top: 10px; 
    width: 100%; 
}
.footer-bottom { display: flex; flex-direction: column; align-items: center; width: 100%; }
.footer-nav { width: 100%; margin-bottom: 2px; }

#site-footer .footer-nav ul { 
    display: flex; 
    flex-direction: row; 
    flex-wrap: wrap; 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    justify-content: center; 
    gap: 0 15px;
    line-height: 1.6;
}

#site-footer .footer-nav ul li {
    display: flex;
    align-items: center;
    position: relative;
}

#site-footer .footer-nav ul li:not(:first-child)::before {
    content: "•";
    color: rgba(255,255,255,0.4);
    margin-right: 15px;
    font-size: 16px;
    line-height: 0;
}

#site-footer a { 
    color: var(--white) !important; 
    text-decoration: none; 
    font-weight: 500; 
    transition: 0.3s; 
    white-space: nowrap; 
    font-size: 13px;
    padding: 2px 0;
}
#site-footer a:hover { color: var(--main-orange) !important; }

.footer-copyright { 
    width: 100%; 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 8px; 
    margin-top: 2px; 
    font-size: 11px; 
    opacity: 0.6; 
}

/* --- 6. EN ÜSTE GİT BUTONU (GÜNCELLENDİ: SİYAH GÖLGE KALDIRILDI) --- */
#back-to-top { 
    display: none; 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    z-index: 999997; 
    background-color: var(--header-bg); 
    color: var(--white); 
    padding: 10px 15px; 
    border-radius: 5px; 
    font-size: 20px; 
    border: none;
    outline: none;
    box-shadow: none !important; /* Siyahlık yaratan gölge kaldırıldı */
    transition: opacity 0.3s;
}

/* --- 7. MOBİL UYUMLULUK (GÜNCELLENDİ: BUTON KÜÇÜLTÜLDÜ VE SAĞA YANAŞTIRILDI) --- */
@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr !important; }
    
    /* Mobil Sayfa Üstü Butonu Düzenlemesi */
    #back-to-top {
        bottom: 15px;
        right: 10px; /* Daha sağa yanaştırıldı */
        padding: 8px 12px; /* Küçültüldü */
        font-size: 16px; /* İkon küçültüldü */
        opacity: 0.8; /* Menü üzerinde daha az dikkat çekmesi için hafif şeffaflık */
    }

    #site-footer .footer-nav ul {
        gap: 5px 10px !important;
    }
    
    #site-footer .footer-nav ul li:not(:first-child)::before {
        margin-right: 10px !important;
    }
}