/**
 * NewsKent - Kurumsal ve Ultra Modern Finans & Hava Durumu Ticker Bar Stilleri
 * %0 PageSpeed Etkisi, Cam Efekti (Glassmorphism), Tabular Nums & Smooth Touch Scroll
 */

:root {
    --jet-mb-bg: rgba(255, 255, 255, 0.88);
    --jet-mb-text: #1e293b;
    --jet-mb-border: #e2e8f0;
    --jet-mb-val-color: #0f172a;
    --jet-mb-pos-bg: #dcfce7;
    --jet-mb-pos-text: #15803d;
    --jet-mb-neg-bg: #fee2e2;
    --jet-mb-neg-text: #b91c1c;
    --jet-mb-divider: #e2e8f0;
    --jet-mb-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

/* Kapsayıcı */
.jet-market-bar-wrapper {
    width: 100%;
    margin-top: 14px;
    margin-bottom: 14px;
    clear: both;
    position: relative;
    z-index: 90;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
}

.jet-market-bar-wrapper.jet-mb-dismissed {
    display: none !important;
}

/* Ana Cam Kart */
.jet-market-bar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--jet-mb-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--jet-mb-border);
    border-radius: 10px;
    padding: 6px 14px;
    box-shadow: var(--jet-mb-shadow);
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--jet-mb-text);
    gap: 12px;
}

/* Kaydırılabilir Parça İzi (Scroll Track) */
.jet-market-bar-scroll-track {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    flex: 1 1 auto;
    padding: 2px 0;
}

.jet-market-bar-scroll-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Finans & Hava Durumu Öğesi */
.jet-mb-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    flex-shrink: 0;
}

/* SVG İkonlar */
.jet-mb-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.04);
    color: #475569;
    flex-shrink: 0;
}

.jet-mb-icon svg {
    display: block;
}

/* Kalın Birim Etiketi */
.jet-mb-label {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: #475569;
    text-transform: uppercase;
}

/* Değer / Fiyat (Tabular-nums ile hiza kayması yok) */
.jet-mb-val {
    font-weight: 700;
    font-size: 13px;
    color: var(--jet-mb-val-color);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Pill Badge (Hap Buton Yüzdelik Değişim) */
.jet-mb-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.jet-mb-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

/* Pozitif Değişim Badge (+%0,06) */
.jet-mb-badge-up {
    background-color: var(--jet-mb-pos-bg);
    color: var(--jet-mb-pos-text);
}

/* Negatif Değişim Badge (-%2,75) */
.jet-mb-badge-down {
    background-color: var(--jet-mb-neg-bg);
    color: var(--jet-mb-neg-text);
}

/* Dikey İnce Ayraç (Divider) */
.jet-mb-divider {
    width: 1px;
    height: 20px;
    background-color: var(--jet-mb-divider);
    flex-shrink: 0;
}

/* Hava Durumu Alanı */
.jet-mb-weather {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.025);
    padding: 3px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.jet-mb-city-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    user-select: none;
}

.jet-mb-city-wrap:hover {
    background: rgba(0, 0, 0, 0.06);
}

.jet-mb-city-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #475569;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.jet-mb-city-chevron {
    color: #64748b;
    pointer-events: none;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    width: 11px;
    height: 11px;
}

.jet-mb-city-wrap:hover .jet-mb-city-chevron {
    color: #0f172a;
}

.jet-mb-city-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    z-index: 5;
    border: none;
    background: transparent;
}

.jet-mb-weather-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.jet-mb-weather-temp {
    font-size: 13px;
    font-weight: 700;
    color: var(--jet-mb-val-color);
    font-variant-numeric: tabular-nums;
}

/* Sağ Eylemler (Canlı Yenileme Butonu) */
.jet-mb-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: auto;
}

.jet-mb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    line-height: 1;
}

.jet-mb-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.08);
}

.jet-mb-btn-refresh {
    position: relative;
}

.jet-mb-refresh-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Yenileme Spin Animasyonu */
@keyframes jetMbSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.jet-mb-btn-refresh.spinning .jet-mb-refresh-icon {
    animation: jetMbSpin 0.7s linear infinite;
}

.jet-mb-cooldown-text {
    font-size: 10px;
    font-weight: 700;
    margin-left: 2px;
    color: #94a3b8;
    display: none;
}

.jet-mb-btn-refresh.is-cooldown {
    opacity: 0.6;
    cursor: not-allowed;
}

.jet-mb-btn-refresh.is-cooldown .jet-mb-cooldown-text {
    display: inline-block;
}

/* Mobil Görünüm Düzenlemeleri */
@media (max-width: 991px) {
    .jet-market-bar-container {
        padding: 5px 10px;
        gap: 8px;
    }
    .jet-market-bar-scroll-track {
        gap: 10px;
    }
    .jet-mb-label {
        font-size: 11px;
    }
    .jet-mb-val {
        font-size: 12px;
    }
}

@media (max-width: 767px) {
    .jet-market-bar-wrapper {
        margin-top: 8px;
        margin-bottom: 8px;
    }
    .jet-mb-mobile-hide {
        display: none !important;
    }
}
