/* ==============================================================
   Arcanada — Custom CSS (beyond what's in header.php <style>)
   ============================================================== */

/* ---- Article content typography ---- */
.article-content h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

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

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

.article-content li {
  margin-bottom: 0.25rem;
}

.article-content a {
  color: #9f6ef7;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.article-content a:hover {
  color: #b794f6;
}

.article-content blockquote {
  border-left: 3px solid rgba(139, 76, 240, 0.4);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  opacity: 0.85;
}

.article-content strong {
  font-weight: 600;
}

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

.article-content img {
  border-radius: 1rem;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

/* ---- Code blocks ---- */
.article-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 0.375rem;
  background: rgba(139, 76, 240, 0.08);
}

.dark .article-content code {
  background: rgba(183, 148, 246, 0.1);
  color: #d5bfff;
}

.article-content pre {
  position: relative;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  background: #f5f3fa;
  color: #1a1528;
  border: 1px solid rgba(183, 148, 246, 0.15);
}

.dark .article-content pre {
  background: #0c0c1d;
  color: #ebe7f5;
  border-color: rgba(183, 148, 246, 0.1);
}

.article-content pre code {
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* ---- Tables ---- */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

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

.article-content th {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.6;
}

.dark .article-content th,
.dark .article-content td {
  border-color: rgba(183, 148, 246, 0.08);
}

.article-content tr:hover td {
  background: rgba(139, 76, 240, 0.03);
}

.dark .article-content tr:hover td {
  background: rgba(139, 76, 240, 0.05);
}

/* ---- Horizontal rule ---- */
.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 148, 246, 0.3), rgba(212, 160, 48, 0.2), rgba(183, 148, 246, 0.3), transparent);
  margin: 2rem 0;
}

/* ---- Line clamp utility (fallback for older browsers) ---- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Mobile responsive fixes ---- */
@media (max-width: 640px) {
  .article-content h2 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
  }

  .article-content h3 {
    font-size: 1rem;
    margin-top: 1.25rem;
  }

  .article-content pre {
    padding: 1rem;
    font-size: 0.8rem;
  }

  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .article-content th,
  .article-content td {
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
  }
}
