@layer components {

/* =========================================
   TOPBAR BASE
========================================= */
.topbar {
  background: var(--color-dark);
  color: var(--color-light);
  font-size: var(--font-size-sm);
}

/* =========================================
   INNER LAYOUT
========================================= */
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: var(--space-sm) 0;
  gap: var(--space-md);
}

/* =========================================
   LEFT / RIGHT SECTIONS
========================================= */
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* =========================================
   ITEMS
========================================= */
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;

  color: inherit;
  opacity: 0.9;
  transition: var(--transition);
}

.topbar-item:hover {
  opacity: 1;
}

/* =========================================
   ICONS
========================================= */
.topbar-item .icon,
.topbar-item svg {
  font-size: 14px;
  line-height: 1;
}

/* =========================================
   LINKS
========================================= */
.topbar a {
  color: inherit;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--color-primary);
}

/* =========================================
   SOCIAL LINKS (OPTIONAL)
========================================= */
.topbar-social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;

  background: rgba(255,255,255,0.1);
  border-radius: 50%;

  font-size: 12px;
  color: var(--color-light);

  transition: var(--transition);
}

.topbar-social a:hover {
  background: var(--color-primary);
  color: #fff;
}

/* =========================================
   MOBILE BEHAVIOR
========================================= */
@media (max-width: 768px) {

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .topbar-left,
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

}

}