/**
 * Common Styles for SceneView Website
 * Shared components: Navbar, Footer, Mobile Menu, Search
 */

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --radius-pill: 999px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #0a0a0f;
  color: #e2e8f0;
  line-height: 1.6;
}
html { scroll-behavior: smooth; }

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.is-scrolled {
  padding: 12px 48px;
  background: rgba(8, 10, 18, 0.92);
  border-bottom-color: rgba(59,130,246,0.12);
  box-shadow: 0 12px 36px rgba(2, 6, 23, 0.32);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo svg { width: 32px; height: 32px; display: block; }
.nav-logo span { color: #f8fafc; font-size: 18px; font-weight: 700; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.nav-links a:hover { color: #e2e8f0; }
.nav-buy {
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.nav-buy:hover { color: #e2e8f0; }

/* Mobile Menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #e2e8f0;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 220px;
    height: 100vh;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 15, 0.96);
    backdrop-filter: blur(16px);
    padding: 72px 20px 32px;
    transition: right 0.3s ease;
    border-left: 1px solid rgba(255,255,255,0.06);
    z-index: 1001;
    align-items: flex-start;
  }
  .nav-links.is-open { right: 0; }
  .nav-links a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 15px;
  }
  .navbar { padding: 12px 20px; }
  .navbar.is-scrolled { padding: 12px 20px; }
}

/* Footer */
.footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 24px;
  text-align: center;
  color: #475569;
  font-size: 13px;
}
.footer a { color: #64748b; text-decoration: none; }
.footer a:hover { color: #94a3b8; }

/* Search Input (for blog.html) */
.search-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto 48px;
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: #f8fafc;
  font-size: 15px;
  outline: none;
  transition: all 0.3s;
}
.search-input:focus {
  background: rgba(255,255,255,0.06);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}
.search-input::placeholder { color: #475569; }
.no-result {
  text-align: center;
  padding: 60px 0;
  color: #64748b;
  font-size: 16px;
  display: none;
}

/* QR Code Modal Plugin */
.qr-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.qr-overlay.is-open { display: flex; }
.qr-modal {
  background: #15151f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.qr-modal h3 {
  color: #f8fafc;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 700;
}
.qr-modal img {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.06);
}
.qr-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.qr-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-pill);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.qr-modal p {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.6;
}
.qr-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.qr-close:hover { color: #e2e8f0; }
