/* ==========================================================================
   UseTools.in - shared site header
   Desktop : Logo | Home | Tools (hover dropdown) | About Us
   Mobile  : Logo + hamburger, Tools opens as an accordion
   ========================================================================== */
.site-global-header { position: fixed; top: 0; left: 0; width: 100%; background-color: #0b0f19; border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 4px 20px rgba(0,0,0,.3); z-index: 10000; box-sizing: border-box; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; line-height: 1.5; font-size: 16px; }
.site-global-header *, .site-global-header *::before, .site-global-header *::after { box-sizing: border-box; }
.site-global-header .header-inner-container { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; position: relative; }

/* Logo */
.site-global-header .header-logo-area { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.site-global-header .header-logo-badge { background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; box-shadow: 0 2px 8px rgba(99,102,241,.4); }
.site-global-header .header-logo-text { color: #fff; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; margin: 0; white-space: nowrap; }

/* Desktop navigation */
.site-global-header .header-nav-links { display: flex; align-items: center; gap: 6px; }
.site-global-header .header-nav-links > a,
.site-global-header .nav-dropdown-toggle { color: #94a3b8; text-decoration: none; font: inherit; font-size: .9rem; font-weight: 600; white-space: nowrap; padding: 8px 14px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; line-height: 1.4; transition: color .2s ease, background-color .2s ease; }
.site-global-header .header-nav-links > a:hover,
.site-global-header .nav-dropdown-toggle:hover,
.site-global-header .nav-dropdown.open > .nav-dropdown-toggle { color: #fff; background-color: rgba(99,102,241,.15); }
.site-global-header .header-nav-links > a.active-link,
.site-global-header .nav-dropdown-toggle.active-link { color: #fff; font-weight: 700; }
.site-global-header .header-nav-links a:focus-visible,
.site-global-header .nav-dropdown-toggle:focus-visible { outline: 2px solid #818cf8; outline-offset: 2px; }

/* Tools dropdown */
.site-global-header .nav-dropdown { position: relative; }
.site-global-header .nav-chevron { width: 12px; height: 12px; transition: transform .2s ease; flex-shrink: 0; }
.site-global-header .nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.site-global-header .nav-dropdown-menu { position: absolute; top: 100%; left: 50%; min-width: 290px; padding-top: 12px; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; z-index: 10002; }
.site-global-header .nav-dropdown-panel { background: #111827; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.site-global-header .nav-dropdown-menu a { display: block; color: #cbd5e1; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 10px 14px; border-radius: 8px; white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.site-global-header .nav-dropdown-menu a:hover,
.site-global-header .nav-dropdown-menu a:focus-visible { background-color: rgba(99,102,241,.2); color: #fff; outline: none; }
.site-global-header .nav-dropdown-menu a.active-link { background-color: rgba(99,102,241,.25); color: #fff; font-weight: 700; }
.site-global-header .nav-dropdown.open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 769px) {
  .site-global-header .nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .site-global-header .nav-dropdown:hover > .nav-dropdown-toggle { color: #fff; background-color: rgba(99,102,241,.15); }
  .site-global-header .nav-dropdown:hover .nav-chevron { transform: rotate(180deg); }
}

/* Hamburger (hidden on desktop) */
.site-global-header .header-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.site-global-header .header-menu-toggle span { display: block; width: 24px; height: 2px; background-color: #fff; border-radius: 2px; }

/* Mobile / tablet */
@media (max-width: 768px) {
  .site-global-header .header-menu-toggle { display: flex; margin-left: auto; }
  .site-global-header .header-nav-links { position: absolute; top: 100%; left: 0; width: 100%; background-color: #0b0f19; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 12px 16px; gap: 4px; display: none; border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 10px 20px rgba(0,0,0,.4); max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-global-header .header-nav-links.mobile-active { display: flex; }
  .site-global-header .header-nav-links > a,
  .site-global-header .nav-dropdown-toggle { width: 100%; justify-content: space-between; font-size: .95rem; padding: 12px 16px; color: #cbd5e1; text-align: left; }
  .site-global-header .header-nav-links > a.active-link { background-color: rgba(99,102,241,.25); }
  .site-global-header .nav-dropdown { width: 100%; }
  .site-global-header .nav-dropdown-menu { position: static; min-width: 0; padding-top: 4px; opacity: 1; visibility: visible; transform: none; display: none; transition: none; }
  .site-global-header .nav-dropdown.open .nav-dropdown-menu { display: block; transform: none; }
  .site-global-header .nav-dropdown-panel { background: rgba(255,255,255,.04); border: 0; box-shadow: none; border-radius: 10px; padding: 6px; }
  .site-global-header .nav-dropdown-menu a { white-space: normal; padding: 11px 14px; font-size: .9rem; }
}
