/* ============================================================
   MODx Pro — Glass Pill Navigation (PDE-style)
   ============================================================ */

.gn {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.gn.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Glass pill */
.gn-pill {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 24px;
  border-radius: var(--r-full);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border-t);
  border-left: 1px solid var(--border-s);
  border-right: 1px solid var(--border-s);
  border-bottom: 1px solid var(--border-b);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

/* Shimmer sweep */
.gn-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.03) 55%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease);
  pointer-events: none;
}

.gn-pill:hover::before { transform: translateX(100%); }

/* Logo */
.gn-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.gn-logo img {
  height: 34px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.gn-logo:hover img { opacity: 1; }

/* Center links */
.gn-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.gn-links a {
  font-family: var(--ff-h);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color 0.3s;
  white-space: nowrap;
}

/* Criar Conta link — highlighted */
.gn-link-signup {
  color: var(--primary) !important;
  font-weight: 600 !important;
  border: 1px solid rgba(247, 148, 29, 0.3);
  padding: 5px 14px;
  border-radius: var(--r-full);
  transition: all 0.3s !important;
}

.gn-link-signup:hover {
  background: var(--primary) !important;
  color: #000 !important;
  border-color: var(--primary);
}

/* Drawer signup button */
.gn-drawer-signup {
  display: block;
  text-align: center;
  padding: 14px 28px;
  margin-top: 16px;
  border: 2px solid var(--primary);
  border-radius: 12px;
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  letter-spacing: 0.06em;
  transition: all 0.3s;
}

.gn-drawer-signup:hover {
  background: var(--primary);
  color: #000 !important;
}

.gn-links a:hover,
.gn-links a.active { color: var(--t1); }

/* Right area */
.gn-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.gn-yt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-h);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--t2);
  transition: color 0.3s;
}

.gn-yt:hover { color: var(--youtube); }

/* CTA button with animated border */
@property --btn-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes btn-border-spin {
  to { --btn-angle: 360deg; }
}

.gn-cta {
  position: relative;
  background: var(--primary);
  color: #000;
  padding: 8px 18px;
  border-radius: var(--r-md);
  font-family: var(--ff-h);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  z-index: 1;
  white-space: nowrap;
}

.gn-cta::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from var(--btn-angle), var(--primary), rgba(255,255,255,0.15), var(--primary));
  z-index: -1;
  animation: btn-border-spin 3.5s ease-in-out infinite;
  animation-delay: -2s;
  filter: blur(2.5px);
}

.gn-cta:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.gn-m {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.gn-m span {
  width: 22px;
  height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile drawer */
.gn-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.gn-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.gn-drawer a {
  font-family: var(--ff-h);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color 0.3s;
}

.gn-drawer a:hover { color: var(--primary); }

.gn-drawer-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--t2);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 834px) {
  .gn-links { display: none; }
  .gn-yt { display: none; }
  .gn-m { display: flex; }
}

@media (max-width: 500px) {
  .gn-cta { display: none; }
}
