/* ============================== */
/* HEADER                         */
/* ============================== */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  min-width: 0;          /* allow title to shrink on small screens */
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* RIGHT SIDE: nav + lang on same row */
.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-link {
  text-decoration: none;
  font-size: 0.9rem;
  color: #bbb;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.header-link:hover {
  color: #f5f5f5;
  background-color: rgba(255,255,255,0.06);
}

/* Divider between nav and lang */
.header-divider {
  width: 1px;
  height: 18px;
  background-color: var(--border-color);
  flex-shrink: 0;
}

.header-lang {
  display: flex;
  gap: 6px;
  align-items: center;
}

.lang-btn {
  background-color: transparent;
  border: 1px solid #3a3a3a;
  color: #aaa;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
  min-width: 36px;
  min-height: 32px;         /* good tap target */
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover,
.lang-btn.active {
  border-color: #c0c0c0;
  color: #c0c0c0;
  background-color: rgba(255,255,255,0.05);
}

/* ============================== */
/* TABLET – ≤ 768px               */
/* ============================== */

@media (max-width: 768px) {
  .site-header {
    padding: 12px 20px;
  }

  .site-title {
    font-size: 1rem;
  }

  .header-right {
    gap: 12px;
  }

  .header-link {
    font-size: 0.85rem;
    padding: 5px 7px;
  }
}

/* ============================== */
/* MOBILE – ≤ 480px               */
/* ============================== */

@media (max-width: 480px) {
  .site-header {
    padding: 12px 16px;
    gap: 8px;
  }

  .site-title {
    font-size: 0.95rem;
  }

  .header-right {
    gap: 10px;
  }

  .header-link {
    font-size: 0.85rem;
    padding: 5px 6px;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 0.75rem;
    min-width: 32px;
  }
}
