/*
Theme Name: TBMM Metrik Premium
Theme URI: https://tbmmmetrik.com
Author: TBMM Metrik
Description: Ciddi, resmi ve bagimlilik yapan ozel tasarim.
Version: 2.0
*/

:root {
    --tbmm-navy: #1a237e; /* Resmi Lacivert */
    --tbmm-gold: #c5a059; /* Altın Detaylar */
    --tbmm-red: #d32f2f;  /* Son Dakika Kırmızısı */
    --bg-gray: #f5f7fa;
    --text-dark: #121212;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', 'Roboto', sans-serif; background: var(--bg-gray); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* HEADER & NAV */
header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.logo { font-size: 1.8rem; font-weight: 900; color: var(--tbmm-navy); letter-spacing: -1px; display: flex; align-items: center; gap: 10px; }
.logo span { color: var(--tbmm-gold); }
.logo img { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
.live-badge { background: var(--tbmm-red); color: white; padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: bold; display: flex; align-items: center; gap: 5px; animation: pulse 2s infinite; }
.live-dot { width: 8px; height: 8px; background: white; border-radius: 50%; }

/* SON DAKİKA BAR */
.ticker-wrap { background: var(--tbmm-navy); color: white; height: 40px; display: flex; align-items: center; overflow: hidden; font-size: 0.9rem; border-bottom: 3px solid var(--tbmm-gold); }
.ticker-label { background: var(--tbmm-gold); color: var(--tbmm-navy); padding: 0 20px; height: 100%; display: flex; align-items: center; font-weight: 900; text-transform: uppercase; z-index: 2; }
.ticker-move { white-space: nowrap; padding-left: 100%; animation: ticker 30s linear infinite; display: inline-block; }
.ticker-item { margin-right: 50px; font-weight: 500; }

/* MANŞET (HERO) */
.hero-section { max-width: 1200px; margin: 20px auto; padding: 0 20px; }
.hero-card { position: relative; height: 400px; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.hero-card:hover img { transform: scale(1.05); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 30px; color: white; }
.cat-tag { background: var(--tbmm-gold); color: var(--tbmm-navy); padding: 4px 10px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; border-radius: 4px; margin-bottom: 10px; display: inline-block; }
.hero-title { font-size: 2.5rem; line-height: 1.1; font-weight: 800; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* HABER IZGARASI (GRID) */
.news-grid { max-width: 1200px; margin: 30px auto; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.news-card { background: white; border-radius: 8px; overflow: hidden; border: 1px solid #eee; transition: transform 0.2s, box-shadow 0.2s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: var(--tbmm-gold); }
.nc-img { height: 180px; position: relative; }
.nc-img img { width: 100%; height: 100%; object-fit: cover; }
.nc-body { padding: 20px; }
.nc-title { font-size: 1.1rem; font-weight: 700; color: var(--tbmm-navy); line-height: 1.4; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nc-meta { font-size: 0.8rem; color: #888; display: flex; justify-content: space-between; margin-top: 15px; border-top: 1px solid #f0f0f0; padding-top: 10px; }

/* FOOTER */
footer { background: var(--tbmm-navy); color: rgba(255,255,255,0.7); text-align: center; padding: 40px 0; margin-top: 50px; font-size: 0.9rem; }

/* ANIMASYONLAR */
@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(211, 47, 47, 0); } 100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); } }

/* MOBİL AYARLARI */
@media (max-width: 768px) {
    .hero-card { height: 250px; }
    .hero-title { font-size: 1.5rem; }
    .header-inner { padding: 10px 15px; }
    .logo { font-size: 1.4rem; }
}