/* ==========================================================================
   SPACIOUS FULL-CONTAINER MEGA MENU NAVIGATION — MarketingStuff.xyz
   ========================================================================== */
.site-header .container {
  position: relative;
  max-width: 1280px;
}

.header-inner {
  position: relative;
}

.primary-nav {
  position: static;
}

.mega-menu-item {
  position: static;
  display: inline-block;
}

.mega-menu.mega-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  background: var(--color-white, #ffffff);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: 24px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 1000;
}

.has-mega-menu.mega-menu-item:hover .mega-menu.mega-dropdown,
.has-mega-menu.mega-menu-item.mega-menu-open .mega-menu.mega-dropdown,
.mega-menu-item:hover .mega-dropdown,
.mega-menu-item.mega-menu-open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-dropdown-grid {
  display: grid;
  gap: 24px;
}

.mega-grid-4 {
  grid-template-columns: 1fr 1fr 1fr 280px;
  align-items: stretch;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary, #6366f1);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-border-light, #f1f5f9);
}

.mega-col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-text, #1e293b);
  transition: all 0.15s ease;
}

.mega-link:hover {
  background: var(--color-border-light, #f8fafc);
  color: var(--color-primary, #2563eb);
  transform: translateX(3px);
}

.mega-link__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--color-border-light, #f1f5f9);
  flex-shrink: 0;
  font-size: 14px;
}

.mega-link__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.mega-link__text strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text, #0f172a);
}

.mega-link__text small {
  font-size: 0.74rem;
  color: var(--color-muted, #64748b);
}

/* Spotlight Card in Mega Menu */
.mega-spotlight-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mega-spotlight-card--news {
  background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
  border-color: #fecaca;
}

.mega-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 8px;
}

.mega-spotlight-badge--live {
  color: #dc2626;
}

.live-blink {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  animation: pulse-dot 1.5s infinite;
}

.mega-spotlight-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #0f172a;
}

.mega-spotlight-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 14px;
  flex-grow: 1;
}

.mega-spotlight-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0,0,0,0.08);
  font-size: 0.75rem;
  color: #64748b;
}

/* Alternatives Dropdown */
.nav-dropdown--alts {
  min-width: 300px;
}

.nav-dropdown__tag-pill {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  margin-left: auto;
}

/* Pulse Dot */
.nav-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 5px;
  box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.nav-fire-badge {
  margin-right: 4px;
}

.header-search-hint {
  display: inline-flex;
  gap: 2px;
  margin-left: 6px;
}

.header-search-hint kbd {
  font-size: 0.7rem;
  font-family: inherit;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 4px;
  color: #64748b;
}

/* Inline pill badge inside mega-menu item titles */
.mega-inline-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #eef2ff;
  color: #4338ca;
  vertical-align: middle;
}

.mega-link__icon--tinted {
  font-weight: 800;
  font-size: 0.85rem;
}

/* Spotlight Card Thematic Variants */
.mega-spotlight-card--deals {
  background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 100%);
  border-color: #fed7aa;
}

.mega-spotlight-card--backlinks {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: #a7f3d0;
}

.mega-spotlight-card--ai {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border-color: #c7d2fe;
}

.mega-spotlight-card--blog {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border-color: #bfdbfe;
}

.mega-spotlight-card--alternatives {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #cbd5e1;
}

/* Editorial Author Mini-Header inside Blog Mega Menu */
.mega-spotlight-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mega-spotlight-author__img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.mega-spotlight-author .mega-spotlight-badge {
  margin-bottom: 2px;
  display: block;
}

.mega-spotlight-author__name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

/* Copyable Promo Pill in Deals Mega Menu */
.mega-promo-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 7px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px dashed #fb923c;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mega-promo-copy code {
  font-weight: 800;
  color: #ea580c;
}

.mega-promo-copy:hover,
.mega-promo-copy.copied {
  background: #fff7ed;
  border-color: #ea580c;
}

@media (max-width: 1180px) {
  .mega-grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
  .mega-col--spotlight {
    grid-column: 1 / -1;
  }
}
