/**
 * JaimeDiaz.TV
 * Header reconstruction V1
 */

/* =========================================================
   Utility bar
   ========================================================= */

.jd-utility-bar {
  color: #fff;
  background:
    linear-gradient(
      90deg,
      #020a18 0%,
      #061426 55%,
      #020a18 100%
    );
}

.jd-utility-bar__inner {
  display: flex;
  min-height: 2.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.73rem;
}

.jd-utility-bar__left,
.jd-utility-bar__right,
.jd-utility-bar__live,
.jd-utility-bar__weather,
.jd-utility-bar__date,
.jd-utility-bar__socials {
  display: flex;
  align-items: center;
}

.jd-utility-bar__left,
.jd-utility-bar__right {
  gap: 0.9rem;
}

.jd-utility-bar__live {
  gap: 0.5rem;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.jd-utility-bar__live-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: #f02637;
  box-shadow: 0 0 0 0 rgb(240 38 55 / 45%);
  animation: jd-utility-live 2s infinite;
}

.jd-utility-bar__weather,
.jd-utility-bar__date {
  gap: 0.5rem;
  color: #d7dee9;
}

.jd-utility-bar__separator {
  width: 1px;
  height: 1rem;
  background: rgb(255 255 255 / 20%);
}

.jd-utility-bar__follow {
  color: #d7dee9;
}

.jd-utility-bar__socials {
  gap: 0.8rem;
}

.jd-utility-bar__socials a {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.jd-utility-bar__socials a:hover {
  color: #f47321;
}

.jd-utility-bar__account {
  color: #fff;
}

/* =========================================================
   Main header
   ========================================================= */

.jd-site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #e7ebf1;
  background: #fff;
}

.jd-site-header__inner {
  display: grid;
  min-height: 5rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
}

/* =========================================================
   Brand
   ========================================================= */

.jd-site-brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 0.8rem;
}

.jd-site-brand__mark {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border-radius: 0.45rem;
  color: #fff;
  background:
    linear-gradient(
      145deg,
      #ff7a1a,
      #f04f0a
    );
  box-shadow: 0 8px 18px rgb(240 79 10 / 20%);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.jd-site-brand__identity {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.jd-site-brand__name {
  color: #07162b;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
}

.jd-site-brand__name span {
  color: #f35e12;
}

.jd-site-brand__tagline {
  color: #77849a;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

/* =========================================================
   Navigation
   ========================================================= */

.jd-site-header__desktop-nav {
  min-width: 0;
}

.jd-main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.25vw, 2.6rem);
}

.jd-main-navigation__link {
  position: relative;
  display: inline-flex;
  min-height: 5rem;
  align-items: center;
  gap: 0.35rem;
  color: #101b2e;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.jd-main-navigation__link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: #f47321;
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.jd-main-navigation__link:hover,
.jd-main-navigation__link.is-active {
  color: #f15e12;
}

.jd-main-navigation__link:hover::after,
.jd-main-navigation__link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* =========================================================
   Header actions
   ========================================================= */

.jd-site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.jd-site-action,
.jd-site-menu-toggle {
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  place-items: center;
  border: 1px solid #dfe5ed;
  border-radius: 0.55rem;
  color: #07162b;
  background: #fff;
}

.jd-site-action:hover,
.jd-site-action[aria-expanded="true"] {
  border-color: #f47321;
  color: #f47321;
}

.jd-site-action svg {
  width: 1.25rem;
  height: 1.25rem;
}

.jd-site-live-button {
  display: inline-flex;
  min-height: 2.85rem;
  padding-inline: 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.55rem;
  color: #fff;
  background: #e10f22;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgb(225 15 34 / 18%);
}

.jd-site-live-button:hover {
  color: #fff;
  background: #c90819;
}

.jd-site-live-button__icon {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.jd-site-live-button__icon::before,
.jd-site-live-button__icon::after {
  position: absolute;
  top: 50%;
  width: 0.25rem;
  height: 0.65rem;
  border: 1.5px solid currentColor;
  content: "";
  transform: translateY(-50%);
}

.jd-site-live-button__icon::before {
  left: 0;
  border-right: 0;
  border-radius: 0.7rem 0 0 0.7rem;
}

.jd-site-live-button__icon::after {
  right: 0;
  border-left: 0;
  border-radius: 0 0.7rem 0.7rem 0;
}

.jd-site-live-button__icon i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.jd-site-menu-toggle {
  display: none;
}

.jd-site-menu-toggle > span {
  display: flex;
  width: 1.1rem;
  flex-direction: column;
  gap: 0.22rem;
}

.jd-site-menu-toggle i {
  display: block;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

/* =========================================================
   Search
   ========================================================= */

.jd-header-search {
  position: absolute;
  right: 0;
  left: 0;
  top: 100%;
  padding-block: 1rem;
  border-top: 1px solid #e7ebf1;
  background: #fff;
  box-shadow: 0 20px 38px rgb(7 22 43 / 12%);
}

.jd-header-search[hidden] {
  display: none;
}

.jd-header-search__form {
  position: relative;
  display: flex;
  align-items: center;
}

.jd-header-search__form svg {
  position: absolute;
  left: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  color: #718096;
}

.jd-header-search__form input[type="search"] {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.7rem 7rem 0.7rem 3rem;
  border: 1px solid #dfe5ed;
  border-radius: 0.55rem;
  color: #07162b;
  background: #fff;
  outline: 0;
}

.jd-header-search__form input[type="search"]:focus {
  border-color: #f47321;
  box-shadow: 0 0 0 3px rgb(244 115 33 / 12%);
}

.jd-header-search__form button {
  position: absolute;
  right: 0.35rem;
  min-height: 2.5rem;
  padding-inline: 1rem;
  border: 0;
  border-radius: 0.45rem;
  color: #fff;
  background: #f47321;
  font-weight: 800;
}

/* =========================================================
   Empty construction canvas
   ========================================================= */

.jd-construction-canvas {
  min-height: calc(100vh - 7.65rem);
  background:
    radial-gradient(
      circle at 85% 15%,
      rgb(244 115 33 / 9%),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #f5f7fa,
      #eef2f7
    );
}

.jd-construction-canvas__inner {
  min-height: calc(100vh - 7.65rem);
}

/* =========================================================
   Mobile navigation
   ========================================================= */

.jd-site-mobile-nav {
  position: absolute;
  right: 0;
  left: 0;
  top: 100%;
  padding-block: 0.8rem;
  border-top: 1px solid #e7ebf1;
  background: #fff;
  box-shadow: 0 20px 38px rgb(7 22 43 / 15%);
}

.jd-site-mobile-nav[hidden] {
  display: none;
}

.jd-site-mobile-nav .jd-main-navigation {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.jd-site-mobile-nav .jd-main-navigation__link {
  min-height: 3.15rem;
  padding-inline: 0.9rem;
  border-radius: 0.45rem;
}

.jd-site-mobile-nav .jd-main-navigation__link::after {
  display: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 74rem) {
  .jd-main-navigation {
    gap: 1rem;
  }

  .jd-main-navigation__link {
    font-size: 0.7rem;
  }

  .jd-site-brand__tagline {
    display: none;
  }
}

@media (max-width: 63.99rem) {
  .jd-utility-bar__follow,
  .jd-utility-bar__socials,
  .jd-utility-bar__right .jd-utility-bar__separator,
  .jd-site-header__desktop-nav,
  .jd-site-action--theme {
    display: none;
  }

  .jd-site-header__inner {
    min-height: 4.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .jd-site-menu-toggle {
    display: grid;
  }

  .jd-site-mobile-nav {
    position: fixed;
    top: 7.15rem;
  }
}

@media (max-width: 47.99rem) {
  .jd-utility-bar__inner {
    min-height: 2.35rem;
  }

  .jd-utility-bar__weather,
  .jd-utility-bar__separator {
    display: none;
  }

  .jd-utility-bar__date {
    font-size: 0.67rem;
  }

  .jd-site-header__inner {
    min-height: 4.25rem;
    gap: 0.75rem;
  }

  .jd-site-brand {
    gap: 0.55rem;
  }

  .jd-site-brand__mark {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1rem;
  }

  .jd-site-brand__name {
    font-size: 1.05rem;
  }

  .jd-site-brand__tagline {
    display: none;
  }

  .jd-site-live-button {
    width: 2.85rem;
    padding: 0;
  }

  .jd-site-live-button > span:last-child {
    display: none;
  }

  .jd-site-action,
  .jd-site-menu-toggle,
  .jd-site-live-button {
    width: 2.65rem;
    height: 2.65rem;
    min-height: 2.65rem;
  }

  .jd-site-mobile-nav {
    top: 6.6rem;
  }

  .jd-construction-canvas {
    min-height: calc(100vh - 6.6rem);
  }
}

@media (max-width: 24rem) {
  .jd-site-action--theme,
  .jd-site-live-button {
    display: none;
  }
}

@keyframes jd-utility-live {
  0% {
    box-shadow: 0 0 0 0 rgb(240 38 55 / 45%);
  }

  70% {
    box-shadow: 0 0 0 0.45rem rgb(240 38 55 / 0%);
  }

  100% {
    box-shadow: 0 0 0 0 rgb(240 38 55 / 0%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jd-utility-bar__live-dot {
    animation: none;
  }
}

/* =========================================================
   Header typography and icon polish V1.1
   ========================================================= */

.jd-utility-bar__inner {
  font-size: 0.75rem;
  font-weight: 600;
}

.jd-utility-bar__live {
  font-weight: 800;
}

.jd-utility-bar__weather,
.jd-utility-bar__date,
.jd-utility-bar__follow {
  font-weight: 600;
}

.jd-utility-bar__weather > .fa,
.jd-utility-bar__date > .fa {
  width: 1rem;
  color: #fff;
  font-size: 0.78rem;
  text-align: center;
}

.jd-utility-bar__weather > .fa {
  color: #ffb34e;
}

.jd-utility-bar__socials a {
  display: grid;
  width: 1.25rem;
  height: 1.5rem;
  place-items: center;
  color: #f2f5f9;
  font-size: 0.78rem;
  line-height: 1;
}

.jd-utility-bar__socials a:hover {
  color: #f47321;
}

.jd-social-x,
.jd-social-tiktok {
  display: block;
  font-weight: 800;
  line-height: 1;
}

.jd-site-brand__name {
  font-size: 1.5rem;
  font-weight: 900;
}

.jd-site-brand__tagline {
  font-size: 0.6rem;
  font-weight: 800;
}

.jd-main-navigation__link {
  gap: 0.42rem;
  color: #111b2d;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.005em;
}

.jd-main-navigation__link .fa-angle-down {
  position: relative;
  top: 1px;
  font-size: 0.78rem;
  font-weight: 700;
}

.jd-site-action {
  font-size: 1.05rem;
}

.jd-site-action .fa {
  line-height: 1;
}

.jd-site-live-button {
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.015em;
}

.jd-site-live-button .fa-rss {
  font-size: 0.95rem;
  transform: rotate(-45deg);
}

.jd-site-menu-toggle {
  font-size: 1.05rem;
}

.jd-utility-bar__account {
  font-weight: 700;
}

/* DLE login output inside the utility bar */

.jd-utility-bar__account a,
.jd-utility-bar__account button {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 74rem) {
  .jd-main-navigation__link {
    font-size: 0.73rem;
    font-weight: 800;
  }
}
