.site-header {
  background: #000;
  border-bottom: 1px solid #111;
}

.site-header .brand h1,
.site-header .brand p {
  color: #fff;
}

.site-header .brand h1 a,
.site-header .brand h1 a:visited,
.site-header .brand h1 a:hover {
  color: #FFD700 !important;
  text-decoration: none;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.main-nav .nav-toggle-input {
  display: none;
}

.main-nav .nav-toggle {
  display: none;
}

.main-nav .main-nav-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.main-nav .nav-center {
  display: flex;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.main-nav .nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a,
.main-nav .button-link,
.main-nav .admin-link,
.main-nav button {
  color: #fff !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-weight: 700 !important;
}

.main-nav a:hover,
.main-nav .button-link:hover,
.main-nav .admin-link:hover,
.main-nav button:hover {
  color: #fff !important;
  text-decoration: none !important;
}

.main-nav form {
  display: inline;
  margin: 0;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.main-nav .nav-user {
  color: #ddd;
  font-weight: 400;
  margin-left: auto;
}

.header-social {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.header-social p {
  margin: 0;
  color: #FFD700;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.header-social .social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.header-social .social-links a {
  color: #fff;
  text-decoration: none;
}

.header-social .social-icon {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
}

.header-social .social-icon img {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

.header-social .social-links a:hover .social-icon {
  border-color: #FFD700;
}

.footer-social {
  display: none;
  margin-top: 1rem;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-social p {
  margin: 0;
  color: #FFD700;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

.footer-social .social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.footer-social .social-links a {
  color: #fff;
  text-decoration: none;
}

.footer-social .social-icon {
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social .social-icon img {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}

@media (max-width: 980px) {
  .site-header .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
  }

  .main-nav {
    justify-self: end;
    align-items: flex-start;
    flex: 0 0 auto;
    min-width: auto;
    position: relative;
  }

  .header-social {
    grid-column: 1 / -1;
    margin-left: 0;
    justify-self: center;
    display: none;
  }

  .main-nav .nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #3f3f46;
    border-radius: 0.65rem;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    cursor: pointer;
  }

  .main-nav .nav-toggle span {
    width: 1.15rem;
    height: 2px;
    background: #fff;
    display: block;
  }

  .main-nav .main-nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: min(22rem, calc(100vw - 2rem));
    background: #0f0f10;
    border: 1px solid #2b2b31;
    border-radius: 0.9rem;
    padding: 1rem;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .main-nav .nav-toggle-input:checked ~ .main-nav-panel {
    display: flex;
  }

  .main-nav .nav-center,
  .main-nav .nav-actions {
    width: 100%;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .main-nav .nav-actions {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .main-nav .nav-user {
    margin-left: 0;
  }

  .footer-social {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-header .container {
    gap: 0.75rem;
  }

  .header-social p {
    font-size: 0.8rem;
  }

  .header-social .social-links {
    gap: 0.45rem;
    flex-wrap: wrap;
  }
}
