/* ==========================================================================
   Components: Header, Buttons, Badges, Pills & Navigation
   ========================================================================== */

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-logo {
  height: 38px;
  width: auto;
}

/* Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-body);
  transition: var(--transition-normal);
  padding: 8px 4px;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  transition: var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-web-cta {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: #FFFFFF;
  font-weight: 800;
  padding: 14px 28px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
}

.btn-web-cta:hover {
  background: linear-gradient(135deg, #4338CA 0%, #4F46E5 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

/* Store Badge Buttons */
.store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge-link {
  display: inline-block;
  border-radius: 10px;
  transition: var(--transition-normal);
}

.store-badge-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

/* Featured Store Badge Highlight (US-66) */
.store-badge-link.badge-featured {
  position: relative;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4), 0 10px 25px -5px rgba(79, 70, 229, 0.35);
  border-radius: var(--radius-sm, 10px);
}

.store-badge-link.badge-featured::after {
  content: '★ For Your Device';
  position: absolute;
  top: -10px;
  right: 8px;
  background: var(--color-primary, #4F46E5);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  letter-spacing: 0.02em;
}

.store-badge-link img,
.store-badge-link svg {
  height: 48px;
  width: auto;
}

/* Pills & Badges */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pill-primary {
  background: var(--primary-subtle);
  color: var(--primary);
}

.pill-star {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FDE68A;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.15);
}

.pill-reward {
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  font-weight: 800;
}

.pill-xp {
  background: #F3E8FF;
  color: #6B21A8;
  border: 1px solid #E9D5FF;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-main);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* Mobile Navigation Drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFFFFF;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--primary);
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-web-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}
