/* ============================================================
   HackZone Cloud — Zoho Desk Help Center Header CSS
   Compatible with the Zoho Desk Header__ class structure
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --hz-ink:       #03162B;
  --hz-ink2:      #0A2540;
  --hz-blue:      #1565C0;
  --hz-blue2:     #1976D2;
  --hz-blue3:     #42A5F5;
  --hz-sky:       #90CAF9;
  --hz-pale:      #E3F2FD;
  --hz-white:     #ffffff;
  --hz-border:    rgba(66, 165, 245, 0.22);
  --hz-glass:     rgba(255, 255, 255, 0.06);
  --hz-nav-h:     64px;
}

/* ============================================================
   BACKGROUND LAYER
   ============================================================ */
.Header__headerBg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hz-nav-h);
  z-index: 199;
  pointer-events: none;
}

.Header__bgColor {
  position: absolute;
  inset: 0;
  background: var(--hz-ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  /* Subtle shimmer line at top */
  box-shadow: inset 0 1px 0 rgba(66, 165, 245, 0.18);
}

/* ============================================================
   NAV WRAPPER & BOX
   ============================================================ */
.Header__menuWrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--hz-nav-h);
  font-family: 'DM Sans', sans-serif;
}

.Header__menuBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  gap: 1.5rem;
}

/* ============================================================
   LOGO
   ============================================================ */
.Header__logoPart {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.Header__logoimg {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.Header__logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  /* Subtle glow around logo */
  filter: drop-shadow(0 0 8px rgba(66, 165, 245, 0.35));
  transition: filter 0.2s;
}

.Header__logoimg:hover .Header__logo {
  filter: drop-shadow(0 0 14px rgba(66, 165, 245, 0.55));
}

.Header__logotxt {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16.5px;
  color: #ffffff;
  letter-spacing: -0.3px;
  white-space: nowrap;
  /* If logo image missing, this text still looks great */
}

/* ============================================================
   NAV BUTTON AREA
   ============================================================ */
.Header__navbtn {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: flex-end;
}

/* ─── NAV LIST ─── */
.Header__nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.Header__menuList {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.Header__menuList:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* Active state — Zoho Desk usually adds .active or aria-selected */
.Header__menuList.active,
.Header__menuList[aria-selected="true"],
#portal_tabHome.active {
  color: var(--hz-blue3);
}

/* Zoho renders nav items as <li> wrapping <a> — style those too */
.Header__menuList a,
.Header__menuList > span {
  display: block;
  padding: 7px 14px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.Header__menuList a:hover {
  color: #fff;
}

/* Sign In / Sign Out button */
#portal_tabHome,
.Header__menuList:has(a[href*="signin"]),
.Header__menuList:last-of-type {
  /* preserve natural Zoho rendering */
}

/* Zoho's SignIn/SignOut typically renders as a styled button */
.Header__nav .zd-signin,
.Header__nav [id*="signin"],
.Header__nav [id*="signout"] {
  background: var(--hz-blue2);
  color: #fff !important;
  border-radius: 8px;
  padding: 7px 16px;
  font-weight: 600;
  margin-left: 4px;
  transition: background 0.15s;
}

.Header__nav .zd-signin:hover,
.Header__nav [id*="signin"]:hover {
  background: var(--hz-blue);
}

/* ─── HAMBURGER MENU (mobile) ─── */
.Header__menuClick {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.Header__menuClick:hover {
  background: rgba(255, 255, 255, 0.08);
}

.Header__menu,
.Header__menu::before,
.Header__menu::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}

.Header__menu {
  position: relative;
}

.Header__menu::before,
.Header__menu::after {
  content: '';
  position: absolute;
  left: 0;
}

.Header__menu::before { top: -6px; }
.Header__menu::after  { top:  6px; }

.Header__responsivefreez {
  display: none;
}

/* ============================================================
   TITLE + SEARCH HERO SECTION
   ============================================================ */
.Header__titleSearchWrapper {
  background: var(--hz-ink2);
  position: relative;
  overflow: hidden;
  padding: 80px 2rem 96px;
  text-align: center;
  /* Push below the fixed nav */
  margin-top: var(--hz-nav-h);
}

/* Grid overlay texture */
.Header__titleSearchWrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(21, 101, 192, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 101, 192, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow center */
.Header__titleSearchWrapper::after {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(25, 118, 210, 0.2) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.Header__titleSearchBox {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

/* ─── WELCOME TITLE ─── */
.Header__titleDescription {
  margin-bottom: 2.25rem;
}

.Header__welcomeTitle {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 0 0 0.75rem;
  /* Gradient text accent on last word — optional */
  text-shadow: 0 2px 30px rgba(66, 165, 245, 0.15);
}

.Header__welcomeDescription {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(144, 202, 249, 0.75);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ─── BANNER / SEARCH CONTAINER ─── */
.Header__banneralt {
  position: relative;
}

.Header__searchSubCont {
  display: flex;
  justify-content: center;
}

.Header__searchalt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 580px;
}

/* ─── SEARCH INPUT WRAPPER ─── */
.Header__searchLink {
  flex: 1;
  position: relative;
}

.Header__searchBox {
  width: 100%;
}

/* Zoho renders a real <input> inside .Header__searchBox */
.Header__searchBox input[type="text"],
.Header__searchBox input[type="search"],
.Header__searchBox .zd-search-field,
.Header__searchBox > div,
.Header__searchBox > input {
  width: 100%;
  padding: 15px 18px 15px 48px;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid rgba(66, 165, 245, 0.28);
  border-radius: 12px;
  color: #ffffff;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.Header__searchBox input::placeholder,
.Header__searchBox .zd-search-field::placeholder {
  color: rgba(144, 202, 249, 0.4);
}

.Header__searchBox input:focus,
.Header__searchBox .zd-search-field:focus {
  border-color: rgba(66, 165, 245, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

/* Search icon (Zoho usually injects SVG/icon inside) */
.Header__searchLink::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='rgba(144,202,249,0.55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}

/* ─── PANEL BUTTONS (+ Add Ticket / Add Topic) ─── */
.Header__panelbtns {
  flex-shrink: 0;
}

.Header__cdstretchynav {
  position: relative;
}

.Header__overlayresponav {
  display: none;
}

/* The trigger button (+ icon) */
.Header__cdnavtrigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--hz-blue2);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  position: relative;
}

.Header__cdnavtrigger::before,
.Header__cdnavtrigger::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s;
}

.Header__cdnavtrigger::before {
  width: 16px;
  height: 2px;
}

.Header__cdnavtrigger::after {
  width: 2px;
  height: 16px;
}

.Header__cdstretchynav:hover .Header__cdnavtrigger,
.Header__cdstretchynav.active .Header__cdnavtrigger {
  background: var(--hz-blue);
  transform: rotate(45deg);
}

/* ─── DROPDOWN CONTAINER ─── */
.Header__container {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1.5px solid #D0E4F5;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(3, 22, 43, 0.14);
  overflow: hidden;
  min-width: 180px;
  display: none;
  z-index: 300;
}

.Header__cdstretchynav.active .Header__container,
.Header__cdstretchynav:hover .Header__container {
  display: block;
}

.Header__containerUl {
  list-style: none;
  margin: 0;
  padding: 6px;
}

.Header__containerUl li,
.Header__containerUl > * {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--hz-ink);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
}

.Header__containerUl li:hover,
.Header__containerUl > *:hover {
  background: var(--hz-pale);
  color: var(--hz-blue);
}

.Header__stretchynavbg {
  display: none;
}

/* ─── BREADCRUMBS ─── */
.Header__titleSearchWrapper .zd-breadcrumb,
.Header__banneralt .zd-breadcrumb,
[class*="BreadCrumb"],
[class*="breadcrumb"] {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(144, 202, 249, 0.55);
  font-family: 'DM Sans', sans-serif;
}

[class*="breadcrumb"] a,
[class*="BreadCrumb"] a {
  color: rgba(144, 202, 249, 0.55);
  text-decoration: none;
  transition: color 0.15s;
}

[class*="breadcrumb"] a:hover,
[class*="BreadCrumb"] a:hover {
  color: var(--hz-sky);
}

[class*="breadcrumb"] .separator,
[class*="breadcrumb"] span {
  color: rgba(144, 202, 249, 0.3);
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .Header__menuBox {
    padding: 0 1.25rem;
  }

  .Header__nav {
    display: none;
    position: fixed;
    top: var(--hz-nav-h);
    left: 0;
    right: 0;
    background: var(--hz-ink2);
    border-bottom: 1px solid rgba(66, 165, 245, 0.15);
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 2px;
    z-index: 198;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  }

  .Header__nav.open {
    display: flex;
  }

  .Header__menuList {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
  }

  .Header__menuList a,
  .Header__menuList > span {
    padding: 0;
  }

  .Header__menuClick {
    display: flex;
  }

  .Header__logotxt {
    font-size: 15px;
  }

  .Header__titleSearchWrapper {
    padding: 64px 1.25rem 80px;
  }

  .Header__welcomeTitle {
    font-size: 28px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {
  .Header__menuBox {
    padding: 0 1rem;
  }

  .Header__logo {
    height: 28px;
  }

  .Header__logotxt {
    display: none;
  }

  .Header__titleSearchWrapper {
    padding: 52px 1rem 68px;
  }

  .Header__welcomeTitle {
    font-size: 24px;
    letter-spacing: -0.5px;
  }

  .Header__welcomeDescription {
    font-size: 14px;
  }

  .Header__searchalt {
    flex-direction: column;
    gap: 10px;
  }

  .Header__searchLink {
    width: 100%;
  }

  .Header__panelbtns {
    width: 100%;
  }

  .Header__cdnavtrigger {
    width: 100%;
    border-radius: 10px;
  }

  .Header__container {
    left: 0;
    right: 0;
    min-width: unset;
  }
}

/* ============================================================
   ZOHO DESK OVERRIDES
   These neutralize Zoho's default conflicting styles
   ============================================================ */

/* Remove Zoho's default white background from nav */
.Header__menuWrapper,
.Header__menuBox {
  background: transparent !important;
}

/* Remove Zoho's default box shadow on header */
.Header__menuWrapper {
  box-shadow: none !important;
}

/* Override Zoho's default link colors in nav */
.Header__nav a {
  color: rgba(255, 255, 255, 0.65) !important;
}

.Header__nav a:hover {
  color: #fff !important;
  text-decoration: none !important;
}

/* Override Zoho's default search box styles */
.Header__searchBox .zd-search-field,
.Header__searchBox input {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(66, 165, 245, 0.28) !important;
  color: #fff !important;
  border-radius: 12px !important;
}

/* Override Zoho's default button in nav */
.Header__nav .zd-btn,
.Header__nav button {
  font-family: 'DM Sans', sans-serif !important;
  border-radius: 8px !important;
}
