/* --------------------------------------------------
   WORDDROP HEADER LAYOUT
-------------------------------------------------- */
/* stylelint-disable declaration-block-no-redundant-longhand-properties, declaration-block-no-shorthand-property-overrides */

#b-top-bar {
  display: grid;
  grid-template-columns: 10% 80% 10%;
  grid-template-areas: "hleft hlogo hright";
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.PORTRAIT #b-top-bar {
  grid-template-columns: 20% 60% 20%;
}

.logo {
  grid-area: hlogo;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.logo-box {
  height: 100%;
  width: 100%;             /* <-- key change */
  max-width: 100%;         /* safety */
  container-type: size;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.logo-group {
  display: flex;
}

.logo-tile {
  margin: 1.5cqh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  background: var(--button);
  color: var(--text);
  box-shadow: var(--logo-shadow);
}

.LANDSCAPE .logo-tile {
  width: 60cqh;
  height: 60cqh;
  font-size: 55cqh;
  border-radius: 5cqh;
  border: 6cqh solid var(--line);
}

.PORTRAIT .logo-tile {
  width: 10vw;
  height: 10vw;
  font-size: 35cqh;
  border-radius: 4cqh;
  border: 5cqh solid var(--line);
}

.logo-tile.avail {
  border-color: var(--highlight1);
}

/* --------------------------------------------------
   THEME TOGGLER (right aligned)
-------------------------------------------------- */
.header-left {
  grid-area: hleft;
}

.header-right {
  grid-area: hright;
  display: grid;
  place-items: center;
}

.theme-toggle {
  display: block;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  width: max-content;
  background: none;
  border: none;
}

/* grouped theme options */
.theme-option {
  display: flex;
  align-items: center;
  gap: 0.5vh;
}

.theme-icon {
  width: 2.5vh;
  height: 2.5vh;
}

.theme-text {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

/* colors */
.theme-light-option .theme-icon,
.theme-light-option .theme-text {
  color: rgb(106 108 9);
}

.theme-dark-option .theme-icon,
.theme-dark-option .theme-text {
  color: rgb(110 105 138);
}

/* theme switching */
[data-theme="light"] .theme-dark-option {
  display: none;
}

[data-theme="dark"] .theme-light-option {
  display: none;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.app-footer {
  text-align: center;
}
