/*
Theme Name: Mersin Nabız Pro
Author: Gemini
Description: Manşet sliderlı, haber bantlı, modern haber teması.
Version: 3.0
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* GENEL SIFIRLAMA */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Roboto', sans-serif; background: #f0f2f5; color: #333; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* HEADER & MENÜ */
header { 
    background: #fff; 
    border-bottom: 3px solid #d32f2f; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; /* Yapışkan özellik */
    top: 0; /* En tepede dursun */
    z-index: 9999; /* Diğer her şeyin üstünde olsun */
}
.top-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo a { font-size: 32px; font-weight: 900; color: #d32f2f; text-transform: uppercase; letter-spacing: -1px; }

.main-menu { background: #222; }
.main-menu ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; }
.main-menu ul li a { display: block; color: #fff; padding: 12px 20px; font-weight: 500; font-size: 14px; text-transform: uppercase; }
.main-menu ul li a:hover { background: #d32f2f; }

/* SON DAKİKA BANDI */
.breaking-news { background: #d32f2f; color: #fff; padding: 10px 0; font-size: 14px; font-weight: bold; display: flex; align-items: center; }
.bn-title { background: #fff; color: #d32f2f; padding: 2px 10px; border-radius: 4px; margin-right: 15px; text-transform: uppercase; font-size: 12px; }

/* MANŞET SLIDER (ÖNEMLİ) */
.slider-section { margin-top: 20px; margin-bottom: 40px; position: relative; height: 450px; overflow: hidden; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; display: flex; align-items: flex-end; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; z-index: 0; }
.slide-content { position: relative; z-index: 2; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); width: 100%; padding: 40px 30px; }
.slide-content h2 a { color: #fff; font-size: 36px; font-weight: 700; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.slide-meta { color: #ddd; font-size: 13px; margin-bottom: 10px; }

/* HABER GRID (LİSTE) */
.section-title { font-size: 24px; font-weight: 700; border-left: 5px solid #d32f2f; padding-left: 15px; margin-bottom: 25px; color: #222; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-bottom: 50px; }

.news-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.05); transition: transform 0.3s; }
.news-card:hover { transform: translateY(-5px); }
.nc-image { height: 200px; overflow: hidden; }
.nc-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.news-card:hover .nc-image img { transform: scale(1.1); }
.nc-content { padding: 20px; }
.nc-cat { font-size: 11px; color: #d32f2f; font-weight: bold; text-transform: uppercase; margin-bottom: 8px; }
.nc-title a { font-size: 18px; font-weight: 700; color: #222; line-height: 1.4; }
.nc-excerpt { font-size: 14px; color: #666; margin-top: 10px; }

/* TEKİL HABER (SINGLE) */
.single-container { background: #fff; padding: 40px; border-radius: 8px; margin: 30px auto; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.single-title { font-size: 38px; font-weight: 800; line-height: 1.3; margin-bottom: 20px; color: #111; }
.single-meta { color: #888; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.single-image img { width: 100%; border-radius: 8px; margin-bottom: 30px; }
.single-content { font-size: 18px; line-height: 1.8; color: #333; }
.single-content p { margin-bottom: 20px; }

/* FOOTER */
footer { background: #222; color: #aaa; text-align: center; padding: 40px 0; margin-top: 50px; }
footer p { font-size: 14px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .slide-content h2 a { font-size: 22px; }
    .slider-section { height: 300px; }
    .top-header { flex-direction: column; text-align: center; }
    .main-menu ul { flex-direction: column; padding: 10px 0; }
    .single-title { font-size: 26px; }
}