/* Event Country global header polish + social icons
   Replace: assets/css/ecx-social-header.css
*/

:root {
  --ecx-header-height: 78px;
  --ecx-orange: #ff5a1f;
  --ecx-yellow: #f7d900;
  --ecx-ink: #0f172a;
  --ecx-muted: #64748b;
  --ecx-line: rgba(15, 23, 42, 0.08);
  --ecx-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

/* =========================
   Main header layout
   ========================= */
.ecx-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--ecx-line) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04) !important;
}

.ecx-header-inner,
.ecx-header-shell {
  min-height: var(--ecx-header-height) !important;
  width: min(100% - 48px, 1540px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 26px !important;
}

.ecx-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  min-width: 190px !important;
  color: var(--ecx-ink) !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  letter-spacing: -0.02em !important;
}

.ecx-brand img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  display: block !important;
}

.ecx-nav {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
  min-width: 0 !important;
}

.ecx-nav a {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  min-height: 42px !important;
  color: #101827 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: color 0.18s ease !important;
}

.ecx-nav a:hover,
.ecx-nav a.is-active,
.ecx-nav a.active,
.ecx-nav a[aria-current="page"] {
  color: #020617 !important;
}

.ecx-nav a.is-active::after,
.ecx-nav a.active::after,
.ecx-nav a[aria-current="page"]::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: var(--ecx-yellow) !important;
}

.ecx-header-actions {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  margin-left: auto !important;
  min-width: 0 !important;
}

/* =========================
   Social icons
   ========================= */
.ecx-social-header {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ecx-social-header a {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  text-decoration: none !important;
  overflow: hidden !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.ecx-social-header a:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(255, 90, 31, 0.35) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12) !important;
}

.ecx-social-header img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  display: block !important;
}

/* hide old text-social styling if any old header remains */
.ecx-header-social,
.ecx-mobile-social {
  display: none !important;
}

/* prevent duplicate social row appearing under the header */
body > .ecx-social-header,
body > .ecx-social-header-mobile,
.ecx-header + .ecx-social-header,
.ecx-header + .ecx-social-header-mobile,
main > .ecx-social-header,
main > .ecx-social-header-mobile,
.ecx-social-header-mobile {
  display: none !important;
}

/* But keep social icons visible when they are inside the header actions */
.ecx-header-actions > .ecx-social-header {
  display: inline-flex !important;
}

/* =========================
   Search + store buttons
   ========================= */
.ecx-header-icon,
.ecx-search-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  color: #020617 !important;
  font-weight: 900 !important;
  font-size: 20px !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
}

.ecx-download-logo,
.ecx-store-badge {
  width: 138px !important;
  height: 42px !important;
  min-width: 138px !important;
  max-width: 138px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  padding: 0 !important;
  text-decoration: none !important;
  flex: 0 0 auto !important;
}

.ecx-download-logo img,
.ecx-store-badge img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
}

.ecx-store-row .ecx-download-logo,
.ecx-store-row .ecx-store-badge {
  width: 145px !important;
  height: 44px !important;
  min-width: 145px !important;
  max-width: 145px !important;
}

.ecx-menu-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(15, 23, 42, 0.10) !important;
  background: #ffffff !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 5px !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06) !important;
  cursor: pointer !important;
}

.ecx-menu-btn span {
  display: block !important;
  width: 18px !important;
  height: 2px !important;
  border-radius: 999px !important;
  background: #0f172a !important;
}

/* =========================
   Mobile menu
   ========================= */
.ecx-mobile-menu {
  display: none !important;
  width: min(100% - 32px, 1540px) !important;
  margin: 0 auto 14px auto !important;
  padding: 14px !important;
  background: #ffffff !important;
  border: 1px solid var(--ecx-line) !important;
  border-radius: 12px !important;
  box-shadow: var(--ecx-shadow) !important;
}

.ecx-mobile-menu.active,
.ecx-mobile-menu.is-open {
  display: grid !important;
  gap: 8px !important;
}

.ecx-mobile-menu a {
  padding: 11px 12px !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  text-decoration: none !important;
  font-weight: 800 !important;
}

.ecx-mobile-menu a:hover {
  background: #fff7ed !important;
  color: var(--ecx-orange) !important;
}

.ecx-mobile-menu.active .ecx-social-header-mobile,
.ecx-mobile-menu.active .ecx-social-header {
  display: inline-flex !important;
  justify-content: flex-start !important;
  padding: 8px 4px 2px !important;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1280px) {
  .ecx-header-inner,
  .ecx-header-shell {
    width: min(100% - 32px, 1540px) !important;
    gap: 18px !important;
  }

  .ecx-nav {
    gap: 17px !important;
  }

  .ecx-nav a {
    font-size: 14px !important;
  }

  .ecx-social-header a {
    width: 34px !important;
    height: 34px !important;
  }

  .ecx-social-header img {
    width: 20px !important;
    height: 20px !important;
  }

  .ecx-download-logo,
  .ecx-store-badge {
    width: 128px !important;
    min-width: 128px !important;
    max-width: 128px !important;
    height: 39px !important;
  }
}

@media (max-width: 1080px) {
  .ecx-nav {
    display: none !important;
  }

  .ecx-brand {
    min-width: 0 !important;
  }

  .ecx-menu-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 820px) {
  :root {
    --ecx-header-height: 68px;
  }

  .ecx-header-inner,
  .ecx-header-shell {
    width: min(100% - 24px, 1540px) !important;
    gap: 10px !important;
  }

  .ecx-brand span {
    font-size: 17px !important;
  }

  .ecx-brand img {
    width: 34px !important;
    height: 34px !important;
  }

  .ecx-header-actions {
    gap: 7px !important;
  }

  .ecx-header-actions > .ecx-social-header {
    display: none !important;
  }

  .ecx-download-logo,
  .ecx-store-badge {
    display: none !important;
  }

  .ecx-header-icon,
  .ecx-search-icon,
  .ecx-menu-btn {
    width: 40px !important;
    height: 40px !important;
  }
}

@media (max-width: 480px) {
  .ecx-header-inner,
  .ecx-header-shell {
    width: min(100% - 18px, 1540px) !important;
  }

  .ecx-brand span {
    max-width: 124px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .ecx-header-icon,
  .ecx-search-icon {
    display: none !important;
  }
}
