/* Ana Konteyner */
.nsd-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- HEADER --- */
.nsd-header {
    margin-bottom: 30px;
    position: relative;
}

.nsd-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.nsd-header-title {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    display: flex;
    align-items: center;
    margin: 0;
}

.nsd-status-badge {
    background: #d32f2f;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 10px;
    animation: nsdBlink 2s infinite;
}

.nsd-countdown-info {
    font-size: 12px;
    font-weight: 600;
    color: #777;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 15px;
    border: 1px solid #eee;
}

#nsd-countdown-number {
    color: #d32f2f;
    font-weight: 800;
    min-width: 18px;
    display: inline-block;
    text-align: center;
}

.nsd-timer-container {
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
}

.nsd-timer-bar {
    width: 100%;
    height: 100%;
    background: #d32f2f;
    transform-origin: left;
}

/* --- TIMELINE --- */
.nsd-timeline {
    position: relative;
    border-left: 2px solid #e0e0e0; 
    margin-left: 90px; /* Tarih alanı genişliği */
}

.nsd-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 25px; 
}

.nsd-item:last-child { margin-bottom: 0; }

/* --- SOL TARAF (TARİH) --- */
.nsd-left {
    position: absolute;
    left: -105px; /* Sol boşluğa yerleş */
    top: 0;
    width: 90px; 
    text-align: right;
    height: 18px; 
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px; /* Noktaya değmemesi için sağdan boşluk */
    box-sizing: border-box;
}

.nsd-time {
    font-size: 13px;
    font-weight: 700;
    color: #444;
    line-height: 1;
    white-space: nowrap;
}

/* --- NOKTALAR (SAĞ TARAFA ALINDI) --- */
/* Artık noktalar tarihin solunda değil, sağında (çizginin üstünde) duracak */

.nsd-static-dot {
    position: absolute;
    left: auto; /* Sol hizalamayı iptal et */
    right: -21px; /* Kutunun dışına, çizginin tam üstüne it */
    top: 4px; 
    width: 10px;
    height: 10px;
    background: #bbb; 
    border-radius: 50%;
    border: 2px solid #fff; 
    z-index: 2;
}

.nsd-pulsing-dot {
    position: absolute;
    left: auto; /* Sol hizalamayı iptal et */
    right: -22px; /* Biraz daha büyük olduğu için 1px daha sağa */
    top: 3px;
    width: 12px;
    height: 12px;
    background: #d32f2f;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
    box-shadow: 0 0 0 rgba(211, 47, 47, 0.4);
    animation: nsdPulse 1.5s infinite;
}

/* İÇERİK */
.nsd-content {
    display: flex;
    flex-direction: column;
}

.nsd-cat {
    font-size: 11px;
    font-weight: 800;
    color: #d32f2f;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.nsd-title {
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.nsd-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}
.nsd-title a:hover { color: #d32f2f; }

.nsd-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

@keyframes nsdPulse {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(211, 47, 47, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}

@keyframes nsdBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* MOBİL UYUM */
@media (max-width: 600px) {
    .nsd-wrapper { padding: 15px; }
    .nsd-timeline { margin-left: 85px; } 
    .nsd-left { left: -100px; width: 85px; }
    .nsd-time { font-size: 12px; }
    
    .nsd-item { padding-left: 15px; margin-bottom: 25px; }
    .nsd-title { font-size: 15px; }
    .nsd-excerpt { display: none; }
    
    .nsd-header-title { font-size: 16px; }
    .nsd-countdown-info { font-size: 10px; padding: 2px 8px; }
}
/* ... (Yukarıdaki Dikey Sayfa Kodları Aynen Kalsın) ... */

/* ==========================================
   YATAY SON DAKİKA WIDGET (TICKER)
   ========================================== */

.nsd-widget-container {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    height: 50px; /* Widget Yüksekliği */
    margin-bottom: 20px; /* Altına boşluk */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* SOL ETİKET (KIRMIZI ALAN) */
.nsd-widget-label {
    background: #d32f2f; /* Jannah Kırmızısı */
    color: #fff;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    flex-shrink: 0; /* Daralmasın */
    position: relative;
    z-index: 10;
}

/* Sol Etiket Oku (Üçgen) */
.nsd-widget-label::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    margin-top: -10px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent #d32f2f;
}

/* Widget Pulsing Dot */
.nsd-widget-pulsing-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    margin-right: 8px;
    animation: nsdBlink 1s infinite;
}

/* SWIPER ALANI */
.nsd-widget-swiper {
    flex-grow: 1;
    height: 100%;
    margin-left: 15px; /* Ok payı */
    overflow: hidden;
}

.nsd-widget-slide {
    width: auto !important; /* İçerik kadar genişlik */
    display: flex;
    align-items: center;
    height: 100%;
}

/* HABER LINKI */
.nsd-widget-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    padding-right: 30px; /* Haberler arası boşluk */
    position: relative;
    transition: color 0.2s;
}
.nsd-widget-link:hover { color: #d32f2f; }

/* Haber Saati */
.nsd-widget-time {
    font-weight: 700;
    color: #d32f2f;
    font-size: 13px;
    margin-right: 8px;
    background: #ffebee;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Haber Başlığı */
.nsd-widget-title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap; /* Tek satırda tut */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px; /* Çok uzun başlıkları kısalt */
}

/* MOBİL UYUM */
@media (max-width: 600px) {
    .nsd-widget-label { padding: 0 10px; font-size: 12px; }
    .nsd-widget-pulsing-dot { display: none; } /* Mobilde yerden tasarruf */
    .nsd-widget-time { font-size: 11px; padding: 1px 4px; }
    .nsd-widget-title { font-size: 13px; max-width: 200px; }
}