/* ==========================================================================
   ZYNIC HOSTING - NAVBAR & NAVIGATION COMPONENT
   Floating Frosted Glass Header & Interactive Mega-Menu
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  padding: 10px 32px;
}

.nav-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(10, 13, 21, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-pill);
  padding: 7px 18px 7px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.site-header.scrolled .nav-wrapper {
  background: rgba(8, 11, 18, 0.96);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 242, 254, 0.1);
}

/* Brand Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
  margin-right: 14px;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.15rem;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
  transition: all var(--transition-smooth);
}

.brand:hover .brand-icon {
  transform: scale(1.06) rotate(4deg);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
  border-color: var(--accent-cyan);
}

/* Brand Logo Image (Fixed Constraints) */
.brand-logo-img,
.brand img,
.drawer-header .brand img,
.drawer-header .brand-logo-img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  border: 1px solid rgba(0, 242, 254, 0.35) !important;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2) !important;
  transition: all var(--transition-smooth, 0.3s ease) !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.brand:hover .brand-logo-img,
.brand:hover img {
  transform: scale(1.06) rotate(4deg);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35) !important;
  border-color: var(--accent-cyan) !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.brand-complejo {
  color: #ffffff;
  font-weight: 900;
}

.brand-alpha {
  color: var(--accent-cyan, #00f2fe);
  font-weight: 900;
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.4));
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan, #00f2fe);
  border: 1px solid rgba(0, 242, 254, 0.22);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

/* Nav Menu Links - Centered */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  font-weight: 700;
}

.nav-link i.fa-chevron-down {
  font-size: 0.62rem;
  margin-left: 2px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-link i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown UIX */
.mega-nav-item {
  position: relative;
}

.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 860px;
  max-width: 960px;
  background: rgba(8, 12, 22, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(0, 242, 254, 0.32);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(0, 242, 254, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  z-index: 120;
}

/* Invisible hover bridge so cursor never drops */
.mega-dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 18px;
  background: transparent;
}

.mega-nav-item:hover .mega-dropdown,
.mega-dropdown:hover,
.mega-dropdown.show-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(6px);
}

.mega-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mega-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-sub);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mega-badge-chip {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: 9999px;
  text-transform: uppercase;
}

/* Launcher Game Card Grid UIX (Screenshot Image 2 Reference) */
.mega-grid-launcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.launcher-game-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #11151f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.launcher-game-card:hover {
  background: #171d2b;
  border-color: rgba(0, 242, 254, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 242, 254, 0.15);
}

.launcher-game-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.thumb-minecraft {
  background: linear-gradient(135deg, #10b981, #059669);
}

.thumb-hytale {
  background: linear-gradient(135deg, #00f2fe, #0284c7);
}

.thumb-terraria {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.thumb-discord {
  background: linear-gradient(135deg, #5865f2, #4752c4);
}

.thumb-vps {
  background: linear-gradient(135deg, #00f2fe, #0284c7);
}

.launcher-game-info {
  flex: 1;
  min-width: 0;
}

.launcher-game-name {
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: normal;
}

.launcher-game-price {
  font-size: 0.77rem;
  color: #94a3b8;
  line-height: 1.35;
  white-space: normal;
}

.launcher-game-price strong {
  color: #ffffff;
  font-weight: 800;
}

/* 6th Card: Brand Cyan Highlighted Card */
.launcher-card-featured-cyan {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08), rgba(16, 22, 35, 0.95)) !important;
  border: 1px solid rgba(0, 242, 254, 0.3) !important;
}

.launcher-card-featured-cyan:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.16), rgba(23, 29, 43, 0.98)) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.25) !important;
  transform: translateY(-2px);
}

.launcher-card-featured-cyan .thumb-cyan-gamepad {
  background: linear-gradient(135deg, #00f2fe, #0284c7) !important;
  color: #ffffff !important;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.35) !important;
}

.launcher-card-featured-cyan .launcher-game-name {
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 800;
}

.launcher-card-featured-cyan .launcher-game-price {
  color: var(--accent-cyan) !important;
  font-weight: 600;
  font-size: 0.76rem;
}

/* Mega Menu Luxury Footer Bar */
.mega-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mega-footer-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.mega-footer-item:hover {
  color: #ffffff;
}

.mega-footer-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.mega-card-body {
  flex: 1;
}

.mega-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.mega-card-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: #ffffff;
}

.mega-card-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0 0 6px;
}

.mega-card-price-tag {
  font-size: 0.72rem;
  color: var(--text-sub);
  font-weight: 600;
}

.icon-minecraft {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.icon-hytale {
  background: rgba(0, 242, 254, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.icon-vps {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.icon-bot {
  background: rgba(139, 92, 246, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.mega-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.mega-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-footer-link {
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mega-footer-link:hover {
  text-decoration: underline;
  transform: translateX(2px);
}

/* Nav Actions (Right side) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Status Pill in Nav */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--success);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.status-pill:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
}

.nav-actions .btn {
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Premium Panel Button */
.btn-panel-premium {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(139, 92, 246, 0.2)) !important;
  border: 1px solid rgba(0, 242, 254, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  gap: 7px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-panel-premium::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-panel-premium:hover::before {
  opacity: 1;
}

.btn-panel-premium:hover {
  transform: translateY(-1px);
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.4), 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}

.btn-panel-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent-cyan), #8b5cf6);
  color: #040814;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.btn-panel-text {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn-panel-arrow {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-panel-premium:hover .btn-panel-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background: var(--bg-surface-elevated);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid var(--border-card);
  padding: 30px 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 190;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-group-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin: 18px 0 6px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-group-label i {
  color: var(--accent-cyan, #00f2fe);
  font-size: 0.78rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-heading);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.drawer-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.drawer-link:hover,
.drawer-link.active {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.08);
  color: #ffffff;
}

.drawer-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Media Queries */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .site-header {
    padding: 12px 16px;
  }
  .nav-wrapper {
    padding: 6px 12px 6px 16px;
  }
}
