/*
Theme Name: Sheshi German-Albanian Language Switch
Version: 0.33.0
Description: Adds a persistent, accessible DE/SQ language choice without disturbing the directory language facet.
*/

.sheshi-language-switch {
  display: grid;
  overflow: hidden;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-card);
}

.sheshi-language-switch > a {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: var(--text-secondary);
  background: var(--surface-card);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
}

.sheshi-language-switch > a + a {
  border-left: 1px solid var(--border-strong);
}

.sheshi-language-switch > a:hover {
  color: var(--text-primary);
  background: var(--surface-sunken);
}

.sheshi-language-switch > a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-bg);
}

.sheshi-language-switch > a:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.sheshi-mobile-language {
  display: none;
}

@media (min-width: 1024px) {
  .sheshi-site-header .sheshi-nav {
    grid-template-columns: minmax(116px, 1fr) auto auto auto !important;
    gap: 12px !important;
  }

  .sheshi-site-header .sheshi-language-switch--desktop {
    justify-self: end;
  }

  .sheshi-site-header .sheshi-language-switch--mobile {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .sheshi-site-header .sheshi-nav {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) 44px !important;
    gap: 10px !important;
  }

  .sheshi-site-header .sheshi-brand {
    grid-column: 1 !important;
  }

  .sheshi-site-header .sheshi-language-switch--desktop {
    display: none !important;
  }

  .sheshi-site-header .sheshi-mobile-menu {
    grid-column: 3 !important;
  }

  .sheshi-site-header .sheshi-mobile-language {
    display: block !important;
    margin: 0 0 12px !important;
    padding: 0 0 16px !important;
    border-bottom: 1px solid var(--border) !important;
  }

  .sheshi-site-header .sheshi-mobile-language > p {
    margin: 0 !important;
    padding: 0 0 8px !important;
    color: var(--text-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
  }

  .sheshi-site-header .sheshi-language-switch--mobile {
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 359px) {
  .sheshi-site-header .sheshi-nav {
    gap: 8px !important;
  }
}

