/* ==========================================================================
   DataWebKit WordPress Native Header & Navigation Styles
   100% Native WP Menu Walker & Presentation System
   ========================================================================== */

/* -------------------------------------------------------------
   1. HEADER ROOT & LAYOUT
   ------------------------------------------------------------- */
.dwk-skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: #7c3aed;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  z-index: 999999;
  transition: top 150ms ease;
}

.dwk-skip-link:focus {
  top: 20px;
}

#dwk-main-header,
.dwk-header {
  height: 80px;
  min-height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: rgba(9, 7, 19, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 200ms ease;
  box-sizing: border-box;
}

.dwk-header.dwk-is-transparent:not(.is-scrolled) {
  background-color: transparent;
  border-bottom-color: transparent;
}

.dwk-header.is-scrolled {
  background-color: rgba(9, 7, 19, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

.dwk-header-inner {
  height: 100%;
  width: 100%;
  max-width: var(--dwk-width-container, 1152px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-sizing: border-box;
}

/* -------------------------------------------------------------
   2. BRAND LOGO
   ------------------------------------------------------------- */
.dwk-header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dwk-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  outline: none;
}

.dwk-brand-badge {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
  transition: transform 160ms ease;
}

.dwk-brand-link:hover .dwk-brand-badge {
  transform: scale(1.05);
}

.dwk-brand-letter {
  font-family: var(--dwk-font-heading, 'Sora', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.dwk-brand-text {
  font-family: var(--dwk-font-heading, 'Sora', sans-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  transition: color 150ms ease;
}

.dwk-brand-link:hover .dwk-brand-text {
  color: #c4b5fd;
}

/* -------------------------------------------------------------
   3. DESKTOP PRIMARY NAVIGATION (WordPress Native <ul> <li>)
   ------------------------------------------------------------- */
.dwk-desktop-nav {
  display: flex;
  align-items: center;
}

.dwk-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dwk-nav-item {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dwk-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-family: var(--dwk-font-nav, 'Sora', sans-serif);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 150ms ease;
  outline: none;
}

.dwk-nav-link:hover,
.dwk-nav-link:focus-visible,
.dwk-dropdown-container:hover .dwk-dropdown-btn,
.dwk-dropdown-container.is-open .dwk-dropdown-btn {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.dwk-nav-item.is-active > .dwk-nav-link,
.dwk-nav-link.is-active {
  color: #ffffff;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.06);
}

.dwk-chevron {
  margin-left: 5px;
  transition: transform 180ms ease;
  opacity: 0.7;
}

.dwk-dropdown-container:hover .dwk-chevron,
.dwk-dropdown-container.is-open .dwk-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Nav Badges */
.dwk-nav-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dwk-badge-new { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.35); }
.dwk-badge-hot { background: rgba(244, 63, 94, 0.2); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.35); }
.dwk-badge-pro { background: rgba(124, 58, 237, 0.25); color: #c4b5fd; border: 1px solid rgba(124, 58, 237, 0.4); }

/* -------------------------------------------------------------
   4. DROPDOWNS (Standard & Mega Menus)
   ------------------------------------------------------------- */
.dwk-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  z-index: 99999;
}

.dwk-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}

.dwk-dropdown-container:hover .dwk-dropdown-menu,
.dwk-dropdown-container:focus-within .dwk-dropdown-menu,
.dwk-dropdown-container.is-open .dwk-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dwk-dropdown-panel {
  background: #121021;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
  padding: 8px;
  overflow: hidden;
}

/* Standard Dropdown */
.dwk-standard-dropdown {
  width: 280px;
}

.dwk-sub-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dwk-subnav-link {
  display: flex;
  align-items: center;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 140ms ease;
}

.dwk-subnav-link:hover,
.dwk-subnav-link:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  transform: translateX(2px);
}

/* Mega Menu */
.dwk-mega-dropdown {
  width: 520px;
}

.dwk-mega-cols-3 {
  width: 720px;
}

.dwk-mega-cols-4 {
  width: 900px;
}

.dwk-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 6px;
}

.dwk-mega-cols-3 .dwk-mega-grid {
  grid-template-columns: repeat(3, 1fr);
}

.dwk-mega-cols-4 .dwk-mega-grid {
  grid-template-columns: repeat(4, 1fr);
}

.dwk-mega-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  background: transparent !important;
  text-decoration: none !important;
  transition: background-color 150ms ease, transform 150ms ease !important;
}

.dwk-mega-item:hover,
.dwk-mega-item:focus-visible {
  background-color: rgba(255, 255, 255, 0.06) !important;
  transform: translateX(2px) !important;
}

.dwk-mega-bullet {
  color: #8b5cf6;
  font-size: 10px;
  margin-top: 3px;
}

.dwk-mega-content {
  flex: 1;
}

.dwk-mega-title {
  display: block;
  font-family: var(--dwk-font-heading, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.dwk-mega-desc {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
  line-height: 1.35;
}

/* -------------------------------------------------------------
   5. HEADER ACTIONS (Search + CTA + Hamburger)
   ------------------------------------------------------------- */
.dwk-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dwk-search-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 150ms ease;
}

.dwk-search-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.dwk-header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff !important;
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  border-radius: 10px;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.dwk-header-cta-btn:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.6);
  filter: brightness(1.08);
  color: #ffffff !important;
}

.dwk-btn-arrow {
  transition: transform 150ms ease;
  flex-shrink: 0;
}

.dwk-header-cta-btn:hover .dwk-btn-arrow {
  transform: translateX(3px);
}


/* Hamburger Toggle Button */
.dwk-mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.dwk-hamburger-box {
  width: 20px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.dwk-hamburger-inner,
.dwk-hamburger-box::before,
.dwk-hamburger-box::after {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 200ms ease;
}

.dwk-mobile-toggle-btn.is-active .dwk-hamburger-box::before {
  transform: translateY(6px) rotate(45deg);
}

.dwk-mobile-toggle-btn.is-active .dwk-hamburger-inner {
  opacity: 0;
}

.dwk-mobile-toggle-btn.is-active .dwk-hamburger-box::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* -------------------------------------------------------------
   6. MOBILE DRAWER & ACCORDIONS
   ------------------------------------------------------------- */
.dwk-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background: #090713;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  z-index: 99999;
}

.dwk-mobile-drawer.is-open {
  display: block;
  animation: dwkDrawerDown 220ms ease forwards;
}

@keyframes dwkDrawerDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dwk-mobile-drawer-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 24px 30px;
}

.dwk-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dwk-mobile-item-wrap {
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 4px;
}

.dwk-mobile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dwk-mobile-link {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-family: var(--dwk-font-nav, sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  flex: 1;
}

.dwk-mobile-link:hover,
.dwk-mobile-link.is-active {
  color: #ffffff;
}

.dwk-mobile-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  width: 38px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dwk-acc-icon {
  transition: transform 200ms ease;
}

.dwk-mobile-accordion-toggle.is-active .dwk-acc-icon {
  transform: rotate(180deg);
  color: #c4b5fd;
}

.dwk-mobile-submenu {
  list-style: none;
  margin: 0;
  padding: 4px 0 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dwk-mobile-submenu.hidden {
  display: none;
}

.dwk-mobile-submenu .dwk-mobile-link {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 0;
}

.dwk-mobile-cta-wrap {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dwk-mobile-cta-btn {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
}

/* -------------------------------------------------------------
   7. SEARCH MODAL OVERLAY
   ------------------------------------------------------------- */
.dwk-search-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999999;
}

.dwk-search-modal.is-open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.dwk-search-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 3, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dwk-search-modal-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: 0 20px;
  z-index: 2;
  animation: dwkModalPop 200ms ease forwards;
}

@keyframes dwkModalPop {
  from { opacity: 0; transform: scale(0.96) translateY(-10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.dwk-search-modal-box {
  background: #121021;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.dwk-search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dwk-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.dwk-search-input-icon {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.dwk-search-input {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-family: var(--dwk-font-sans, sans-serif) !important;
  padding: 8px 0 !important;
}

.dwk-search-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 140ms ease;
}

.dwk-search-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.dwk-search-shortcuts {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
}

.dwk-shortcuts-title {
  color: rgba(255, 255, 255, 0.4);
}

.dwk-search-shortcuts a {
  color: #c4b5fd;
  text-decoration: none;
  background: rgba(124, 58, 237, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  transition: background-color 140ms ease;
}

.dwk-search-shortcuts a:hover {
  background: rgba(124, 58, 237, 0.25);
  color: #ffffff;
}

/* -------------------------------------------------------------
   8. RESPONSIVE BREAKPOINT BEHAVIOR
   ------------------------------------------------------------- */
@media (max-width: 1023px) {
  #dwk-main-header,
  .dwk-header {
    height: 70px;
    min-height: 70px;
  }

  .dwk-desktop-nav,
  .dwk-header-actions .dwk-header-cta-btn {
    display: none !important;
  }

  .dwk-mobile-toggle-btn {
    display: flex !important;
  }
}
