/* Shared top bar, footer and widths for EVERY page of getcreatorradar.com.
   One place to change them. Pages keep their own colors (:root) and content styles;
   this file only provides the common frame so all pages match.

   Widths: text pages use --site-w (60rem); wide things (the top bar, the demo, the
   walkthrough) use --site-wide (76rem). */
:root { --site-w: 60rem; --site-wide: 76rem; }

/* ---------- top bar ---------- */
.cr-nav { position: sticky; top: 0; z-index: 30; background: rgba(10, 15, 26, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border, #26314a); }
.cr-nav-inner { max-width: var(--site-wide); margin: 0 auto; padding: 0.7rem 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.cr-nav-logo { font-family: var(--font-display, Georgia, serif); font-weight: 600; font-size: 1.0625rem; color: var(--text, #e8ecf6); text-decoration: none; white-space: nowrap; margin-right: auto; }
.cr-nav-links { display: flex; align-items: center; gap: 1.35rem; }
.cr-nav-links a:not(.cr-nav-cta) { color: var(--text-muted, #90a0bd); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.cr-nav-links a:not(.cr-nav-cta):hover { color: var(--text, #e8ecf6); }
.cr-nav-links a.active { color: var(--text, #e8ecf6); border-bottom: 2px solid var(--accent, #5b8def); padding-bottom: 2px; }
.cr-nav-cta { display: inline-flex; align-items: center; background: var(--accent, #5b8def); color: #06101f; font-weight: 700; font-size: 0.875rem; padding: 0.5rem 1.05rem; border-radius: 8px; text-decoration: none; white-space: nowrap; transition: background 0.15s ease; }
.cr-nav-cta:hover { background: var(--accent-strong, #7ba4f5); }
.cr-nav-toggle { display: none; font: inherit; font-size: 1.15rem; line-height: 1; color: var(--text, #e8ecf6); background: transparent; border: 1px solid var(--border, #26314a); border-radius: 8px; padding: 0.35rem 0.65rem; cursor: pointer; }
.cr-nav-menu { max-width: var(--site-wide); margin: 0 auto; padding: 0 1.5rem 0.9rem; display: grid; gap: 0.15rem; }
.cr-nav-menu[hidden] { display: none; }
.cr-nav-menu a { color: var(--text-muted, #90a0bd); text-decoration: none; font-size: 0.95rem; padding: 0.5rem 0.25rem; border-bottom: 1px solid var(--border, #26314a); }
.cr-nav-menu a.active { color: var(--text, #e8ecf6); font-weight: 600; }
@media (max-width: 52rem) {
  .cr-nav-links a:not(.cr-nav-cta) { display: none; }
  .cr-nav-links { gap: 0; }
  /* The menu button used to be pushed off the right edge of a phone and was faint on the dark bar:
     tighter spacing so logo + button + menu always fit, and a bigger, clearly visible tap target. */
  .cr-nav-inner { padding: 0.6rem 1rem; gap: 0.6rem; }
  .cr-nav-logo { font-size: 1rem; min-width: 0; }
  .cr-nav-cta { padding: 0.5rem 0.8rem; font-size: 0.82rem; }
  .cr-nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 2.75rem; height: 2.5rem; font-size: 1.45rem; color: var(--text, #e8ecf6); background: var(--surface-2, #1a2338); border: 1.5px solid var(--text-muted, #90a0bd); }
}
@media (max-width: 23rem) { .cr-nav-cta { padding: 0.5rem 0.65rem; font-size: 0.78rem; } .cr-nav-logo { font-size: 0.95rem; } }
.cr-nav a:focus-visible, .cr-nav-toggle:focus-visible { outline: 2px solid var(--accent, #5b8def); outline-offset: 2px; border-radius: 6px; }

/* ---------- note for 2739 members, shown once the public doors close ---------- */
.cr-2739-note { text-align: center; padding: 10px 16px; font-size: 14px; line-height: 1.4; background: var(--surface, #121a2b); color: var(--text, #e8ecf6); border-bottom: 1px solid var(--border, #26314a); }
.cr-2739-note a { color: var(--accent-strong, #7ba4f5); font-weight: 600; }

/* ---------- footer ---------- */
.cr-footer { max-width: var(--site-w); margin: 0 auto; padding: 2.5rem 1.5rem 3.5rem; color: var(--text-faint, #5c6c8a); font-size: 0.8125rem; line-height: 1.8; }
.cr-footer a { color: var(--text-muted, #90a0bd); text-decoration: underline; text-decoration-color: var(--border, #26314a); text-underline-offset: 3px; }
.cr-footer a:hover { color: var(--text, #e8ecf6); text-decoration-color: currentColor; }

/* ---------- Products dropdown ---------- */
.cr-dd { position: relative; }
.cr-dd-btn { font: inherit; font-size: 0.9rem; font-weight: 500; color: var(--text-muted, #90a0bd); background: none; border: 0; padding: 0; cursor: pointer; }
.cr-dd-btn:hover, .cr-dd-btn.active { color: var(--text, #e8ecf6); }
.cr-dd-menu { position: absolute; top: calc(100% + 0.8rem); left: -0.75rem; min-width: 16rem; background: var(--surface, #121a2b); border: 1px solid var(--border, #26314a); border-radius: 12px; padding: 0.4rem; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); z-index: 40; }
.cr-dd-menu[hidden] { display: none; }
.cr-nav-links .cr-dd-menu a, .cr-nav-menu a { display: block; }
.cr-nav-links .cr-dd-menu a { padding: 0.55rem 0.7rem; border-radius: 8px; border-bottom: 0; color: var(--text, #e8ecf6); font-size: 0.92rem; }
.cr-nav-links .cr-dd-menu a:hover { background: var(--surface-2, #1a2338); }
.cr-nav-links .cr-dd-menu a.active { background: var(--accent-soft, rgba(91, 141, 239, 0.14)); border-bottom: 0; padding-bottom: 0.55rem; }
.cr-dd-menu a b, .cr-nav-menu a b { display: block; font-weight: 600; }
.cr-dd-menu a small, .cr-nav-menu a small { display: block; font-size: 0.78rem; color: var(--text-faint, #5c6c8a); font-weight: 400; }
.cr-nav-group { display: block; margin-top: 0.6rem; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint, #5c6c8a); padding: 0.4rem 0.25rem 0.1rem; }
@media (max-width: 52rem) { .cr-dd { display: none; } }
