/* BookPromos network — shared base. Per-site colors come from --site-primary/--site-accent CSS vars set in base.html. */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  background: #fafafa;
  color: #2c3e50;
}

.site-navbar {
  background: var(--site-nav-bg);
  border-bottom: 4px solid var(--site-accent);
  padding-top: .35rem;
  padding-bottom: .35rem;
}
.site-navbar .navbar-brand,
.site-navbar .nav-link,
.site-navbar .navbar-toggler-icon {
  color: #fff !important;
}
.site-navbar .nav-link:hover { opacity: .85; }

/* Logo: 350px wide in the header (Bo's hard requirement). Height scales with logo aspect. */
.site-logo {
  display: block;
  width: 350px;
  height: auto;
  max-height: 120px;
}
@media (max-width: 575.98px) {
  .site-logo {
    width: 240px;
    max-height: 80px;
  }
}

.brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -.01em;
}

/* "List a book — FREE" CTA in the nav */
.site-navbar .nav-cta {
  background: var(--site-accent);
  border-radius: 4px;
  padding: .35rem .85rem !important;
  margin-left: .25rem;
}
.site-navbar .nav-cta:hover {
  background: #fff;
  color: var(--site-nav-bg) !important;
  opacity: 1;
}

a { color: var(--site-primary); }
a:hover { color: var(--site-accent); }

.btn-primary,
.btn-site {
  background: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-site:hover {
  background: var(--site-accent);
  border-color: var(--site-accent);
  color: #fff;
}

.tagline {
  color: var(--site-accent);
  font-style: italic;
}

/* Book card */
.book-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.book-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.book-card .cover {
  aspect-ratio: 2/3;
  background: #f3f4f6 center/cover no-repeat;
  border-bottom: 1px solid #e5e7eb;
}
.book-card .body {
  padding: .9rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.book-card .title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: .25rem;
}
.book-card .author {
  color: #6b7280;
  font-size: .85rem;
  margin-bottom: .5rem;
}
.book-card .price {
  margin-top: auto;
  font-weight: 700;
  color: var(--site-accent);
}
.book-card .price.free {
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.deal-badge {
  display: inline-block;
  background: var(--site-accent);
  color: #fff;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-footer {
  background: #1f2937;
  color: #d1d5db;
  border-top: 4px solid var(--site-accent);
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 .25rem;
}
.site-footer a:hover { text-decoration: underline; }

/* Coming-soon hero */
.coming-soon {
  background: linear-gradient(135deg, var(--site-primary), var(--site-accent));
  color: #fff;
  padding: 4rem 1rem;
  border-radius: 8px;
  text-align: center;
}
.coming-soon h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.coming-soon .lead { font-size: 1.25rem; opacity: .95; }

/* Hero on populated homepages */
.site-hero {
  background: var(--site-primary);
  color: #fff;
  padding: 2.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}
.site-hero h1 { font-size: 2.25rem; margin-bottom: .5rem; }
.site-hero .tagline { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 1.25rem; }
.site-hero .hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.site-hero .btn-site {
  background: var(--site-nav-bg);
  border-color: var(--site-nav-bg);
}

/* "FREE" CTA — high-contrast call to action used for author signup */
.btn-cta {
  background: #ffd54f;
  border: 2px solid #f59e0b;
  color: #1f2937 !important;
  font-weight: 600;
  text-decoration: none !important;
}
.btn-cta:hover {
  background: #fbbf24;
  border-color: #d97706;
  color: #111 !important;
}
.btn-cta strong { color: #b45309; }

/* Honeypot — completely invisible, but not display:none (some bots skip those) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Google sign-in button */
.btn-google {
  border: 1px solid #dadce0;
  color: #3c4043;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .5rem .75rem;
}
.btn-google:hover { background: #f8f9fa; border-color: #c4c7c5; }

/* Thin strip under the hero stressing the FREE listing */
.free-strip {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #92400e;
  padding: .65rem 1rem;
  text-align: center;
  border-radius: 6px;
  font-size: .95rem;
}
.free-strip strong { color: #b45309; }
