/*
 * Article Content Styling - Notion-inspired typography and spacing
 * Targets .article-content wrapper for consistent styling in blog and modal views
 */

/* Article Container */
.article-content {
  max-width: 45rem;
  margin: 0 auto;
  padding: 0 1rem;
  font-family: "IBM Plex Sans", Inter, sans-serif, Arial;
  line-height: 1.6;
  color: var(--color-black);
}

/* Notion-like Heading Sizes and Spacing */
.article-content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem); /* Responsive h1 size */
  line-height: 1.25;
  font-weight: 700;
  margin: 2rem 0 2rem;
  text-align: center;
  max-width: none;
}

.article-content h2 {
  font-size: clamp(1.25rem, 3vw, 2rem); /* Responsive h2 size */
  line-height: 1.35;
  font-weight: 600;
  margin: 2rem 0 1rem;
  text-align: left;
  max-width: none;
}

.article-content h3 {
  font-size: clamp(1rem, 2vw, 1.5rem); /* Responsive h3 size */
  line-height: 1.4;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
  text-align: left;
  max-width: none;
}

.article-content h4 {
  font-size: clamp(0.95rem, 1.5vw, 1.25rem); /* Responsive h4 size */
  line-height: 1.4;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  text-align: left;
}

.article-content h5,
.article-content h6 {
  font-size: clamp(0.85rem, 1vw, 1rem); /* Responsive h5/h6 size */
  line-height: 1.4;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
  text-align: left;
}

/* Paragraphs - Notion-like spacing */
.article-content p {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.6;
  font-weight: 400;
  margin: 0 0 1rem;
  text-align: left;
  max-width: none;
}

/* Lists - Notion-style */
.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 1rem;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

.article-content li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.article-content ul li {
  list-style-type: disc;
}

.article-content ol li {
  list-style-type: decimal;
}

/* Nested lists */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
  margin: 0.25rem 0;
}

/* Blockquotes - Notion-style callouts */
.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--color-logo);
  background-color: rgba(220, 153, 73, 0.1);
  border-radius: 0.25rem;
  font-style: normal;
}

.article-content blockquote p {
  margin: 0;
  font-weight: 500;
}

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

/* Horizontal Rules - Notion-style dividers */
.article-content hr {
  border: none;
  height: 1px;
  background: var(--color-border, rgba(0, 0, 0, 0.1));
  margin: 2rem 0;
  width: 100%;
}

/* Images - Notion-style (flush, rounded, shadow) */
.article-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Header Image Styling - matches article content images */
.modal-header-image {
  display: block;
  width: 100%;
  height: 800px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  object-position: center;
  border-radius: 0.5rem;
  margin: 0 0 2rem;
}

/* Code blocks - inline and block */
.article-content code {
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
}

.article-content pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  overflow-x: auto;
}

.article-content pre code {
  background: none;
  padding: 0;
}

.article-content a:hover {
  border-bottom-color: var(--color-link);
}

/* Tables - Notion-style */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-content th,
.article-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.article-content th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

.article-content tr:last-child td {
  border-bottom: none;
}

/* Word callout for Hebrew/Greek word intros*/
.article-content .word-callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.04); /* subtle gray */
  border-left: 4px solid var(--color-logo); /* brand accent */
  border-radius: 0.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.5;
}

.application-callout {
  font-weight: 500;
  display: block;
  margin-bottom: 0.25rem;
}


/* Strong and emphasis */
.article-content strong {
  font-weight: 600;
}

.article-content em {
  font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-content {
    padding: 0 1rem;
  }

  .article-content h1 {
    font-size: 1.875rem; /* 30px on mobile */
    margin: 1.5rem 0 2rem;
  }

  .article-content h2 {
    font-size: 1.375rem; /* 22px on mobile */
    margin: 1.5rem 0 0.75rem;
  }

  .article-content h3 {
    font-size: 1.125rem; /* 18px on mobile */
    margin: 1.25rem 0 0.5rem;
  }

  .modal-header-image {
    height: 250px;
    border-radius: 0.5rem;
    margin: 1.5rem;
  }
}
