/* file: /assets/css/header.css */

/* ===== Header shell (DJI-like dark bar) ===== */
.xcp_header{
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: radial-gradient(1200px 220px at 50% 0%, rgba(255,255,255,.10), transparent 60%),
              linear-gradient(90deg, #0c2433 0%, #0a202f 45%, #081a27 100%);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.xcp_header__inner{
  height: 64px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;

  display: flex;
  align-items: center;
  gap: 18px;
}

/* left / brand */
.xcp_header__left{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.xcp_brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.xcp_brand__text{
  font-weight: 800;
  letter-spacing: .5px;
  font-size: 20px;
  line-height: 1;
}

/* ===== Center nav ===== */
.xcp_header__nav{
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.xcp_header__nav ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
}

.xcp_header__nav a{
  display: inline-flex;
  align-items: center;
  height: 64px;
  text-decoration: none;

  color: rgba(255,255,255,.86);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .2px;

  position: relative;
}

.xcp_header__nav a:hover{
  color: #fff;
}

.xcp_header__nav a::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 2px;
  background: rgba(255,255,255,.9);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.xcp_header__nav a:hover::after,
.xcp_header__nav .current-menu-item > a::after,
.xcp_header__nav .current_page_item > a::after{
  transform: scaleX(1);
}

/* ===== Right area ===== */
.xcp_header__right{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* icons (search / account / region) */
.xcp_icon{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  text-decoration: none;
  color: rgba(255,255,255,.9);

  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.xcp_icon:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
  transform: translateY(-1px);
}

.xcp_icon img.emoji{
  width: 16px;
  height: 16px;
  display: block;
}

/* ===== CTA button (DJI Store-like pill) ===== */
.xcp_cta{
  margin-left: 6px;
  height: 34px;
  padding: 0 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  text-decoration: none;

  background: #0b62ff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;

  box-shadow: 0 8px 18px rgba(11,98,255,.25);
  transition: transform .12s ease, filter .12s ease;
}

.xcp_cta:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
}

/* ===== Burger ===== */
.xcp_burger{
  width: 40px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  border-radius: 999px;

  display: none; /* desktop hidden */
  align-items: center;
  justify-content: center;
  gap: 4px;

  cursor: pointer;
}

.xcp_burger span{
  display: block;
  width: 16px;
  height: 2px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
}

/* ===== Mobile drawer container ===== */
.xcp_mobile{
  display: none;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(6,18,28,.92);
  backdrop-filter: blur(10px);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .xcp_header__inner{
    height: 60px;
  }

  .xcp_header__nav{
    display: none; /* hide center menu on mobile */
  }

  .xcp_cta{
    display: none; /* optional: keep header clean on mobile */
  }

  .xcp_burger{
    display: inline-flex;
  }

  /* show mobile container when you toggle with JS by adding .is-open on header */
  .xcp_header.is-open .xcp_mobile{
    display: block;
  }

  .xcp_header.is-open .xcp_mobile{
    padding: 12px 18px 16px;
  }

  .xcp_header.is-open .xcp_mobile ul{
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
  }

  .xcp_header.is-open .xcp_mobile a{
    color: rgba(255,255,255,.92);
    text-decoration: none;
    padding: 10px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
  }
}