/* Restore Teerop site header/footer when Bootstrap or portfolio theme CSS is loaded */

/* ---- Body / layout ---- */
html,
body.pb-page,
body.pb-flow,
body.pb-preview {
  background: var(--bg-deep, #000) !important;
  background-color: var(--bg-deep, #000) !important;
  color: var(--text, #f0f4f8) !important;
  font-family: var(--font-body, 'Exo 2', sans-serif) !important;
  line-height: 1.65 !important;
}

body.pb-page .page-wrap,
body.pb-flow .page-wrap,
body.pb-preview .page-wrap {
  background: transparent !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main-content {
  flex: 1 0 auto;
}

/* ---- Site header (must beat Bootstrap + portfolio themes) ---- */
#site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  height: var(--header-h, 72px) !important;
  width: 100% !important;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--border, rgba(0, 255, 136, 0.22)) !important;
  box-shadow: none !important;
}

#site-header .header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: var(--header-h, 72px) !important;
  gap: 1rem !important;
}

#site-header .logo {
  font-family: var(--font-accent, 'Audiowide', cursive) !important;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem) !important;
  color: #fff !important;
  text-decoration: none !important;
  text-shadow: 0 0 20px var(--neon-glow, rgba(0, 255, 136, 0.45)) !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
}

#site-header .logo span {
  color: var(--neon, #00ff88) !important;
}

#site-header .nav-auth a,
#site-header .menu-toggle {
  text-decoration: none !important;
}

#site-header .btn {
  text-decoration: none !important;
}

/* Desktop header/nav only — do NOT force row layout on mobile/tablet */
@media (min-width: 901px) {
  #site-header .nav-drawer {
    display: contents !important;
  }

  #site-header .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: clamp(0.5rem, 2vw, 1.75rem) !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    width: auto !important;
    left: auto !important;
    top: auto !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #site-header .nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
  }

  #site-header .nav-menu a {
    font-family: var(--font-heading, 'Rajdhani', sans-serif) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--text-muted, rgba(240, 244, 248, 0.62)) !important;
    text-decoration: none !important;
    padding: 0.4rem 0 !important;
    position: relative !important;
    background: none !important;
    border: none !important;
    display: inline !important;
    border-bottom: none !important;
  }

  #site-header .nav-menu a:hover,
  #site-header .nav-menu a:focus {
    color: #fff !important;
    text-decoration: none !important;
  }

  #site-header .nav-menu a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 0 !important;
    height: 2px !important;
    background: var(--neon, #00ff88) !important;
    box-shadow: 0 0 8px var(--neon-glow, rgba(0, 255, 136, 0.45)) !important;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  #site-header .nav-menu a:hover::after {
    width: 100% !important;
  }

  #site-header .nav-auth {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  #site-header .nav-auth .btn {
    width: auto !important;
  }
}

/* Mobile/tablet drawer — restore theme.css behavior over portfolio overrides */
@media (max-width: 900px) {
  #site-header .menu-toggle {
    display: flex !important;
  }

  #site-header .nav-drawer {
    display: block !important;
    position: fixed !important;
    top: var(--header-h, 72px) !important;
    left: 0 !important;
    right: 0 !important;
    max-height: calc(100dvh - var(--header-h, 72px)) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: rgba(0, 0, 0, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid var(--border, rgba(0, 255, 136, 0.22)) !important;
    z-index: 999 !important;
    transform: translateY(-110%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    width: 100% !important;
    box-shadow: none !important;
  }

  #site-header .nav-drawer.open {
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #site-header .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0.5rem 1.5rem 0 !important;
    margin: 0 !important;
    position: static !important;
    width: 100% !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  #site-header .nav-menu li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  #site-header .nav-menu a {
    display: block !important;
    width: 100% !important;
    padding: 0.85rem 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    font-family: var(--font-heading, 'Rajdhani', sans-serif) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    position: relative !important;
    background: none !important;
  }

  #site-header .nav-menu a::after {
    display: none !important;
  }

  #site-header .nav-menu a:hover,
  #site-header .nav-menu a:focus {
    color: var(--neon, #00ff88) !important;
  }

  #site-header .nav-auth {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 1rem 1.5rem 1.5rem !important;
    gap: 0.75rem !important;
    border-top: 1px solid var(--border, rgba(0, 255, 136, 0.22)) !important;
    margin-top: 0.25rem !important;
    position: static !important;
    background: transparent !important;
  }

  #site-header .nav-auth .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  body.pb-page.nav-open,
  body.pb-flow.nav-open,
  body.pb-preview.nav-open,
  body.pb-home.nav-open {
    overflow: hidden !important;
  }
}

/* ---- Site footer ---- */
.site-footer {
  border-top: 1px solid var(--border, rgba(0, 255, 136, 0.22)) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem !important;
  margin-top: auto !important;
  color: var(--text-muted) !important;
}

.site-footer .footer-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.site-footer .footer-col h4 {
  font-family: var(--font-heading, 'Rajdhani', sans-serif) !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: var(--neon, #00ff88) !important;
  margin-bottom: 1rem !important;
  text-decoration: none !important;
}

.site-footer .footer-col ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-footer .footer-col li {
  margin-bottom: 0.5rem !important;
  list-style: none !important;
}

.site-footer .footer-col a,
.site-footer .footer-bottom a {
  color: var(--text-muted, rgba(240, 244, 248, 0.62)) !important;
  font-size: 0.9rem !important;
  text-decoration: none !important;
}

.site-footer .footer-col a:hover,
.site-footer .footer-bottom a:hover {
  color: var(--neon, #00ff88) !important;
  text-decoration: none !important;
}

.site-footer .footer-bottom {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid var(--border, rgba(0, 255, 136, 0.22)) !important;
  font-size: 0.85rem !important;
  color: var(--text-dim, rgba(240, 244, 248, 0.38)) !important;
}

.site-footer .footer-brand {
  font-family: var(--font-accent, 'Audiowide', cursive) !important;
  font-size: 1rem !important;
  color: #fff !important;
}

.site-footer .footer-brand span {
  color: var(--neon, #00ff88) !important;
}

/* ---- Portfolio preview shell (user theme inside) ---- */
.pb-preview-shell {
  padding-top: 0;
}

.pb-preview-shell .portfolio-container {
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.pb-preview-shell .portfolio-container .navbar {
  top: var(--header-h, 72px) !important;
}

.pb-preview-shell .portfolio-container .hero {
  padding-top: calc(var(--header-h, 72px) + 60px) !important;
  min-height: auto !important;
}

.pb-preview-shell .pb-live-badge {
  top: calc(var(--header-h, 72px) + 12px);
}

.pb-preview-shell .floating-actions {
  top: calc(50% + var(--header-h, 72px) / 2);
}

/* Portfolio theme must not style site chrome */
#site-header,
.site-footer,
#cyber-canvas,
.cyber-grid,
#cursor-glow,
.hud-corner {
  font-family: var(--font-body, 'Exo 2', sans-serif) !important;
}
