/* =============================================================
   Son Dakika Bandı — sdb-style.css
   Tasarım 1: .sdb-design-sabah  (Sabah / Koyu bar + ok butonlar)
   Tasarım 2: .sdb-design-cnn    (CNN / Kırmızı etiket + kayan)
   Tasarım 3: .sdb-design-modern (Modern / Beyaz + pill etiket)
   ============================================================= */

/* ---------------------------------------------------------------
   ORTAK TEMEL
   ------------------------------------------------------------- */
.sdb-wrapper {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.sdb-wrapper *,
.sdb-wrapper *::before,
.sdb-wrapper *::after {
    box-sizing: border-box;
}

.sdb-bar {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 46px;
    overflow: hidden;
    position: relative;
}

/* Etiket (SON DAKİKA) */
.sdb-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Yanıp sönen nokta */
.sdb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
    animation: sdbBlink 1.1s ease-in-out infinite;
}

@keyframes sdbBlink {
    0%, 100% { opacity: 0.9; }
    50%       { opacity: 0.15; }
}

/* Ok butonlar (nav) */
.sdb-nav {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.sdb-nav button {
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, opacity 0.15s;
    background: transparent;
    line-height: 1;
}

.sdb-nav button:hover { opacity: 0.75; }

/* İçerik alanı */
.sdb-content-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.sdb-content {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 16px;
    transition: opacity 0.35s ease;
    font-size: 14px;
    width: 100%;
    overflow: hidden;
}

.sdb-content.sdb-fade-out { opacity: 0; }
.sdb-content.sdb-fade-in  { opacity: 1; }

.sdb-time {
    font-weight: 700;
    flex-shrink: 0;
}

.sdb-sep-line {
    opacity: 0.5;
    flex-shrink: 0;
}

.sdb-headline {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    font-weight: 400;
}

.sdb-headline a {
    color: inherit;
    text-decoration: none;
}

.sdb-headline a:hover {
    text-decoration: underline;
}

/* Sağ link */
.sdb-all-link {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: underline;
    transition: opacity 0.15s;
}

.sdb-all-link:hover { opacity: 0.7; }

/* Ticker modu (CNN tasarımı) */
.sdb-ticker-wrap {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sdb-ticker-inner {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: sdbTicker 28s linear infinite;
}

.sdb-ticker-inner:hover { animation-play-state: paused; }

.sdb-ticker-item {
    padding: 0 40px 0 0;
    font-size: 14px;
}

.sdb-ticker-item a {
    color: inherit;
    text-decoration: none;
}

.sdb-ticker-item a:hover { text-decoration: underline; }

.sdb-ticker-sep {
    padding-right: 40px;
    font-size: 18px;
    opacity: 0.6;
}

@keyframes sdbTicker {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================================
   TASARIM 1 — SABAH STİLİ  (.sdb-design-sabah)
   Koyu gri arka plan, sarı ok butonlar, sağda link
   ============================================================= */
.sdb-design-sabah .sdb-bar {
    background: #3d3d3d;
}

.sdb-design-sabah .sdb-tag {
    background: #cc0000;
    color: #fff;
}

.sdb-design-sabah .sdb-dot {
    background: #fff;
}

.sdb-design-sabah .sdb-nav {
    background: #2a2a2a;
}

.sdb-design-sabah .sdb-nav button {
    color: #f5c518;
    background: transparent;
    font-size: 16px;
    padding: 0 12px;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sdb-design-sabah .sdb-nav button:last-child { border-right: none; }
.sdb-design-sabah .sdb-nav button:hover { background: rgba(245,197,24,0.12); }

.sdb-design-sabah .sdb-content {
    color: #f0f0f0;
}

.sdb-design-sabah .sdb-time {
    color: #f5c518;
}

.sdb-design-sabah .sdb-sep-line {
    color: rgba(255,255,255,0.4);
}

.sdb-design-sabah .sdb-all-link {
    color: #c8c8c8;
    border-left: 1px solid rgba(255,255,255,0.12);
}

/* =============================================================
   TASARIM 2 — CNN STİLİ  (.sdb-design-cnn)
   Kırmızı etiket, siyah arka plan, kayan metin (ticker)
   ============================================================= */
.sdb-design-cnn .sdb-bar {
    background: #111;
}

.sdb-design-cnn .sdb-tag {
    background: #cc0000;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 0 16px;
}

.sdb-design-cnn .sdb-dot {
    background: #fff;
}

.sdb-design-cnn .sdb-nav {
    display: none; /* CNN modunda nav yok, ticker var */
}

.sdb-design-cnn .sdb-content-wrap {
    display: none; /* Ticker ile değiştirilir */
}

.sdb-design-cnn .sdb-ticker-item {
    color: #e8e8e8;
}

.sdb-design-cnn .sdb-ticker-sep {
    color: #cc0000;
}

.sdb-design-cnn .sdb-all-link {
    color: #aaa;
    border-left: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
}

/* =============================================================
   TASARIM 3 — MODERN STİLİ  (.sdb-design-modern)
   Beyaz/açık arka plan, pill şeklinde kırmızı etiket, temiz tipografi
   ============================================================= */
.sdb-design-modern .sdb-bar {
    background: #fff;
    border-bottom: 2px solid #e8e8e8;
    border-top: 2px solid #cc0000;
}

.sdb-design-modern .sdb-tag {
    background: transparent;
    color: #cc0000;
    border-right: none;
    padding: 0 4px 0 16px;
}

.sdb-design-modern .sdb-dot {
    background: #cc0000;
}

.sdb-design-modern .sdb-label {
    background: #cc0000;
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.sdb-design-modern .sdb-nav {
    background: transparent;
}

.sdb-design-modern .sdb-nav button {
    color: #555;
    background: transparent;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    margin: auto 4px;
    padding: 0;
}

.sdb-design-modern .sdb-nav button:hover {
    background: #f5f5f5;
}

.sdb-design-modern .sdb-content {
    color: #222;
}

.sdb-design-modern .sdb-time {
    color: #cc0000;
}

.sdb-design-modern .sdb-sep-line {
    color: #bbb;
}

.sdb-design-modern .sdb-all-link {
    color: #cc0000;
    border-left: 1px solid #eee;
    text-decoration: none;
    font-weight: 500;
}

.sdb-design-modern .sdb-all-link::after {
    content: " →";
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 768px) {
    .sdb-all-link {
        display: none;
    }
    .sdb-content {
        font-size: 13px;
    }
    .sdb-tag {
        padding: 0 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .sdb-time,
    .sdb-sep-line {
        display: none;
    }
    .sdb-nav button {
        padding: 0 8px;
    }
}
