/* ============================================================
   Theologians Press — shared top nav + site footer.
   Canonical markup/behavior lives on index.html; this file lets
   the info/policy pages (About, Contact, Writing Tools, etc.)
   use the exact same header and footer instead of the lighter
   policy-nav/policy-footer pattern, so the chrome stays in sync
   across the whole site from one place.
   Pairs with tb-mobile-nav.css (mobile drawer) and tb-mobile-nav.js.
   ============================================================ */

:root {
  --primary-gold-hover: #d4af6a;
  --primary-gold-glow: rgba(201, 162, 77, 0.3);
  --shadow-glow: 0 0 20px var(--primary-gold-glow);
  --danger: #ff4d4d;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body { display: flex; flex-direction: column; min-height: 100vh; }

.top-nav {
  height: 70px;
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.top-nav-left { display: flex; align-items: center; gap: 15px; }
.top-nav .logo-wrap { position: relative; display: inline-block; line-height: 0; }
.top-nav .logo-wrap::before {
  content: ""; position: absolute; inset: -10%;
  background: radial-gradient(circle at center, rgba(255,220,140,0) 0%, rgba(255,220,140,0.06) 40%, rgba(255,200,100,0.03) 60%, transparent 75%);
  opacity: 0; transform: scale(0.95); transition: opacity 0.5s ease, transform 0.6s ease;
  z-index: 1; pointer-events: none; border-radius: 50%;
}
.top-nav .logo-wrap::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(201,162,77,0); transition: box-shadow 0.5s ease;
  z-index: 1; pointer-events: none;
}
.top-nav .logo-wrap:hover::before { opacity: 1; transform: scale(1.05); }
.top-nav .logo-wrap:hover::after { box-shadow: 0 0 0 4px rgba(201,162,77,0.15), 0 0 0 8px rgba(201,162,77,0.08); }
.nav-logo { width: 36px; height: 36px; display: block; transition: transform 0.4s ease; position: relative; z-index: 2; }
.top-nav .logo-wrap:hover .nav-logo { transform: scale(1.02); }
.top-nav-title { font-size: 18px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-primary); white-space: nowrap; }
.top-nav-right-group { display: flex; align-items: center; gap: 30px; }
.top-nav-links { display: flex; gap: 30px; align-items: center; }
.nav-link { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: var(--transition); position: relative; padding: 8px 0; font-weight: 500; white-space: nowrap; }
.nav-link:hover { color: var(--text-secondary); }
.nav-link.active { color: var(--primary-gold); font-weight: 600; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--primary-gold); border-radius: 1px; }

.sign-in-btn { background: transparent; border: 1px solid var(--primary-gold); color: var(--primary-gold); padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; transition: var(--transition); white-space: nowrap; cursor: pointer; }
.sign-in-btn:hover { background: var(--primary-gold); color: var(--bg-primary); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.account-dropdown-container { position: relative; display: inline-block; }
.account-dropdown { display: none; position: absolute; top: 100%; right: 0; margin-top: 8px; background: #0f0f0f; border: 1px solid #2a2a2a; border-radius: 8px; padding: 8px 0; min-width: 160px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 1000; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; padding: 10px 16px; color: #d4d4d4; text-decoration: none; background: transparent; border: none; text-align: left; font-size: 14px; cursor: pointer; transition: background 0.2s; font-family: inherit; }
.account-dropdown a:hover, .account-dropdown button:hover { background: #1a1a1a; }
.account-dropdown button { color: var(--danger); }
.editor-dashboard-btn { background: transparent; border: 2px solid var(--primary-gold); color: var(--primary-gold); padding: 8px 20px; border-radius: 30px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; text-decoration: none; transition: var(--transition); box-shadow: 0 0 10px var(--primary-gold-glow); text-shadow: 0 0 5px var(--primary-gold-glow); white-space: nowrap; }
.editor-dashboard-btn:hover { background: var(--primary-gold); color: var(--bg-primary); transform: translateY(-2px); box-shadow: 0 0 20px var(--primary-gold-glow); }

.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown-toggle { background: transparent; border: 0; cursor: pointer; font: inherit; }
.nav-dropdown-toggle::after { content: ""; display: inline-block; margin-left: 6px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--primary-gold, #C9A24D); transform: translateY(1px); }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 170px; margin-top: 10px; padding: 8px 0; background: var(--bg-secondary, #0f0f0f); border: 1px solid var(--border-primary, #2a2a2a); border-radius: 8px; box-shadow: 0 14px 32px rgba(0,0,0,.42); z-index: 1000; }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-item { display: block; padding: 10px 16px; color: var(--text-muted, #888); text-decoration: none; font-size: 14px; white-space: nowrap; transition: var(--transition, all .2s ease); }
.nav-dropdown-item:hover, .nav-dropdown-item.active { color: var(--primary-gold, #C9A24D); background: rgba(201,162,77,.08); }

main, .chrome-main { flex: 1 0 auto; }

/* ===== Rich site footer (matches index.html) ===== */
.site-footer { background: var(--bg-secondary); border-top: 1px solid var(--border-primary); padding: 72px 60px 40px; flex-shrink: 0; }
.footer-grid { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border-primary); margin-bottom: 36px; }
.footer-brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo { width: 30px; height: 30px; }
.footer-name { font-family: 'Cinzel', serif; font-size: 14px; letter-spacing: 2px; color: var(--text-primary); }
.footer-tagline { font-size: 15px; font-style: italic; color: var(--text-muted); line-height: 1.72; margin-bottom: 24px; }
.footer-social { display: flex; gap: 20px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.footer-social a, .footer-social span { color: var(--text-muted); text-decoration: none; transition: color 0.25s; font-size: 14px; }
.footer-social a:hover { color: var(--primary-gold); }
.footer-col-label { font-family: 'Cinzel', serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--primary-gold); margin-bottom: 20px; display: block; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-links a { font-size: 14px; color: var(--text-muted); text-decoration: none; transition: color 0.25s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-bottom { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 13px; color: var(--text-dim, #4a4a4a); }
.footer-cross { width: 18px; height: 18px; display: inline-block; background: url('logo.png') no-repeat center; background-size: contain; opacity: 0.4; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .top-nav { padding: 0 20px; }
  .site-footer { padding: 44px 18px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
