/* ============================================
   DropForge — Shared CSS
   Trust bar, sticky header, full footer, animations
   Applied to: layout.ejs, binaural.ejs, guide.ejs
   ============================================ */

/* ── Shared Variables ── */
.shared-root {
  --s-bg: #0A0F1E;
  --s-bg-alt: #0D1226;
  --s-surface: #111827;
  --s-surface-2: #1a2235;
  --s-amber: #F59E0B;
  --s-amber-dim: rgba(245, 158, 11, 0.15);
  --s-emerald: #10B981;
  --s-emerald-dim: rgba(16, 185, 129, 0.15);
  --s-text: #F0F0F0;
  --s-text-muted: #8892a4;
  --s-text-dim: #4a5568;
  --s-border: rgba(255,255,255,0.06);
  --s-border-bright: rgba(255,255,255,0.12);
}

/* ── Sticky Header ── */
.shared-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--s-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  gap: 24px;
}

.shared-topbar.scrolled {
  background: rgba(10, 15, 30, 0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3);
}

.shared-topbar-left {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}

.shared-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.shared-logo-mark {
  width: 30px; height: 30px;
  background: var(--s-amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 11px;
  color: #0A0F1E;
  flex-shrink: 0;
}

.shared-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--s-text);
}

/* Nav links */
.shared-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.shared-nav-link {
  font-size: 13px;
  color: var(--s-text-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.shared-nav-link:hover,
.shared-nav-link.active {
  color: var(--s-text);
  background: var(--s-surface-2);
}

.shared-nav-cta {
  font-size: 13px; font-weight: 600;
  background: var(--s-amber);
  color: #0A0F1E !important;
  padding: 7px 18px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shared-nav-cta:hover {
  background: #D97706;
  transform: translateY(-1px);
}

.shared-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.shared-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: var(--s-surface-2);
  border: 1px solid var(--s-border-bright);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.shared-hamburger:hover { background: var(--s-surface); }

.shared-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--s-text-muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.shared-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.shared-hamburger.open span:nth-child(2) { opacity: 0; }
.shared-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.shared-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s;
}

.shared-mobile-overlay.open { display: block; opacity: 1; }

.shared-mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100vh;
  background: var(--s-surface);
  border-left: 1px solid var(--s-border-bright);
  z-index: 1001;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shared-mobile-nav.open { transform: translateX(0); }

.shared-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--s-border);
}

.shared-mobile-nav-close {
  width: 32px; height: 32px;
  background: var(--s-surface-2);
  border: 1px solid var(--s-border-bright);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: var(--s-text-muted);
  transition: background 0.15s;
}

.shared-mobile-nav-close:hover { background: var(--s-bg); color: var(--s-text); }

.shared-mobile-nav a {
  display: block;
  font-size: 15px;
  color: var(--s-text-muted);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.shared-mobile-nav a:hover { color: var(--s-text); background: var(--s-surface-2); }

.shared-mobile-nav a.cta {
  background: var(--s-amber);
  color: #0A0F1E;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
}

.shared-mobile-nav a.cta:hover { background: #D97706; }

/* ── Trust Bar ── */
.trust-bar {
  background: rgba(255, 248, 240, 0.92);
  border-bottom: 1px solid rgba(200, 169, 110, 0.2);
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #7a6a50;
  letter-spacing: 0.02em;
}

.trust-item svg { flex-shrink: 0; }

/* Payment icons in trust bar */
.trust-payments {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.trust-payment-icon {
  height: 22px;
  width: auto;
  opacity: 0.7;
  border-radius: 3px;
}

/* ── Page container ── */
.shared-page {
  padding-top: 65px; /* account for sticky header */
}

/* ── Full Footer ── */
.shared-footer {
  background: #1a1510;
  color: #b8a898;
  padding: 64px 48px 40px;
  border-top: 1px solid rgba(200,169,110,0.15);
}

.shared-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.footer-brand-block .shared-logo { margin-bottom: 16px; }
.footer-brand-block .shared-logo-text { color: #e8dcc8; }
.footer-tagline { font-size: 13px; line-height: 1.6; color: #8a7a68; max-width: 260px; }
.footer-polsia-credit {
  margin-top: 20px;
  font-size: 11px;
  color: #6a5a48;
}

.footer-col-title {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #c8b898;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col-links { display: flex; flex-direction: column; gap: 12px; }
.footer-col-links a {
  font-size: 13px;
  color: #8a7a68;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col-links a:hover { color: #c8b898; }

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: #8a7a68;
  font-size: 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.footer-social-link:hover {
  background: rgba(245,158,11,0.1);
  border-color: rgba(245,158,11,0.3);
  color: #F59E0B;
}

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

.footer-payment-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-payment-row span {
  font-size: 12px;
  color: #6a5a48;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  max-width: 1200px;
  margin: 0 auto 28px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copyright { font-size: 12px; color: #6a5a48; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: #6a5a48; text-decoration: none; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #8a7a68; }

/* ── Scroll-reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade-in on load */
.fade-in {
  animation: fadeInUp 0.4s ease-out forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .shared-topbar { padding: 14px 20px; }
  .shared-nav { display: none; }
  .shared-hamburger { display: flex; }

  .trust-bar { padding: 12px 20px; gap: 16px; }

  .shared-footer { padding: 48px 20px 32px; }
  .shared-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-block { grid-column: 1 / -1; }
  .footer-payments-col { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  .trust-payments { display: none; }
  .shared-footer-grid { grid-template-columns: 1fr; }
  .footer-brand-block { grid-column: 1; }
  .footer-payments-col { grid-column: 1; }
}