/* Header and Navbar */
header {
  background-color: var(--color-background-primary);
  padding: 1rem;
}

.navbar {
  align-items: center;
  display: flex;
  margin: 0 auto;
  flex-wrap: wrap;
  padding: 1rem;
  overflow: visible !important;
}

header {
    overflow: visible !important;
}
header * {
    overflow: visible !important;
}

.navbar nav {
  flex: 1;
  display: flex;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text-secondary);
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-right: 2rem;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 500;
}

.nav-links > div {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    width: 20px; 
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links .button {
    background-color: var(--color-text);
    color: var(--color-text-secondary);
    padding: 1rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    height: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-dropdown,
.lang-dropdown {
    position: relative;
    display: flex;
}

.nav-toggle,
.lang-toggle {
    background: none;
    border: none;
    color: black;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.lang-preview {
    margin-right: 10px;
}

.nav-menu,
.lang-menu {
    position: absolute;
    top: 2rem;
    right: 0;
    background: white;
    color: black;
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: none;
    z-index: 1000;
    min-width: 30px;
}

.nav-menu.show,
.lang-menu.show {
    display: block;
}

.nav-menu li,
.lang-menu li {
    padding: 0.4rem 1rem;
}

.nav-menu li a,
.lang-menu li a {
    color: black;
    text-decoration: none;
    display: block;
}

.nav-menu li:hover,
.lang-menu li:hover {
  background-color: var(--color-background-primary);
}

.lang-toggle .lang-icon {
  width: 22px;
  height: 22px;
  /* filter: brightness(0) invert(1); */
  transition: opacity 0.2s ease;
}

.lang-toggle:hover .lang-icon {
  opacity: 0.8;
}


footer {
    background-color: var(--color-primary);
    color: white;
    padding: 2rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    border-top: 1px solid white;
    font-size: 0.95rem;
    gap: 1rem;
}

.footer-section {
    flex: 1;
    min-width: 140px;
    margin: 0.5rem 0;
}

.footer-section .logo {
    font-weight: bold;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-section h3 {
    font-size: 1rem;
    margin-bottom: 0.7rem;
}

.footer-section a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 0.4rem;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-icons img {
    width: 20px;
    height: 20px;
}

.twitchcon-banner {
  width: 100%;
  background: #9146FF;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  position: relative;
}

.twitchcon-banner-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.twitchcon-logo {
  height: 60px;
  width: auto;
}

.twitchcon-text {
  font-weight: 500;
  font-size: 1rem;
  flex: 1;
  min-width: 200px;
}

.twitchcon-button {
  background-color: white;
  color: #9146FF;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.twitchcon-button:hover {
  background-color: #f0f0f0;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
        padding-left: 30px;
    }

    .burger img {
        width: 35px;
        display: none;
    }

    .burger .show {
        display: block;
    }

    .navbar {
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        justify-content: center;
        /* display: none; */
        opacity: 0;
        max-height: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        overflow: visible;
    }

    .nav-links.show {
        display: flex;
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        transition: opacity 0.3s ease;
    }

    .nav-dropdown .nav-menu,
    .lang-dropdown .lang-menu {
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
    }

    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1rem;
    }

    .footer-icons {
        justify-content: center;
    }

    .twitchcon-banner-content {
        flex-direction: column;
        text-align: center;
    }
    .twitchcon-logo {
        height: 80px;
    }
}