/* Sağ üst: bayraklar + giriş — tüm sayfalar */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.65rem 2rem;
  max-width: 72rem;
  margin: 0 auto;
  box-sizing: border-box;
}

.site-header .site-logo {
  font-size: 1rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding-top: 0.15rem;
}

.site-header .site-logo:hover {
  text-decoration: underline;
}

.site-header-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  flex-shrink: 0;
}

.lang-flags {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 1.65rem;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.6);
}

.lang-flag:hover {
  transform: scale(1.1);
}

.lang-flag.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
  background: #fff;
}

.flag-emoji {
  font-size: 1.35rem;
  line-height: 1;
  display: block;
}

.site-auth {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

.site-auth a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.site-auth .site-admin-link {
  color: #7c3aed;
  font-weight: 600;
}

.site-auth a:hover {
  text-decoration: underline;
}

.site-auth .user-nick {
  color: #475569;
  font-weight: 600;
}

.site-auth .user-score-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  line-height: 1.2;
}

.site-auth .user-pts {
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 700;
}

.site-auth .user-rank {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
}

@media (max-width: 600px) {
  .site-header {
    padding: 0.75rem 1rem;
  }
}
