/* ============================================
   HaberIstatistik - MediaMetrics Ticker CSS v5
   site/themes/default/assets/css/ticker.css
   ============================================ */

#mm-wrap {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    margin-bottom: 18px;
    border: 1px solid #dde3ed;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* ========== ÜST BAR ========== */
#mm-topbar {
    background: #1a6fc4;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    gap: 6px;
}

#mm-pause-btn {
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    width: 26px; height: 26px;
    border-radius: 50%;
    font-size: 11px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background .15s;
    padding: 0;
}
#mm-pause-btn:hover { background: rgba(255,255,255,.32); }

/* Periyot butonları */
#mm-periods { display: flex; gap: 2px; flex: 1; }

.mm-period {
    padding: 3px 9px;
    font-size: 11px;
    color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.13);
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .12s;
    line-height: 1.6;
}
.mm-period:hover  { background: rgba(255,255,255,.26); color: #fff; text-decoration: none; }
.mm-period.active { background: #fff; color: #1a6fc4; font-weight: 700; }

/* Sağ: sayaç + saat */
#mm-right {
    margin-left: auto;
    display: flex; align-items: center; gap: 8px;
}

#mm-countdown {
    font-size: 11px;
    color: rgba(255,255,255,.65);
    background: rgba(0,0,0,.2);
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    letter-spacing: .5px;
}
#mm-countdown.urgent { color: #ffd; }

#mm-clock {
    font-size: 12px;
    color: #fff;
    opacity: .9;
    min-width: 54px;
    text-align: right;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ========== KATEGORİ SEKME ========== */
#mm-cats {
    background: #f4f6fa;
    border-bottom: 1px solid #dde3ed;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 8px;
}
#mm-cats::-webkit-scrollbar { display: none; }

.mm-cat {
    padding: 6px 11px;
    font-size: 12px;
    color: #666;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    text-decoration: none;
    transition: color .12s;
    line-height: 1.5;
}
.mm-cat:hover  { color: #1a6fc4; text-decoration: none; }
.mm-cat.active { color: #1a6fc4; border-bottom-color: #1a6fc4; font-weight: 600; }

/* ========== LİSTE ALANI ========== */
#mm-body {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d0d7e5 #f8f9fc;
}
#mm-body::-webkit-scrollbar       { width: 4px; }
#mm-body::-webkit-scrollbar-track { background: #f8f9fc; }
#mm-body::-webkit-scrollbar-thumb { background: #c8d0df; border-radius: 2px; }

#mm-list { display: flex; flex-direction: column; }

/* ========== HABER SATIRI ========== */
.mm-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eef0f5;
    padding: 4px 8px 4px 2px;
    text-decoration: none;
    background: #fff;
    transition: background .1s;
    cursor: pointer;
    min-height: 34px;
    gap: 3px;
}
.mm-item:hover       { background: #eef4ff; text-decoration: none; }
.mm-item:last-child  { border-bottom: none; }

/*
 * KIRMIZI = sıcak haber (14+ kez üst üste yükseldi)
 * SARI    = yeni geldi (periyodun ilk 1/4'ünde)
 */
.mm-item.mm-hot            { background: #fff0f0; }
.mm-item.mm-hot:hover      { background: #ffe5e5; }
.mm-item.mm-fresh          { background: #fffde6; }
.mm-item.mm-fresh:hover    { background: #fff8c0; }

/* ========== OK + HAREKET ========== */
.mm-move {
    width: 22px; min-width: 22px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0; flex-shrink: 0;
}
.mm-arr      { font-size: 9px;  line-height: 1; font-weight: 700; }
.mm-up       { color: #1a9e45; }
.mm-dn       { color: #dc3545; }
.mm-eq       { color: #ccc; font-size: 8px; }
.mm-new-dot  { color: #1a6fc4; font-size: 7px; line-height: 1; }
.mm-mcnt     { font-size: 8px; color: #555; font-weight: 700; line-height: 1.1; }

/* ========== KAYNAK LOGO ========== */
.mm-logo {
    width: 18px; min-width: 18px;
    height: 18px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.mm-logo img {
    width: 16px; height: 16px;
    object-fit: contain;
    border-radius: 2px;
    display: block;
}

/* ========== BAŞLIK ========== */
.mm-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #1a1a2e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 6px;
}
.mm-item:hover .mm-title { color: #1a6fc4; }

/* ========== TIKLAMA SAYISI ========== */
/*
 * Yeşil = artıyor (MediaMetrics: yeşil arka plan)
 * Pembe = azalıyor
 * Nötr  = değişmedi
 */
.mm-hits {
    min-width: 26px;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #444;
    flex-shrink: 0;
    padding: 1px 4px;
    border-radius: 3px;
    line-height: 1.4;
}
.mm-hits.hits-up { background: #d1f0dc; color: #0a6e2e; }
.mm-hits.hits-dn { background: #fdd9dc; color: #9b1c2a; }

/* ========== BOŞ MESAJ ========== */
.mm-empty {
    padding: 20px 16px;
    color: #888;
    font-size: 13px;
    text-align: center;
    line-height: 1.7;
}
.mm-empty a { color: #1a6fc4; text-decoration: none; }
.mm-empty strong { color: #444; }

/* ========== ALT BİLGİ ========== */
#mm-footer {
    background: #f4f6fa;
    border-top: 1px solid #dde3ed;
    padding: 4px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #999;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 576px) {
    #mm-body   { max-height: 380px; }
    .mm-title  { font-size: 12px; }
    .mm-period { padding: 2px 7px; font-size: 10px; }
    .mm-logo   { display: none; }
}
