/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #0a120e;
  color: #e8ede9;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Nighthawks Ambient Glow Effect ── */
.window-glow {
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse at center, rgba(57, 217, 138, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.window-glow-inner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45vw;
  height: 35vh;
  background: radial-gradient(ellipse at center top, rgba(212, 168, 67, 0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ── Header ── */
header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 5rem 2rem 3.5rem;
  border-bottom: 1px solid rgba(57, 217, 138, 0.20);
  background: linear-gradient(180deg, rgba(57, 217, 138, 0.04) 0%, transparent 100%);
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.header-tagline {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #2a9e61;
  margin-bottom: 1rem;
}

header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: #e8ede9;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 40px rgba(57, 217, 138, 0.25),
    0 0 80px rgba(57, 217, 138, 0.10);
  margin-bottom: 1rem;
}

/* ── Main Layout ── */
main {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

/* ── Legend Bar ── */
.legend-bar {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  background: #132018;
  border: 1px solid rgba(57, 217, 138, 0.20);
  border-radius: 4px;
}

/* ── Status Badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28em 0.85em;
  border-radius: 2px;
  border: 1px solid;
  white-space: nowrap;
  font-weight: 700;
}

.status-badge.read {
  color: #39d98a;
  border-color: rgba(57, 217, 138, 0.4);
  background: rgba(57, 217, 138, 0.08);
}

.status-badge.in-progress {
  color: #d4a843;
  border-color: rgba(212, 168, 67, 0.4);
  background: rgba(212, 168, 67, 0.08);
}

.status-badge.to-read {
  color: #6baed6;
  border-color: rgba(107, 174, 214, 0.4);
  background: rgba(107, 174, 214, 0.08);
}

/* ── Table Wrapper ── */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(57, 217, 138, 0.20);
  border-radius: 4px;
  box-shadow:
    0 0 60px rgba(57, 217, 138, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Table ── */
#book-inventory {
  width: 100%;
  border-collapse: collapse;
  background: #182a1e;
  font-size: 1.2rem;
}

#book-inventory thead {
  background: #132018;
  border-bottom: 2px solid #1f6b42;
}

#book-inventory th {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2a9e61;
  padding: 1rem 1.2rem;
  text-align: left;
  white-space: nowrap;
}

#book-inventory td {
  font-size: 1rem;
  padding: 1.1rem 1.2rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(57, 217, 138, 0.08);
  color: #e8ede9;
}

#book-inventory tbody tr {
  transition: background 0.2s ease;
}

#book-inventory tbody tr:hover {
  background: rgba(57, 217, 138, 0.04);
}

#book-inventory tbody tr:last-child td {
  border-bottom: none;
}

/* Row accent strips */
.row-read td:first-child {
  border-left: 10px solid #39d98a;
}
.row-in-progress td:first-child {
  border-left: 10px solid #d4a843;
}
.row-to-read td:first-child {
  border-left: 10px solid #6baed6;
}

/* ── Special Cells ── */
.rank-cell {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: #5a7a64;
  width: 36px;
  text-align: center;
  vertical-align: center;
}

.book-title-cell {
  min-width: 200px;

}

.title {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: #e8c06a;
  line-height: 1.3;
  margin-bottom: 0.2em;
}

.author {
  display: block;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #9ab8a4;
  text-transform: uppercase;
}

.priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #153624;
  border: 1px solid #1f6b42;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 1rem;
  font-weight: 700;
  color: #39d98a;
}

.pitch {
  font-size: 1rem;
  font-style: italic;
  color: #9ab8a4;
  line-height: 1.6;
  max-width: 340px;
}

/* ── Reflection Section ── */
.reflection {
  margin-top: 3rem;
  position: relative;
  width: 1250px;
}

.reflection::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1f6b42, transparent);
  margin-bottom: 3rem;
}

.reflection-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  background: #182a1e;
  border: 1px solid rgba(57, 217, 138, 0.20);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 0 40px rgba(57, 217, 138, 0.04);
}

.section-label {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #2a9e61;
  margin-bottom: 0.75rem;
}

.reflection-inner h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: #e8c06a;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.reflection-inner p {
  color: #e2eee6;
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}

.reflection-inner p:last-child {
  margin-bottom: 0;
}

.reflection-inner em {
  color: #e8c06a;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  header {
    padding: 3.5rem 1rem 2.5rem;
  }

  main {
    padding: 2rem 1rem 4rem;
  }

  #book-inventory th,
  #book-inventory td {
    padding: 0.75rem 0.85rem;
  }

  .pitch {
    max-width: 200px;
  }

  .reflection-inner {
    padding: 2rem 1.5rem;
  }
}
