/* =============================================================================
   TCW TICKER BAR — Hava Durumu / Döviz / Altın / BTC
   Temaya entegre edilmiş sürüm — manşet alanının altında gösterilir.
   ============================================================================= */

.manset-alani .tcwt-bar {
    flex: 0 0 100%;
    margin-top: 14px;
}

.tcwt-bar {
    --tcwt-h: 46px;
    --tcwt-scale: 1;
    display: flex;
    align-items: center;
    height: var(--tcwt-h);
    width: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    /* Yükseklik ayarına bağlı ölçek: --tcwt-scale, 46px'i 1x kabul eder. */
    font-size: calc(13px * var(--tcwt-scale));
    line-height: 1.2;
    overflow: hidden;
    position: relative;
    padding: 0 calc(14px * var(--tcwt-scale));
    gap: calc(10px * var(--tcwt-scale));
    border-radius: 6px;
}

/* Temalar */
.tcwt-dark  { background: #14161c; color: #eaeaea; }
.tcwt-light { background: #f4f4f5; color: #222; border: 1px solid #e2e2e2; }
.tcwt-glass { background: rgba(20, 20, 30, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.tcwt-red   { background: var(--red, #cc0000); color: #fff; }

/* Marka / canlı nokta */
.tcwt-brand { display: flex; align-items: center; gap: calc(5px * var(--tcwt-scale)); flex-shrink: 0; opacity: .9; }
.tcwt-brand svg { width: calc(16px * var(--tcwt-scale)); height: calc(16px * var(--tcwt-scale)); }
.tcwt-dot {
    width: calc(7px * var(--tcwt-scale)); height: calc(7px * var(--tcwt-scale)); border-radius: 50%;
    background: #2ecc71; display: inline-block;
    animation: tcwt-pulse 1.6s ease-in-out infinite;
}
@keyframes tcwt-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.tcwt-divider { width: 1px; height: 55%; background: currentColor; opacity: .2; flex-shrink: 0; }

/* Kayan alan */
.tcwt-scroll-wrap { flex: 1 1 auto; overflow: hidden; position: relative; height: 100%; min-width: 0; }

.tcwt-items {
    display: flex;
    align-items: center;
    gap: calc(30px * var(--tcwt-scale));
    white-space: nowrap;
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    will-change: transform;
    animation: tcwt-marquee 38s linear infinite;
}
.tcwt-scroll-wrap:hover .tcwt-items { animation-play-state: paused; }
@keyframes tcwt-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.tcwt-item { display: inline-flex; align-items: center; gap: calc(6px * var(--tcwt-scale)); flex-shrink: 0; }
.tcwt-icon  { font-size: calc(15px * var(--tcwt-scale)); }
.tcwt-label { font-weight: 600; opacity: .85; }
.tcwt-value { font-weight: 700; }
.tcwt-sub   { opacity: .6; font-size: calc(11px * var(--tcwt-scale)); }
.tcwt-extra { opacity: .55; font-size: calc(11px * var(--tcwt-scale)); }
.tcwt-dir   { font-size: calc(10px * var(--tcwt-scale)); }
.tcwt-up    { color: #2ecc71; }
.tcwt-down  { color: #e74c3c; }

/* İskelet (yüklenme) durumu */
.tcwt-skeleton { display: inline-flex; }
.tcwt-sk-block {
    display: inline-block;
    height: calc(12px * var(--tcwt-scale));
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,.08) 25%, rgba(255,255,255,.18) 37%, rgba(255,255,255,.08) 63%);
    background-size: 400% 100%;
    animation: tcwt-shimmer 1.4s ease infinite;
}
.tcwt-light .tcwt-sk-block {
    background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.14) 37%, rgba(0,0,0,.06) 63%);
    background-size: 400% 100%;
}
@keyframes tcwt-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Saat + yenile */
.tcwt-time {
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
    opacity: .75;
    font-size: calc(12px * var(--tcwt-scale));
}
.tcwt-refresh {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid currentColor;
    opacity: .7;
    border-radius: 50%;
    width: calc(24px * var(--tcwt-scale)); height: calc(24px * var(--tcwt-scale));
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: inherit;
    padding: 0;
}
.tcwt-refresh svg { width: calc(13px * var(--tcwt-scale)); height: calc(13px * var(--tcwt-scale)); }
.tcwt-refresh:hover { opacity: 1; }
.tcwt-refresh.tcwt-spinning svg { animation: tcwt-spin .8s linear infinite; }
@keyframes tcwt-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .tcwt-bar { padding: 0 calc(10px * var(--tcwt-scale)); gap: calc(8px * var(--tcwt-scale)); }
    .tcwt-time { display: none; }
    .tcwt-items { gap: calc(22px * var(--tcwt-scale)); }
}


/* =============================================================================
   Ana sayfa yerleşimi (kategorilerin üstü) + mobil uyum
   ============================================================================= */
.tajas-ticker-area {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 15px;
    box-sizing: border-box;
}
.tajas-ticker-area .tcwt-bar { margin: 0; }

/* Kayan alanın kenarlarında yumuşak geçiş */
.tcwt-scroll-wrap {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}

@media (max-width: 768px) {
    .tajas-ticker-area { margin: 12px auto; padding: 0 10px; }
    .tcwt-bar { border-radius: 8px; }
    .tcwt-items { animation-duration: 30s; }
    .tcwt-extra { display: none; }              /* dar ekranda nem/rüzgar gizlenir */
    .tcwt-refresh { min-width: 28px; min-height: 28px; }
}
@media (max-width: 380px) {
    .tcwt-sub { display: none; }                /* çok dar ekranda sadece ad + değer */
}

/* Hareketi azaltmak isteyenler için: kayma yerine elle kaydırma */
@media (prefers-reduced-motion: reduce) {
    .tcwt-scroll-wrap { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .tcwt-items { animation: none; position: static; width: max-content; }
}

/* =============================================================================
   Yüksekliğin cihaza göre ayarlanması + cihaza göre gizleme
   (Tema Ayarları → Ticker Bar)
   ============================================================================= */
.tcwt-bar {
    --tcwt-h:     var(--tcwt-h-d, 46px);
    --tcwt-scale: var(--tcwt-s-d, 1);
}
@media (max-width: 768px) {
    .tcwt-bar {
        --tcwt-h:     var(--tcwt-h-m, 40px);
        --tcwt-scale: var(--tcwt-s-m, .87);
    }
    .tcwt-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .tcwt-hide-desktop { display: none !important; }
}
