/* ========================================
   HLC COMIC STYLESHEET
   Styles for Holy Living Creatures webcomic subsite
   
   Dependencies: shared.css (for CSS custom properties)
   ======================================== */

/* ========================================
   HLC-SPECIFIC HEADER OVERRIDES
   ======================================== */

/* Direct override for HLC layout headers - more specific selector */
.hlc-layout .site-header {
  background: rgba(220, 170, 170, 0.9) !important; /* More noticeable red tint in light mode */
  border-bottom: 2px solid rgba(160, 40, 40, 0.4) !important; /* Visible red border */
  backdrop-filter: blur(12px) saturate(130%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(130%) !important;
}

/* Test with even more specific selector */
body > div.hlc-layout > header.site-header {
  background: rgba(220, 170, 170, 0.9) !important; /* More noticeable red tint in light mode */
  border-bottom: 2px solid rgba(160, 40, 40, 0.4) !important; /* Visible red border */
}

/* Dark mode overrides */
.theme-dark .hlc-layout .site-header,
body.theme-dark .hlc-layout .site-header {
  background: rgba(80, 30, 30, 0.85) !important; /* Dark red tint in dark mode */
  border-bottom: 2px solid rgba(255, 100, 100, 0.3) !important; /* Red border in dark */
}

/* Override the glassmorphism noise overlay for red theme */
.hlc-layout .site-header::before {
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='1' stitchTiles='stitch'/%3E%3CfeColorMatrix values='1 0 0 0 0.1 0 0.9 0 0 0 0 0 0.9 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E") !important;
  opacity: 0.15 !important;
  mix-blend-mode: overlay !important;
}

/* Also add a subtle red tint to the navbar for extra distinction */
.hlc-layout .navbar {
  background: rgba(160, 40, 40, 0.05) !important;
}

/* ========================================
   TAG SYSTEM COMPONENTS
   ======================================== */

.tag-badge {
  display: inline-flex;
  align-items: stretch;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 500;
  border-radius: 0.4rem;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  margin: 0.15rem 0.25rem 0.15rem 0;
  max-width: fit-content;
  border: none;
}

.tag-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.tag-badge-category {
  background-color: var(--badge-dark-color);
  color: var(--badge-category-text);
  padding: 0.2rem 0.4rem;
  font-weight: 600;
  border-top-left-radius: 0.3rem;
  border-bottom-left-radius: 0.3rem;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
}

.tag-badge-subcategory {
  background-color: var(--badge-light-color);
  color: var(--badge-subcategory-text);
  padding: 0.2rem 0.4rem;
  font-weight: 500;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
}

.tag-badge-count {
  background-color: var(--badge-dark-color);
  color: var(--badge-category-text);
  padding: 0.2rem 0.4rem;
  font-weight: 600;
  border-top-right-radius: 0.3rem;
  border-bottom-right-radius: 0.3rem;
  font-size: 0.65rem;
  min-width: 1.2rem;
  text-align: center;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-badge-large {
  font-size: 1rem;
  border-radius: 0.5rem;
  margin: 0 0.5rem;
  vertical-align: middle;
  display: inline-flex;
}

.tag-badge-large .tag-badge-category {
  padding: 0.4rem 0.6rem;
  border-radius: 0.4rem 0 0 0.4rem;
}

.tag-badge-large .tag-badge-subcategory {
  padding: 0.4rem 0.6rem;
  border-radius: 0 0.4rem 0.4rem 0;
}

.tag-badge-large .tag-badge-count {
  padding: 0.4rem 0.6rem;
  border-radius: 0 0.4rem 0.4rem 0;
}

.tag-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.no-tags {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* ========================================
   COMIC-SPECIFIC COMPONENTS
   ======================================== */

.post-content p { 
  margin-bottom: 1.5rem; 
}

.post-content p:last-child { 
  margin-bottom: 0; 
}

.post-content h1, .post-content h2, .post-content h3, .post-content h4, .post-content h5, .post-content h6 { 
  word-break: break-word !important; 
}

.post-excerpt {
  color: var(--fg-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: var(--accent-color);
}

/* Comic page display */
.comic-page-display {
  margin: 2rem 0;
}

.comic-image-container {
  text-align: center;
  margin-bottom: 2rem;
}

.comic-page-image {
  max-width: 100%;
  height: auto;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  border-radius: 0.5rem;
}

.comic-notes {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

.comic-notes p { 
  margin-bottom: 1.5rem; 
}

.comic-notes p:last-child { 
  margin-bottom: 0; 
}

/* Navigation */
.comic-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
}

.comic-nav-btn {
  padding: 0.75rem 1.5rem;
  background: var(--bg-tertiary);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.comic-nav-btn:hover:not(.disabled) {
  background: var(--primary-color);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.comic-nav-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comic-nav-info {
  text-align: center;
}

.nav-chapter-info {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.nav-page-info {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Chapter navigation */
.chapter-navigation-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  flex-wrap: wrap;
}

.chapter-nav-link {
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.chapter-nav-link:hover {
  background: var(--bg-tertiary);
}

/* Chapter listing */
.chapter-listing {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.chapter-card {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 0.75rem;
  border: 2px solid var(--border-color);
  transition: all 0.2s ease;
}

.chapter-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.chapter-card-title {
  margin: 0 0 1rem 0;
}

.chapter-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.chapter-link:hover {
  color: var(--primary-color);
}

.chapter-synopsis {
  color: var(--fg-secondary);
  margin-bottom: 1rem;
}

.chapter-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chapter-page-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.chapter-start-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.chapter-start-link:hover {
  color: var(--accent-color);
}

/* Mode switching support */
.comic-page-display[data-show-alt="true"] .comic-page-image {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* ========================================
   CHARACTER SYSTEM COMPONENTS
   ======================================== */

/* Character Cards - Trading Card Style with 3D Effects */
.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.character-card {
  perspective: 1000px;
  cursor: pointer;
}

.character-card-container {
  position: relative;
  width: 100%;
  height: 400px;
  transform-style: preserve-3d;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.character-card:hover .character-card-container {
  transform: rotateY(-10deg) rotateX(5deg) translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.character-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border: 2px solid var(--border-color);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.character-card:hover .character-card-inner {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.character-card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  transition: all 0.3s ease;
  background: var(--bg-accent);
}

.character-card:hover .character-card-image {
  transform: scale(1.05);
}

.character-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, 
      transparent 0%, 
      transparent 40%, 
      var(--bg-secondary) 90%, 
      var(--bg-secondary) 100%);
  padding: 2rem 1.5rem 1.5rem;
  color: var(--text-color);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.character-card-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-heading);
  font-variant: small-caps;
  text-align: center;
}

.character-card:hover .character-card-overlay {
  background: linear-gradient(to bottom, 
      transparent 0%, 
      transparent 35%, 
      var(--bg-tertiary) 85%, 
      var(--bg-tertiary) 100%);
}

/* Character Lightbox */
.character-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.character-lightbox-content {
  position: relative;
  max-width: 95%;
  max-height: 95%;
  width: 1200px;
  background: var(--bg-primary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.character-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.character-lightbox-close:hover {
  background: var(--primary-color);
  color: var(--bg-primary);
  transform: scale(1.1);
}

.character-lightbox-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  height: 80vh;
  max-height: 800px;
  min-height: 600px;
  overflow: hidden;
}

.character-lightbox-image {
  width: 100%;
  height: 60vh;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
  box-shadow: var(--shadow-lg);
  align-self: center;
}

.character-lightbox-info-section {
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  scrollbar-width: auto;
  scrollbar-color: auto;
  padding-right: 0.5rem;
}

.character-lightbox-name {
  color: var(--red);
  font-family: var(--font-heading);
  font-variant: small-caps;
  margin: 1rem 2rem 1rem 1rem;
  font-size: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.character-lightbox-details {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 0 2rem 1.5rem 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-left: 4px solid var(--primary-color);
  /* Enhanced text formatting and hyphenation */
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  -webkit-hyphenate-limit-chars: 6 3 3;
  -webkit-hyphenate-limit-lines: 2;
  -webkit-hyphenate-limit-last: always;
  -webkit-hyphenate-limit-zone: 8%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.character-lightbox-bio {
  line-height: 1.6;
  color: var(--text-color);
  flex: 1;
  margin: 0 2rem 1rem 1rem;
  /* Enhanced text formatting and hyphenation */
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  -webkit-hyphenate-limit-chars: 6 3 3;
  -webkit-hyphenate-limit-lines: 2;
  -webkit-hyphenate-limit-last: always;
  -webkit-hyphenate-limit-zone: 8%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: justify;
}

.character-lightbox-bio h2,
.character-lightbox-bio h3,
.character-lightbox-bio h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.character-lightbox-bio p {
  margin-bottom: 1.5rem;
  /* Enhanced text formatting and hyphenation */
  hyphens: auto;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -webkit-hyphenate-limit-before: 3;
  -webkit-hyphenate-limit-after: 3;
  -webkit-hyphenate-limit-chars: 6 3 3;
  -webkit-hyphenate-limit-lines: 2;
  -webkit-hyphenate-limit-last: always;
  -webkit-hyphenate-limit-zone: 8%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.character-lightbox-bio p:last-child { 
  margin-bottom: 0; 
}

/* Character metadata styling */
.character-lightbox-metadata {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 0 2rem 1.5rem 1rem;
  border-left: 4px solid var(--primary-color);
}

.character-metadata-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.character-metadata-row:last-child {
  margin-bottom: 0;
}

.character-metadata-label {
  font-weight: 600;
  color: var(--text-color);
  min-width: 80px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
}

.character-metadata-value {
  color: var(--text-muted);
  font-weight: 500;
}

.character-affiliation-widgets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Character metadata widgets (similar to tag badges) */
.character-metadata-widget {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.3rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  cursor: pointer;
  border: 1px solid transparent;
  contain: layout style paint;
  isolation: isolate;
  position: relative;
  z-index: 2;
}

.species-widget {
  background: var(--green);
  color: var(--bg-primary);
  font-weight: 600;
  background-image: none;
}

.species-widget:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: var(--yellow);
}

.affiliation-widget {
  background: var(--blue);
  color: var(--bg-primary);
  font-weight: 600;
  background-image: none;
}

.affiliation-widget:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  background: var(--purple);
}

/* Dramatis page specific styles */
.dramatis-description {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.back-link {
  display: inline-block;
  margin-top: 3rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  color: var(--primary-color) !important;
  text-decoration: none !important;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.back-link:hover {
  background: var(--primary-color) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Responsive design for character lightbox */
@media (max-width: 768px) {
  .character-lightbox-content {
    max-width: 98%;
    max-height: 98%;
    width: 100%;
  }
  
  .character-lightbox-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    height: 85vh;
    max-height: 700px;
    min-height: 500px;
    overflow: hidden;
  }
  
  .character-lightbox-image {
    order: 1;
    width: 100%;
    aspect-ratio: 3/4;
    max-height: 50vh;
    object-fit: cover;
    object-position: center;
    align-self: start;
  }
  
  .character-lightbox-info-section {
    order: 2;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
  }
  
  .character-lightbox-name {
    margin: 1rem 1.5rem 1rem 1rem;
  }
  
  .character-lightbox-metadata {
    margin: 0 1.5rem 1.5rem 1rem;
  }
  
  .character-lightbox-bio {
    margin: 0 1.5rem 1rem 1rem;
  }
  
  .character-metadata-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .character-metadata-label {
    min-width: auto;
  }
  
  .character-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }
  
  .character-card-container {
    height: 350px;
  }
  
  .character-card-image {
    height: 250px;
  }
}

/* ========================================
   DESIGN NOTES COMPONENTS
   ======================================== */

.ref-badges-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.ref-badge {
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
  font-weight: 500;
}

.chapter-ref {
  background: var(--blue);
  color: white;
}

.page-ref {
  background: var(--purple);
  color: white;
}

.back-to-comic {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-to-comic:hover {
  color: var(--accent-color);
}

/* Design Note Full View */
.note-detail-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.design-note-full {
  background: var(--bg-secondary);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.note-hero-container {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.note-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-header {
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--border-color);
}

.note-title {
  margin: 0 0 1rem 0;
  font-size: 2.5rem;
  line-height: 1.2;
}

.ref-links-container {
  margin-top: 1rem;
}

.ref-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 0.3rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ref-link:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.note-content {
  padding: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.note-content h1,
.note-content h2,
.note-content h3,
.note-content h4,
.note-content h5,
.note-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.note-content p {
  margin-bottom: 1.5rem;
}

.note-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.note-footer {
  padding: 2rem 3rem;
  background: var(--bg-tertiary);
}

.note-tags {
  margin-bottom: 2rem;
}

.note-tags .tags-title {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  color: var(--fg-primary);
}

.note-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  max-width: 45%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-prev {
  text-align: left;
}

.nav-next {
  text-align: right;
  flex-direction: row-reverse;
}

.nav-arrow {
  font-size: 1.2rem;
}

.nav-title {
  font-weight: 500;
}

.no-notes {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem;
  font-size: 1.1rem;
}

/* ========================================
   DISCLOSURE CARDS
   ======================================== */

/* AI and CoI disclosure cards inherit from shared.css */

/* Tools Disclosure Card Styles */
.tools-disclosure-card {
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  margin: 2rem 0;
  background: var(--bg-light);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tools-disclosure-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.tools-disclosure-header:hover {
  background: var(--bg-tertiary);
}

.tools-disclosure-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tools-disclosure-icon {
  font-size: 1.2rem;
}

.tools-disclosure-title {
  font-weight: 600;
  color: var(--text-color);
  font-family: var(--font-heading);
}

.tools-disclosure-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tools-disclosure-count-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-accent);
  color: var(--text-color);
}

.tools-disclosure-toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.2s ease;
}

.tools-disclosure-toggle-btn:hover {
  transform: scale(1.1);
}

.tools-disclosure-content {
  padding: 1.5rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-disclosure-content.collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.tools-disclosure-content.expanded {
  max-height: 1000px;
  opacity: 1;
}

.tools-list {
  display: grid;
  gap: 1rem;
}

.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  transition: all 0.2s ease;
}

.tool-item:hover {
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.tool-name {
  font-weight: 500;
  color: var(--text-color);
}

.tool-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.tool-link:hover {
  color: var(--accent-color);
}

/* ========================================
   LAYOUT & CONTAINER STYLES
   ======================================== */

/* HLC-specific styles */
.hlc-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
}

.hlc-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  flex: 1 0 auto; /* grow, no shrink, auto basis */
}

/* Container styles */
.blog-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Fix page-title width constraint in HLC layout */
.hlc-container .page-title {
  display: block;
  width: 100%;
}

/* Allow HLC post cards to use full container width */
.hlc-container .post-card {
  width: 100%;
  max-width: 100%;
}

/* Removed .container override to prevent width constraints in HLC layout */

.posts-section {
  margin-bottom: 2rem;
}

.section-title {
  margin-bottom: 2rem;
  color: var(--fg-primary);
  font-variant: small-caps;
  font-size: 1.5rem;
  text-align: center;
}

/* Header styles */
/* .site-header inherits glassmorphism from shared.css */

/* HLC navigation inherits from shared.css */

/* Theme classes for manual override */
.theme-light { 
  color-scheme: light; 
}

.theme-dark { 
  color-scheme: dark; 
}