/* ============================================
   Article Page Styles
   ============================================ */

/* Article Listing Styles */
.articles-loading {
  text-align: center;
  padding: 3em 0;
  color: var(--opb-color-7);
}

.articles-loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

.articles-error {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 1.5em;
  margin: 2em 0;
  color: #856404;
}

.articles-error strong {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.articles-listing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5em;
  margin-top: 2em;
}

.articles-listing-loaded {
  animation: fadeIn 0.3s ease-in;
}

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

/* Article Card Styles */
.article-card {
  border: 1px solid var(--opb-color-6);
  border-radius: 8px;
  padding: 2em;
  background-color: var(--opb-color-5);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.article-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.article-card-title {
  font-size: 28px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--opb-color-2);
  margin: 0 0 0.5em 0;
  line-height: 1.3;
}

.article-card-link {
  color: var(--opb-color-2);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-card-link:hover,
.article-card-link:focus {
  color: var(--opb-color-0);
  text-decoration: underline;
}

.article-card-date {
  display: block;
  font-size: 14px;
  color: var(--opb-color-7);
  opacity: 0.7;
  margin-bottom: 1em;
}

.article-card-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--opb-color-7);
  margin-bottom: 1.5em;
}

.article-card-read-more {
  display: inline-block;
  margin-top: 0.5em;
}

/* Article Page Styles */
.article-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3em 2em;
}

.article-loading {
  text-align: center;
  padding: 3em 0;
  color: var(--opb-color-7);
}

.article-loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

.article-error {
  background-color: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 1.5em;
  margin: 2em 0;
  color: #856404;
}

.article-error strong {
  display: block;
  margin-bottom: 0.5em;
  font-weight: 700;
}

.article-content {
  line-height: 1.8;
  color: var(--opb-color-7);
}

.article-content-loaded {
  animation: fadeIn 0.3s ease-in;
}

/* Article Content Typography */
.article-content h1 {
  font-size: 42px;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--opb-color-2);
  margin-top: 0;
  margin-bottom: 0.5em;
  line-height: 1.2;
  border-bottom: 2px solid var(--opb-color-6);
  padding-bottom: 0.5em;
}

.article-content h2 {
  font-size: 32px;
  font-size: 2.13rem;
  font-weight: 700;
  color: var(--opb-color-2);
  margin-top: 2em;
  margin-bottom: 1em;
  line-height: 1.3;
}

.article-content h3 {
  font-size: 24px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--opb-color-2);
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.4;
}

.article-content h4 {
  font-size: 20px;
  font-size: 1.33rem;
  font-weight: 600;
  color: var(--opb-color-2);
  margin-top: 1.25em;
  margin-bottom: 0.5em;
  line-height: 1.4;
}

.article-content p {
  margin-bottom: 1em;
  line-height: 1.8;
}

.article-content strong {
  font-weight: 700;
  color: var(--opb-color-2);
}

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

.article-content ul,
.article-content ol {
  margin: 1em 0;
  padding-left: 2em;
  line-height: 1.8;
}

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

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

.article-content li {
  margin-bottom: 0.5em;
}

.article-content li ul,
.article-content li ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.article-content a {
  color: var(--opb-color-2);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.article-content a:hover,
.article-content a:focus {
  color: var(--opb-color-0);
}

.article-content code {
  background-color: var(--opb-color-4);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.article-content pre {
  background-color: var(--opb-color-4);
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5em 0;
}

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

.article-content blockquote {
  border-left: 4px solid var(--opb-color-0);
  padding-left: 1.5em;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--opb-color-7);
  opacity: 0.9;
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--opb-color-6);
  margin: 2em 0;
}

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

/* Responsive Design */
@media (max-width: 921px) {
  .article-page {
    padding: 2em 1.5em;
  }

  .article-content h1 {
    font-size: 36px;
    font-size: 2.4rem;
  }

  .article-content h2 {
    font-size: 28px;
    font-size: 1.87rem;
  }

  .article-content h3 {
    font-size: 22px;
    font-size: 1.47rem;
  }

  .article-card {
    padding: 1.5em;
  }

  .article-card-title {
    font-size: 24px;
    font-size: 1.5rem;
  }
}

@media (max-width: 544px) {
  .article-page {
    padding: 1.5em 1em;
  }

  .article-content h1 {
    font-size: 28px;
    font-size: 1.87rem;
  }

  .article-content h2 {
    font-size: 24px;
    font-size: 1.6rem;
  }

  .article-content h3 {
    font-size: 20px;
    font-size: 1.33rem;
  }

  .article-card {
    padding: 1.25em;
  }

  .article-card-title {
    font-size: 20px;
    font-size: 1.25rem;
  }

  .articles-listing {
    gap: 1.5em;
  }
}

