/* =============================================
   AEO ADDITIONS — timothykfranklin.com
   Extends style.css for answer pages and
   the new "Explore the Book" homepage section.
   ============================================= */

/* ===== NAVIGATION BAR ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.12);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #f0ece4;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-nav .nav-brand span {
  color: #c9a96e;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.site-nav ul li a {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9a8a74;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
  color: #c9a96e;
}

/* ===== EXPLORE THE BOOK SECTION (homepage addition) ===== */
.explore-section {
  padding: 7rem 0;
  background: #0d0d0d;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 110, 0.08);
}

.explore-section .section-title {
  margin-bottom: 1rem;
}

.explore-intro {
  font-size: 1.05rem;
  color: #9a8a74;
  max-width: 620px;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.explore-card {
  display: block;
  background: #141414;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
  padding: 2rem 2rem 2rem 2rem;
  text-decoration: none;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.explore-card::after {
  content: '→';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #c9a96e;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease, right 0.3s ease;
}

.explore-card:hover {
  border-color: rgba(201, 169, 110, 0.45);
  background: #181818;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.explore-card:hover::after {
  opacity: 1;
  right: 1.25rem;
}

.explore-card-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a96e;
  margin-bottom: 0.6rem;
  display: block;
}

.explore-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #f0ece4;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  padding-right: 2rem;
}

.explore-card p {
  font-size: 0.88rem;
  color: #6a6055;
  line-height: 1.7;
}

/* ===== ANSWER PAGE LAYOUT ===== */
.answer-page-wrap {
  padding-top: 80px; /* offset for fixed nav */
}

/* Answer Hero */
.answer-hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(to bottom, #111111 0%, #0d0d0d 100%);
  border-bottom: 1px solid rgba(201, 169, 110, 0.1);
}

.answer-hero .breadcrumb {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4035;
  margin-bottom: 1.5rem;
}

.answer-hero .breadcrumb a {
  color: #c9a96e;
  text-decoration: none;
}

.answer-hero .breadcrumb a:hover {
  text-decoration: underline;
}

.answer-hero .breadcrumb span {
  margin: 0 0.5rem;
  color: #3a3028;
}

.answer-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: #f0ece4;
  max-width: 760px;
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.answer-hero .direct-answer {
  font-size: 1.1rem;
  color: #c9a96e;
  line-height: 1.75;
  max-width: 720px;
  padding: 1.5rem 2rem;
  border-left: 3px solid #c9a96e;
  background: rgba(201, 169, 110, 0.06);
  border-radius: 0 4px 4px 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Answer Body */
.answer-body {
  padding: 5rem 0 6rem;
  background: #0d0d0d;
}

.answer-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
}

.answer-content h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #f0ece4;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.answer-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.answer-content h3 {
  font-size: 1.1rem;
  color: #c9a96e;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}

.answer-content p {
  font-size: 1rem;
  color: #b8ad9e;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.answer-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.answer-content ul li {
  font-size: 0.97rem;
  color: #b8ad9e;
  line-height: 1.7;
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.answer-content ul li::before {
  content: '·';
  position: absolute;
  left: 0.25rem;
  color: #c9a96e;
  font-size: 1.4rem;
  line-height: 1.2;
}

/* Answer Sidebar */
.answer-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: #141414;
  border: 1px solid rgba(201, 169, 110, 0.15);
  border-radius: 4px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-card .sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #c9a96e;
  display: block;
  margin-bottom: 1rem;
}

.sidebar-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #f0ece4;
  margin-bottom: 0.75rem;
}

.sidebar-card p {
  font-size: 0.88rem;
  color: #7a7060;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.sidebar-card .btn {
  display: block;
  text-align: center;
  margin-bottom: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
}

/* Related questions list in sidebar */
.related-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-links li {
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

.related-links li:last-child {
  border-bottom: none;
}

.related-links li a {
  display: block;
  font-size: 0.88rem;
  color: #9a8a74;
  text-decoration: none;
  padding: 0.75rem 0;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.related-links li a:hover {
  color: #c9a96e;
}

/* ===== THEME LIST (answer pages) ===== */
.theme-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.theme-item {
  background: #141414;
  border: 1px solid rgba(201, 169, 110, 0.12);
  border-radius: 4px;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
}

.theme-item .theme-icon {
  font-size: 1.5rem;
  color: #c9a96e;
  margin-bottom: 0.5rem;
}

.theme-item h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #f0ece4;
  margin-bottom: 0.4rem;
}

.theme-item p {
  font-size: 0.85rem;
  color: #7a7060;
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== INLINE QUOTE PULL ===== */
.pull-quote {
  border-left: 3px solid rgba(201, 169, 110, 0.4);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  background: rgba(201, 169, 110, 0.04);
  border-radius: 0 4px 4px 0;
}

.pull-quote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem !important;
  color: #c9a96e !important;
  margin-bottom: 0.5rem !important;
}

.pull-quote cite {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a4035;
  font-style: normal;
}

/* ===== ANSWER PAGE BACK LINK ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #c9a96e;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: gap 0.2s ease;
}

.back-link::before {
  content: '←';
  font-size: 1rem;
}

.back-link:hover {
  gap: 0.75rem;
}

/* ===== ANSWER PAGE FOOTER NAV ===== */
.answer-nav-footer {
  padding: 3rem 0;
  background: #111111;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
}

.answer-nav-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.answer-nav-prev,
.answer-nav-next {
  text-decoration: none;
  color: #9a8a74;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  max-width: 300px;
}

.answer-nav-prev:hover,
.answer-nav-next:hover {
  color: #c9a96e;
}

.answer-nav-prev .nav-dir,
.answer-nav-next .nav-dir {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #4a4035;
  display: block;
  margin-bottom: 0.3rem;
}

.answer-nav-prev .nav-title,
.answer-nav-next .nav-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #f0ece4;
}

.answer-nav-next {
  text-align: right;
}

/* ===== RESPONSIVE: ANSWER PAGES ===== */
@media (max-width: 900px) {
  .answer-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .answer-sidebar {
    position: static;
  }

  .theme-list {
    grid-template-columns: 1fr;
  }

  .explore-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-nav ul {
    gap: 1.25rem;
  }

  .answer-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .answer-nav-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .answer-nav-next {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-nav ul {
    display: none;
  }
}