/**
 * Bongoto Pro – Topbar Styles
 * File: assets/css/pro-topbar.css
 *
 * Responsive topbar layout for headers 2–5.
 * Supports:
 *  - Phone / Email (Left)
 *  - Social Links + Login/Register (Right)
 *  - Customizer dynamic colors
 */

:root {
  --bt-topbar-bg: #0f172a;
  --bt-topbar-fg: #f9fafb;
  --bt-topbar-gap: 0.75rem;
}

/* --------------------
   Topbar Base
-------------------- */
.bt-topbar {
  background: var(--bt-topbar-bg);
  color: var(--bt-topbar-fg);
  font-size: 14px;
  line-height: 1.4;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bt-topbar a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.bt-topbar a:hover {
  opacity: 0.75;
}

/* --------------------
   Inner Container
-------------------- */
.bt-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--bt-topbar-gap);
  flex-wrap: wrap;
}

.bt-topbar-left,
.bt-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--bt-topbar-gap);
  flex-wrap: wrap;
}

/* --------------------
   Left Section (Phone / Email)
-------------------- */
.bt-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.bt-topbar-item .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  opacity: 0.8;
}

/* --------------------
   Right Section (Social / Login)
-------------------- */
.bt-topbar-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bt-topbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--bt-topbar-fg);
  transition: background 0.2s ease, transform 0.15s ease;
}

.bt-topbar-social-link:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.bt-topbar-social-link .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  line-height: 1;
}

.bt-topbar-login {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.bt-topbar-login .sep {
  opacity: 0.5;
}

/* --------------------
   Accessibility
-------------------- */
.bt-topbar a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* --------------------
   Responsive (Tablet)
-------------------- */
@media (max-width: 992px) {
  .bt-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 4px 0;
  }

  .bt-topbar-left,
  .bt-topbar-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* --------------------
   Responsive (Mobile)
-------------------- */
@media (max-width: 640px) {
  .bt-topbar {
    font-size: 13px;
    padding: 5px 0;
  }

  .bt-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .bt-topbar-left,
  .bt-topbar-right {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .bt-topbar-social-link {
    width: 26px;
    height: 26px;
  }

  .bt-topbar-item a {
    display: inline-block;
    word-break: break-word;
  }
}

/* --------------------
   RTL Compatibility
-------------------- */
[dir="rtl"] .bt-topbar-inner {
  flex-direction: row-reverse;
}

[dir="rtl"] .bt-topbar-left,
[dir="rtl"] .bt-topbar-right {
  flex-direction: row-reverse;
}

.bt-topbar-nav .bt-topbar-menu {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bt-topbar-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}
.bt-topbar-nav a:hover {
  opacity: 0.8;
}
