/**
 * Channel shared GNB styles for metaverse and other channel pages.
 * Assets are served from channel_common/images/.
 */

:root {
  --sec-gnb-color-primary:      #240075;
  --sec-gnb-color-accent:       #1398ff;
  --sec-gnb-color-white:        #ffffff;
  --sec-gnb-font-main:          'Poppins', sans-serif;
  --sec-gnb-font-body:          'Inter', sans-serif;
  --sec-gnb-h:                  68px;
  --sec-gnb-content-max:        100%;
}

.gnb {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Keep the GNB in normal flow for the metaverse shell layout. */
body.has-channel-gnb .gnb {
  position: relative;
  top: auto;
}

.gnb-inner {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--sec-gnb-content-max);
  height: var(--sec-gnb-h);
  margin: 0 auto;
  padding: 0 30px;
  background: var(--sec-gnb-color-primary);
  border-bottom: 2px solid var(--sec-gnb-color-accent);
}

.gnb-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.gnb-logo {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
}

.gnb-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gnb-nav {
  display: flex;
  gap: 4px;
}

.gnb-nav-item {
  display: flex;
  align-items: center;
  height: var(--sec-gnb-h);
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--sec-gnb-font-main);
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}

.gnb-nav-item.active {
  color: var(--sec-gnb-color-white);
}

.gnb-nav-item:hover {
  color: #1398ff;
}

.gnb-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.gnb-signin {
  color: var(--sec-gnb-color-white);
  font-family: var(--sec-gnb-font-body);
  font-size: 14px;
  font-weight: 300;
  text-decoration: underline;
  white-space: nowrap;
}

.gnb-signin--short {
  display: none;
}

.gnb .btn-play-now {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  width: 182px;
  height: 40px;
  transition: filter 0.2s;
}

.gnb .btn-play-now:hover {
  filter: brightness(1.08);
}

.gnb .btn-play-now img,
.gnb .btn-play-now picture {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 860px) {
  :root {
    --sec-gnb-h: 53px;
  }

  .gnb-nav {
    display: none;
  }

  .gnb-inner {
    max-width: 100%;
    padding: 0 13px;
  }

  .gnb-logo {
    width: 39px;
    height: 39px;
  }

  .gnb-signin {
    font-size: 12px;
  }

  .gnb-signin--full {
    display: none;
  }

  .gnb-signin--short {
    display: inline;
  }

  .gnb .btn-play-now {
    width: 97px;
    height: 25px;
  }

  .gnb-actions {
    gap: 13px;
    align-items: center;
  }

  .gnb-left {
    align-items: center;
  }
}

@media (max-width: 580px) {
  .gnb-inner {
    padding: 0 13px;
    height: var(--sec-gnb-h);
  }

  .gnb-nav {
    display: none;
  }
}
