/* ============================================
   THE HBAR LIBRARY - TEXT-FIRST, NO CARDS
   Two-column layout: fixed title left, content right
   ============================================ */

/* Force dark background */
body {
  background-color: #0b0b0b !important;
  color: #e8e6e3 !important;
}

/* Two-Column Layout */
.library-layout {
  display: flex;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 3rem 2rem;
  min-height: calc(100vh - 120px);
  align-items: flex-start;
}

/* Left Column: Title Block (Fixed) */
.library-title-block {
  position: sticky;
  top: 3rem;
  width: 320px;
  flex-shrink: 0;
}

.library-title-block h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin: 0 0 1rem 0;
  color: #e8e6e3;
  line-height: 1.2;
}

.library-title-block .subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.125rem;
  font-style: italic;
  color: rgba(232, 230, 227, 0.5);
  margin: 0;
  line-height: 1.6;
}

/* Right Column: Content */
.library-content {
  flex: 1;
  max-width: 800px;
}

/* Minimal Inline Controls */
.library-controls {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(232, 230, 227, 0.1);
}

.search-row,
.filters-row,
.count-row {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: rgba(232, 230, 227, 0.6);
  margin-bottom: 1rem;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-row label {
  min-width: 60px;
  font-weight: 400;
}

.search-row input {
  flex: 1;
  max-width: 400px;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232, 230, 227, 0.2);
  color: #e8e6e3;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.25s ease;
}

.search-row input:focus {
  outline: none;
  border-bottom-color: rgba(232, 230, 227, 0.4);
}

.search-row input::placeholder {
  color: rgba(232, 230, 227, 0.3);
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filters-row label {
  font-weight: 400;
}

.filters-row select,
.filters-row button {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(232, 230, 227, 0.15);
  color: rgba(232, 230, 227, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem 0.25rem 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filters-row select:hover,
.filters-row button:hover {
  color: rgba(232, 230, 227, 0.9);
  border-bottom-color: rgba(232, 230, 227, 0.3);
}

.filters-row select:focus,
.filters-row button:focus {
  outline: none;
  border-bottom-color: rgba(232, 230, 227, 0.4);
}

.filters-row button {
  font-weight: 500;
  letter-spacing: 0.3px;
}

.separator {
  color: rgba(232, 230, 227, 0.3);
  font-weight: 300;
}

.count-row {
  font-size: 0.8125rem;
  color: rgba(232, 230, 227, 0.4);
  font-style: italic;
}

/* Entries List - Text-First, No Cards */
.library-entries {
  margin-bottom: 4rem;
}

/* Category Sections */
.category-section {
  margin-bottom: 4rem;
}

.category-header {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(232, 230, 227, 0.35);
  margin: 0 0 2rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(232, 230, 227, 0.1);
}

.library-entry-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.library-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(232, 230, 227, 0.08);
  transition: all 0.25s ease;
  cursor: pointer;
}

.library-entry:hover {
  padding-left: 0.5rem;
}

.library-entry:hover .entry-title {
  color: #fff;
}

.library-entry:hover .entry-title::after {
  content: " →";
  opacity: 0.6;
}

/* Entry Title */
.entry-title {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(232, 230, 227, 0.9);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  transition: color 0.25s ease;
}

.entry-subtitle {
  font-family: 'EB Garamond', serif;
  font-size: 1.125rem;
  font-style: italic;
  color: rgba(232, 230, 227, 0.5);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
}

/* Entry Metadata Line */
.entry-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(232, 230, 227, 0.4);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.entry-meta .separator {
  margin: 0 0.5rem;
  color: rgba(232, 230, 227, 0.25);
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 3px;
  border: 1px solid;
}

.status-badge.status-working {
  background: rgba(255, 200, 87, 0.08);
  border-color: rgba(255, 200, 87, 0.25);
  color: rgba(255, 200, 87, 0.85);
}

.status-badge.status-exploratory {
  background: rgba(139, 195, 255, 0.08);
  border-color: rgba(139, 195, 255, 0.25);
  color: rgba(139, 195, 255, 0.85);
}

.status-badge.status-provisional {
  background: rgba(168, 162, 255, 0.08);
  border-color: rgba(168, 162, 255, 0.25);
  color: rgba(168, 162, 255, 0.85);
}

.status-badge.status-canonical {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
  color: rgba(212, 175, 55, 0.9);
}

.status-badge.status-archived {
  background: rgba(232, 230, 227, 0.05);
  border-color: rgba(232, 230, 227, 0.15);
  color: rgba(232, 230, 227, 0.4);
}

/* Entry Abstract */
.entry-abstract {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(232, 230, 227, 0.6);
  margin: 0 0 0.75rem 0;
  max-width: 700px;
}

/* Entry Tags (Very Faint) */
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.entry-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  color: rgba(232, 230, 227, 0.25);
  letter-spacing: 0.3px;
}

/* No Results */
.no-results {
  padding: 3rem 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.125rem;
  font-style: italic;
  color: rgba(232, 230, 227, 0.4);
  text-align: center;
}

/* Footer */
.library-footer {
  padding: 2rem 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(232, 230, 227, 0.15);
  letter-spacing: 0.5px;
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .library-layout {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 2rem 1rem;
  }

  .library-title-block {
    position: static;
    width: 100%;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(232, 230, 227, 0.1);
  }

  .library-title-block h1 {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .library-layout {
    padding: 1.5rem 1.5rem 1rem;
  }

  .library-title-block h1 {
    font-size: 1.75rem;
  }

  .entry-title {
    font-size: 1.25rem;
  }

  .filters-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .separator {
    display: none;
  }
}
