/* ============================================================
   GTA 6 Tricks — Header/Footer/Mobile/Search CSS
   Addendum to g6t-main.css - loaded in same handle
   ============================================================ */

/* ============================================================
   1. MOBILE MENU
   ============================================================ */
.g6t-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: #0A0A0F;
  transform: translateX(-100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.g6t-mobile-menu.is-open { transform: translateX(0); }
.g6t-mobile-menu[aria-hidden="true"] { visibility: hidden; }
.g6t-mobile-menu[aria-hidden="false"] { visibility: visible; }

.g6t-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #1A1A24;
  height: 56px;
  flex-shrink: 0;
}
.g6t-mobile-menu__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}
.g6t-mobile-menu__logo .g6t-logo__6 { color: #FF1F8F; }
.g6t-mobile-menu__close {
  width: 44px; height: 44px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.g6t-mobile-menu__close:hover { background: #1A1A24; }
.g6t-mobile-menu__close .g6t-icon { width: 24px; height: 24px; }

.g6t-mobile-menu__search {
  position: relative;
  padding: 16px;
  border-bottom: 1px solid #1A1A24;
  flex-shrink: 0;
}
.g6t-mobile-menu__search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: #6B6B7B;
  width: 18px; height: 18px;
  pointer-events: none;
}
.g6t-mobile-menu__search-input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  background: #1A1A24;
  border: 1px solid #2D2D3A;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9375rem;
}
.g6t-mobile-menu__search-input::placeholder { color: #6B6B7B; }
.g6t-mobile-menu__search-input:focus { outline: none; border-color: #FF1F8F; }

.g6t-mobile-menu__nav {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  flex: 1;
}
.g6t-mobile-menu__nav li { border-bottom: 1px solid #1A1A24; }
.g6t-mobile-menu__nav li:last-child { border-bottom: none; }
.g6t-mobile-menu__nav > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: color 200ms;
}
.g6t-mobile-menu__nav > li > a:hover { color: #FF1F8F; }
.g6t-mobile-menu__nav .g6t-mnav--pink > a { color: #FF1F8F; }
.g6t-mobile-menu__nav .g6t-mnav--teal > a { color: #00D4D8; }
.g6t-mobile-menu__nav .sub-menu { list-style: none; padding: 0 0 8px 20px; margin: 0; background: #1A1A24; }
.g6t-mobile-menu__nav .sub-menu a { display: block; padding: 12px 20px; font-size: 0.875rem; color: #B5B5C0; text-decoration: none; }
.g6t-mobile-menu__nav .sub-menu a:hover { color: #FF1F8F; }

.g6t-mobile-menu__footer {
  padding: 20px;
  border-top: 1px solid #1A1A24;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #0A0A0F;
  flex-shrink: 0;
}
.g6t-mobile-menu__footer-link {
  color: #B5B5C0;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 8px 0;
}
.g6t-mobile-menu__footer-link:hover { color: #FF1F8F; }

/* ============================================================
   2. SEARCH MODAL (Enhanced)
   ============================================================ */
.g6t-search-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms, visibility 200ms;
}
.g6t-search-modal.is-open { opacity: 1; visibility: visible; }
.g6t-search-modal[aria-hidden="false"] { visibility: visible; opacity: 1; }

.g6t-search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.g6t-search-modal__inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}
.g6t-search-modal__input-wrap {
  position: relative;
  border-bottom: 1px solid #E5E5EC;
  flex-shrink: 0;
}
.g6t-search-modal__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #6B6B7B;
  width: 20px; height: 20px;
  pointer-events: none;
}
.g6t-search-modal__input {
  width: 100%;
  height: 64px;
  padding: 0 60px 0 52px;
  border: none;
  font-size: 1.0625rem;
  background: #fff;
  color: #0A0A0F;
}
.g6t-search-modal__input:focus { outline: none; }
.g6t-search-modal__close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: none;
  background: #F2F2F5;
  border-radius: 50%;
  cursor: pointer;
  color: #0A0A0F;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms;
}
.g6t-search-modal__close:hover { background: #E5E5EC; }
.g6t-search-modal__close .g6t-icon { width: 16px; height: 16px; }

.g6t-search-modal__results {
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px;
  flex: 1;
  min-height: 200px;
}
.g6t-search-modal__result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #0A0A0F;
  transition: background 150ms;
}
.g6t-search-modal__result:hover { background: #F2F2F5; text-decoration: none; }
.g6t-search-modal__result-type {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #FF1F8F;
}
.g6t-search-modal__result-title { font-weight: 500; font-size: 0.9375rem; }
.g6t-search-modal__empty {
  padding: 40px 24px;
  text-align: center;
  color: #6B6B7B;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}
.g6t-search-modal__empty .g6t-icon { width: 32px; height: 32px; opacity: 0.5; }

.g6t-search-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid #E5E5EC;
  background: #FAFAFB;
  font-size: 0.75rem;
  color: #6B6B7B;
  flex-shrink: 0;
}
.g6t-search-modal__footer kbd {
  background: #fff;
  border: 1px solid #E5E5EC;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  margin: 0 4px;
}
.g6t-search-modal__advanced { color: #FF1F8F; text-decoration: none; font-weight: 500; }
.g6t-search-modal__advanced:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .g6t-search-modal { padding: 16px; align-items: stretch; }
  .g6t-search-modal__inner { max-height: 100%; }
}

/* ============================================================
   3. HEADER LOGO
   ============================================================ */
.g6t-header__logo {
  display: inline-flex;
  align-items: baseline;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.g6t-header__logo:hover { color: #fff; text-decoration: none; }
.g6t-header__logo .g6t-logo__6 { color: #FF1F8F; }
.g6t-header__logo .g6t-logo__tld { color: #00D4D8; font-size: 0.7em; opacity: 0.8; margin-left: 2px; }

/* ============================================================
   4. HEADER NAV LIST (with fallback)
   ============================================================ */
.g6t-header__nav-list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
}
.g6t-header__nav-list > li { position: relative; }
.g6t-header__nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #B5B5C0;
  text-decoration: none;
  border-radius: 6px;
  transition: color 200ms, background 200ms;
  white-space: nowrap;
}
.g6t-header__nav-link:hover,
.g6t-header__nav-link:focus-visible,
.g6t-current-menu-item > .g6t-header__nav-link {
  color: #fff;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
}
.g6t-header__nav-link.g6t-nav--pink:hover { color: #FF1F8F; }
.g6t-header__nav-link.g6t-nav--teal:hover { color: #00D4D8; }
.g6t-header__nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #1A1A24;
  border: 1px solid #2D2D3A;
  border-radius: 8px;
  padding: 8px 0;
  margin: 4px 0 0;
  min-width: 200px;
  display: none;
  list-style: none;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.g6t-header__nav-list > li:hover > .sub-menu,
.g6t-header__nav-list > li:focus-within > .sub-menu { display: block; }
.g6t-header__nav-list .sub-menu a {
  display: block;
  padding: 8px 16px;
  color: #B5B5C0;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.g6t-header__nav-list .sub-menu a:hover { color: #FF1F8F; background: rgba(255,255,255,0.04); }

@media (max-width: 1024px) {
  .g6t-header__nav { display: none; }
}

/* ============================================================
   5. FOOTER ENHANCEMENTS
   ============================================================ */
.g6t-footer__logo { font-size: 1.5rem; margin: 0 0 12px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.g6t-footer__logo a { color: #fff; text-decoration: none; }
.g6t-footer__menu { list-style: none; padding: 0; margin: 0; }
.g6t-footer__menu li { margin-bottom: 10px; }
.g6t-footer__menu a {
  color: #B5B5C0;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 200ms;
  display: inline-block;
}
.g6t-footer__menu a:hover { color: #FF1F8F; }
.g6t-footer__regions { font-size: 1.125rem; }
.g6t-footer__disclaimer { color: #6B6B7B; }

.g6t-footer__social .g6t-icon { width: 16px; height: 16px; }

/* ============================================================
   6. UTILITY - prevent scroll
   ============================================================ */
body.g6t-no-scroll { overflow: hidden; }

/* ============================================================
   7. READING PROGRESS BAR
   ============================================================ */
.g6t-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 300;
  pointer-events: none;
}
.g6t-reading-progress__fill {
  height: 100%;
  background: #FF1F8F;
  width: 0;
  transition: width 100ms linear;
}

/* ============================================================
   8. MOBILE-SPECIFIC TWEAKS
   ============================================================ */
@media (max-width: 600px) {
  .g6t-header__inner { padding: 0 12px; }
  .g6t-header__btn--newsletter span { display: none; }
  .g6t-header__btn--newsletter { padding: 0; width: 40px; }
  .g6t-header__logo { font-size: 1.125rem; }
}
