/**
 * Gmingo Premium Mobile Navigation Drawer
 */
.gp-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}
.gp-mobile-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.gp-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: min(340px, 92vw);
  height: 100%;
  height: 100dvh;
  background: var(--gp-card, #fff);
  box-shadow: 8px 0 40px -12px rgba(15, 23, 42, 0.2);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gp-mobile-drawer.is-open {
  transform: translateX(0);
}

.gp-mobile-drawer__head {
  flex-shrink: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gp-border, #e2e8f0);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.gp-mobile-drawer__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.gp-mobile-drawer__logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.gp-mobile-drawer__close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--gp-border, #e2e8f0);
  background: #fff;
  color: var(--gp-text-secondary, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.gp-mobile-drawer__close:hover {
  background: #f1f5f9;
  color: var(--gp-text, #0f172a);
}
.gp-mobile-drawer__close:active { transform: scale(0.94); }

.gp-mobile-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--gp-radius-sm, 16px);
  background: var(--gp-primary-soft, rgba(47, 128, 237, 0.1));
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.gp-mobile-profile__avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gp-primary, #2F80ED);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 128, 237, 0.2);
}
.gp-mobile-profile__avatar--photo {
  background: #e2e8f0;
  padding: 0;
}
.gp-mobile-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gp-mobile-profile__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gp-text, #0f172a);
}
.gp-mobile-profile__sub {
  font-size: 0.75rem;
  color: var(--gp-text-secondary, #64748b);
}

.gp-mobile-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--gp-border, #e2e8f0);
  background: #fff;
  box-shadow: var(--gp-shadow-xs, 0 1px 2px rgba(15,23,42,.04));
}
.gp-mobile-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-size: 0.9375rem;
  color: var(--gp-text, #0f172a);
  outline: none;
  min-width: 0;
}
.gp-mobile-search input::placeholder { color: #94a3b8; }

.gp-mobile-drawer__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem 1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.gp-mobile-section {
  margin-bottom: 1.25rem;
}
.gp-mobile-section__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gp-text-secondary, #64748b);
  padding: 0.5rem 0.75rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.gp-mobile-section__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #e2e8f0, transparent);
}

.gp-mobile-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 48px;
  padding: 0.65rem 0.875rem;
  margin-bottom: 0.25rem;
  border-radius: 14px;
  color: var(--gp-text, #0f172a);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.gp-mobile-link:hover,
.gp-mobile-link:focus-visible {
  background: var(--gp-primary-soft, rgba(47, 128, 237, 0.1));
  color: var(--gp-primary, #2F80ED);
}
.gp-mobile-link:active {
  transform: scale(0.98);
}
.gp-mobile-link.is-active {
  background: var(--gp-primary-soft, rgba(47, 128, 237, 0.12));
  color: var(--gp-primary, #2F80ED);
  font-weight: 600;
}
.gp-mobile-link__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}
.gp-mobile-link:hover .gp-mobile-link__icon,
.gp-mobile-link.is-active .gp-mobile-link__icon {
  background: rgba(47, 128, 237, 0.15);
  transform: scale(1.05);
}
.gp-mobile-link__icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.gp-mobile-link--cta {
  background: var(--gp-primary, #2F80ED);
  color: #fff !important;
  font-weight: 600;
  margin-top: 0.5rem;
  box-shadow: var(--gp-shadow-sm);
}
.gp-mobile-link--cta .gp-mobile-link__icon {
  background: rgba(255, 255, 255, 0.2);
}
.gp-mobile-link--cta:hover {
  background: var(--gp-primary-hover, #1F6FE5);
}

.gp-mobile-categories {
  border: 1px solid var(--gp-border, #e2e8f0);
  border-radius: var(--gp-radius-sm, 16px);
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.gp-mobile-categories summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem;
  cursor: pointer;
  font-weight: 500;
}
.gp-mobile-categories summary::-webkit-details-marker { display: none; }
.gp-mobile-categories[open] summary {
  border-bottom: 1px solid var(--gp-border, #e2e8f0);
  background: #f8fafc;
}
.gp-mobile-categories__list {
  padding: 0.5rem;
  max-height: 40vh;
  overflow-y: auto;
}
.gp-mobile-categories__list a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--gp-text, #0f172a);
}
.gp-mobile-categories__list a:hover {
  background: var(--gp-primary-soft);
  color: var(--gp-primary);
}

body.gp-mobile-nav-open {
  overflow: hidden;
  touch-action: none;
}

@media (min-width: 1024px) {
  .gp-mobile-overlay,
  .gp-mobile-drawer { display: none !important; }
}
