/* ============================================================
   ViralxPot — Layout Styles
   Header, Footer, Navigation, Mobile Menu
   Premium Luxury Aesthetic
   ============================================================ */

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  border-bottom: 1px solid var(--border-subtle);
  transition:
    background 0.4s ease,
    backdrop-filter 0.4s ease,
    box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  box-shadow:
    0 1px 0 var(--glass-border),
    0 8px 32px rgba(0, 0, 0, 0.25);
}
.site-header:not(.scrolled) {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-sm);
  transition:
    box-shadow 0.4s ease,
    transform 0.4s var(--transition-smooth);
}
.logo:hover .logo-icon {
  box-shadow: var(--shadow-glow-md);
  transform: scale(1.05);
}
.logo-icon svg {
  width: 20px;
  height: 20px;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #f0f0f5, rgba(240, 240, 245, 0.55));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-search {
  position: relative;
  width: 220px;
}
.header-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.9rem 0.5rem 2.3rem;
  font-size: 0.8rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}
.header-search input::placeholder {
  color: var(--text-muted);
}
.header-search input:focus {
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}
.header-search .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Desktop nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s ease;
  position: relative;
  padding: 0.2rem 0;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
}
.header-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--neon-purple), var(--neon-pink));
  border-radius: 2px;
}

/* Mobile toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.4rem;
  transition: color 0.25s ease;
}
.mobile-menu-btn:hover {
  color: var(--text-primary);
}
.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  background: rgba(8, 9, 13, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem;
  z-index: 99;
  animation: slideDown 0.3s var(--transition-smooth);
}
.mobile-menu.open {
  display: block;
}
.mobile-menu .mobile-search {
  margin-bottom: 1.25rem;
}
.mobile-menu .mobile-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
  outline: none;
}
.mobile-menu .mobile-search input:focus {
  border-color: rgba(139, 92, 246, 0.35);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu nav a {
  display: block;
  padding: 0.8rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}
.mobile-menu nav a:hover {
  color: var(--text-primary);
  padding-left: 0.5rem;
}
.mobile-menu nav a:last-child {
  border-bottom: none;
}

@media (max-width: 767px) {
  .header-right .header-search,
  .header-right .header-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
}

/* ---- MAIN CONTENT ---- */
.main-content {
  flex: 1;
  padding: 1.75rem 0 1rem;
  position: relative;
  z-index: 1;
}

/* Page title bar */
.page-title-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .page-title-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.page-title-bar h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-title-bar .subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--neon-purple),
    var(--neon-pink),
    transparent
  );
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* Footer brand — logo + text */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Footer nav links */
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
.footer-links a:hover {
  color: var(--text-primary);
}

/* Footer divider */
.footer-divider {
  width: 80px;
  height: 1px;
  background: var(--glass-border);
}

/* Footer copyright — below everything */
.footer-copyright {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
