/* =====================================================================
   Rivora · Üst bar (partials/topbar.tpl) — Tema Ayarları → Üst Bar
   1) .rv-tb-promo  kampanya şeridi: etiket, yazı, kopyalanan kod, geri sayım, buton, kapatma
   2) .rv-tb        bilgi satırı: telefon / e-posta / WhatsApp | hızlı linkler, Kayıt Ol, dil, para birimi, tema
   Header'ın lacivert zemininde durur. Dönen / kayan efekt yok (yalnız yanıp sönen ışık); asimetrik köşe, gölgesiz.
   ===================================================================== */
.rv-tb-promo, .rv-tb { --tb-on: #ffffff; --tb-on-2: rgba(255, 255, 255, 0.72); --tb-line: rgba(255, 255, 255, 0.12); --tb-soft: rgba(255, 255, 255, 0.07); font-family: "Inter", system-ui, sans-serif; }
@keyframes rv-tb-blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ================= Kampanya şeridi ================= */
.rv-tb-promo { position: relative; z-index: 1101; background: color-mix(in srgb, var(--primary-color) 45%, #020617); border-bottom: 1px solid var(--tb-line); color: var(--tb-on); }
.rv-tb-promo[hidden] { display: none; }
.rv-tb-promo-in { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.header-wrapper .rv-tb-promo-in.container, .header-wrapper .rv-tb-in.container { display: flex; }
.rv-tb-msg { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rv-tb-tag { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 0 6px 0 6px; background: var(--btn-primary);
    font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #ffffff; }
.rv-tb-text { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; color: var(--tb-on); }
.rv-tb-acts { display: flex; align-items: center; gap: 10px; flex: none; }

/* Kod: tek tıkla kopyala */
.rv-tb-code { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; overflow: hidden; border: 1px dashed color-mix(in srgb, var(--btn-primary) 75%, #ffffff);
    border-radius: 0 8px 0 8px; background: color-mix(in srgb, var(--btn-primary) 14%, transparent); font-size: 12px; font-weight: 600; color: var(--tb-on-2); cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease; }
.rv-tb-code strong { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; color: #ffffff; }
.rv-tb-code > .bi { font-size: 12.5px; color: color-mix(in srgb, var(--btn-primary) 60%, #ffffff); }
.rv-tb-code:hover { border-style: solid; background: color-mix(in srgb, var(--btn-primary) 24%, transparent); }
.rv-tb-code-ok { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; background: var(--btn-primary); font-size: 12px; font-weight: 800; color: #ffffff;
    opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.rv-tb-code.is-copied .rv-tb-code-ok { opacity: 1; }

/* Geri sayım */
.rv-tb-count { display: inline-flex; align-items: center; gap: 4px; margin-left: 60px; }
.rv-tb-count[hidden] { display: none; }
.rv-tb-count-label { margin-right: 4px; font-size: 12px; font-weight: 600; color: var(--tb-on-2); }
.rv-tb-unit { display: inline-flex; align-items: baseline; gap: 2px; height: 30px; padding: 0 7px; border: 1px solid var(--tb-line); border-radius: 0 7px 0 7px; background: var(--tb-soft); line-height: 28px; }
.rv-tb-unit b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffffff; }
.rv-tb-unit small { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--tb-on-2); }

/* Buton + kapat */
.rv-tb-cta { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 0 8px 0 8px; background: var(--btn-primary);
    font-size: 12.5px; font-weight: 700; white-space: nowrap; color: #ffffff !important; text-decoration: none; transition: background-color 0.2s ease; }
.rv-tb-cta:hover { background: color-mix(in srgb, var(--btn-primary) 86%, #000000); }
.rv-tb-x { position: absolute; right: 14px; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-top: -14px; padding: 0;
    border: 0; border-radius: 0 7px 0 7px; background: transparent; font-size: 12px; color: var(--tb-on-2); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; }
.rv-tb-x:hover { background: var(--tb-soft); color: #ffffff; }
.header-wrapper .rv-tb-promo-in.container { position: relative; padding-right: 52px; padding-left: 52px; }
.rv-tb .top-lang-dropdown .rivora-toggle span { text-transform: uppercase; }

/* ================= Bilgi satırı ================= */
.rv-tb { position: relative; z-index: 1100; background: rgba(255, 255, 255, 0.06); border-bottom: 1px solid var(--tb-line); color: var(--tb-on-2); font-size: 13px; font-weight: 500; }
.rv-tb-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.rv-tb-contact, .rv-tb-end { display: flex; align-items: center; min-width: 0; }
.rv-tb-contact > * + * { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--tb-line); }
.rv-tb-support { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; color: var(--tb-on); }
.rv-tb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--btn-primary); animation: rv-tb-blink 1.8s ease-in-out infinite both; }
.rv-tb-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--tb-on-2); text-decoration: none; transition: color 0.2s ease; }
.rv-tb-item .bi { font-size: 13px; color: var(--tb-on); opacity: 0.85; }
.rv-tb-item:hover { color: #ffffff; }
.rv-tb-item.is-wa .bi { color: #25d366; opacity: 1; }

.rv-tb-end.top-actions { gap: 0; }
.rv-tb-end > * + * { margin-left: 14px; }
.rv-tb-links { display: flex; align-items: center; gap: 18px; padding-right: 16px; border-right: 1px solid var(--tb-line); }
.rv-tb-link + .rv-tb-link { padding-left: 18px; border-left: 1px solid var(--tb-line); line-height: 14px; }
.rv-tb-link { white-space: nowrap; color: var(--tb-on-2); text-decoration: none; transition: color 0.2s ease; }
.rv-tb-link:hover { color: #ffffff; }
.rv-tb-register { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0 8px 0 8px;
    font-size: 12.5px; font-weight: 700; white-space: nowrap; color: #ffffff; text-decoration: none; transition: background-color 0.2s ease, border-color 0.2s ease; }
.rv-tb-register:hover { border-color: var(--btn-primary); background: var(--btn-primary); color: #ffffff; }
.rv-tb .rivora-toggle { height: 28px; font-size: 13px !important; font-weight: 600 !important; color: var(--tb-on-2) !important; opacity: 1; }
.rv-tb .rivora-toggle:hover, .rv-tb .rivora-toggle[aria-expanded="true"] { color: #ffffff !important; }
.rv-tb .rivora-toggle .chevron { transition: none; }
.rv-tb .top-actions .rivora-toggle[aria-expanded="true"] .chevron, .rv-tb .rivora-toggle[aria-expanded="true"] .chevron { transform: none; }
.rv-tb .dropdown-menu { border-radius: 0 12px 0 12px !important; }
.rv-tb .dropdown-item { border-radius: 0 8px 0 8px !important; }

/* Tema düğmesi: dönme / zıplama yok, yalnız renk */
.rv-tb .rivora-theme-btn { width: 28px; height: 28px; border-radius: 0 8px 0 8px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.22); transform: none !important; }
.rv-tb .rivora-theme-btn:hover { background: var(--tb-soft); border-color: rgba(255, 255, 255, 0.4); }
.rv-tb .rivora-theme-icon { transition: opacity 0.18s ease !important; transform: none !important; font-size: 13px; }
.rv-tb .moon-icon { color: #ffffff; }
.rv-tb .rivora-theme-btn:hover .moon-icon, .rv-tb .rivora-theme-btn:hover .sun-icon { transform: none !important; }
[data-bs-theme="dark"] .rv-tb .rivora-theme-btn { background: transparent; border-color: rgba(255, 255, 255, 0.18); }

/* ================= Duyarlı ================= */
@media (max-width: 1199.98px) {
    .rv-tb-links { display: none; }
    .rv-tb-promo-in { gap: 14px; }
}
@media (max-width: 991.98px) {
    .rv-tb-item.is-mail, .rv-tb-count-label, .rv-tb-tag { display: none; }
    .rv-tb-contact > .rv-tb-item.is-mail + * { margin-left: 16px; }
}
@media (max-width: 767.98px) {
    .header-wrapper .rv-tb-promo-in.container { flex-wrap: wrap; gap: 6px 10px; min-height: 0; padding: 8px 40px 8px 16px; justify-content: flex-start; }
    .rv-tb-msg { width: 100%; }
    .rv-tb-text { font-size: 12.5px; }
    .rv-tb-tag { height: 20px; padding: 0 7px; font-size: 9.5px; }
    .rv-tb-acts { gap: 6px; flex-wrap: wrap; }
    .rv-tb-code, .rv-tb-unit, .rv-tb-cta { height: 26px; }
    .rv-tb-code-label { display: none; }
    .rv-tb-code strong { font-size: 12px; }
    .rv-tb-count { margin-left: 0; }
    .rv-tb-unit { padding: 0 5px; line-height: 24px; }
    .rv-tb-unit b { font-size: 12px; }
    .rv-tb-unit small { font-size: 9.5px; }
    .rv-tb-cta { padding: 0 10px; font-size: 11.5px; }
    .rv-tb-x { right: 6px; top: 8px; margin-top: 0; }
    .rv-tb-in { min-height: 40px; gap: 10px; font-size: 12px; }
    .rv-tb-support { display: none; }
    .rv-tb-contact > * + * { margin-left: 12px; padding-left: 12px; }
    .rv-tb-contact > .rv-tb-item:first-of-type { margin-left: 0; padding-left: 0; border-left: 0; }
    .rv-tb-item.is-wa span { display: none; }
    .rv-tb-end > * + * { margin-left: 8px; }
    .rv-tb .top-lang-dropdown { display: none !important; }
    .rv-tb-register { height: 26px; padding: 0 9px; font-size: 11.5px; }
    .rv-tb .rivora-theme-btn { width: 26px; height: 26px; }
}
@media (max-width: 575.98px) {
    .rv-tb-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .rv-tb-dot { animation: none; }
}
