/* Article Page Specific Styles - Reduced sizes */

/* Article Hero Section */
.article-hero {
  min-height: 50vh; /* Reduced from 60vh */
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
  opacity: 0.3;
}

.article-hero-content {
  text-align: center;
  max-width: 700px; /* Reduced from 800px */
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.article-hero-content h1 {
  font-size: var(--text-5xl); /* Reduced from 6xl */
  font-weight: 900;
  margin-bottom: var(--space-5); /* Reduced from 6 */
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-hero-content p {
  font-size: var(--text-lg); /* Reduced from xl */
  color: var(--color-gray-300);
  line-height: 1.6;
}

/* Article Content Section */
.article-content-section {
  padding: var(--space-16) 0; /* Reduced from 24 */
  background: var(--color-secondary);
}

.article-content {
  max-width: 800px; /* Reduced from 900px */
  margin: 0 auto;
}

/* Article Styles */
.article-wrapper {
  background: var(--color-primary);
  border-radius: var(--radius-lg); /* Reduced from xl */
  padding: var(--space-8); /* Reduced from 12 */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-header {
  text-align: center;
  margin-bottom: var(--space-8); /* Reduced from 12 */
  padding-bottom: var(--space-6); /* Reduced from 8 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-title {
  font-size: var(--text-4xl); /* Reduced from 5xl */
  font-weight: 800;
  margin-bottom: var(--space-5); /* Reduced from 6 */
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: var(--space-4); /* Reduced from 6 */
  flex-wrap: wrap;
  margin-bottom: var(--space-5); /* Reduced from 6 */
  font-size: var(--text-xs); /* Reduced from sm */
  color: var(--color-gray-400);
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.article-featured-image {
  width: 100%;
  max-width: 700px; /* Reduced from 800px */
  margin: 0 auto var(--space-8); /* Reduced from 12 */
  border-radius: var(--radius-base); /* Reduced from lg */
  overflow: hidden;
  box-shadow: var(--shadow-lg); /* Reduced from xl */
}

.article-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Article Body */
.article-body {
  color: var(--color-gray-200);
  line-height: 1.8;
  font-size: var(--text-base); /* Reduced from lg */
}

.article-body h2 {
  font-size: var(--text-3xl); /* Reduced from 4xl */
  font-weight: 700;
  margin: var(--space-8) 0 var(--space-4); /* Reduced margins */
  color: var(--color-white);
  position: relative;
}

.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px; /* Reduced from -8px */
  width: 50px; /* Reduced from 60px */
  height: 2px; /* Reduced from 3px */
  background: var(--color-white);
}

.article-body h3 {
  font-size: var(--text-xl); /* Reduced from 2xl */
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3); /* Reduced margins */
  color: var(--color-white);
}

.article-body h4 {
  font-size: var(--text-lg); /* Reduced from xl */
  font-weight: 600;
  margin: var(--space-5) 0 var(--space-2); /* Reduced margins */
  color: var(--color-white);
}

.article-body p {
  margin-bottom: var(--space-4); /* Reduced from 6 */
  line-height: 1.8;
}

.article-body ul,
.article-body ol {
  margin: var(--space-4) 0; /* Reduced from 6 */
  padding-left: var(--space-6); /* Reduced from 8 */
}

.article-body li {
  margin-bottom: var(--space-2); /* Reduced from 3 */
  line-height: 1.7;
}

.article-body ul li {
  position: relative;
}

.article-body ul li::before {
  content: "→";
  position: absolute;
  left: -20px; /* Reduced from -24px */
  color: var(--color-white);
  font-weight: bold;
}

.article-body blockquote {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--color-white);
  padding: var(--space-4); /* Reduced from 6 */
  margin: var(--space-6) 0; /* Reduced from 8 */
  border-radius: 0 var(--radius-base) var(--radius-base) 0; /* Reduced from lg */
  font-style: italic;
  font-size: var(--text-lg); /* Reduced from xl */
  color: var(--color-gray-300);
}

.article-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: var(--space-6) 0; /* Reduced from 8 */
  border-radius: var(--radius-base); /* Reduced from lg */
  box-shadow: var(--shadow-base); /* Reduced from lg */
}

.article-body strong {
  color: var(--color-white);
  font-weight: 600;
}

.article-body em {
  color: var(--color-gray-300);
}

.article-body code {
  background: rgba(255, 255, 255, 0.1);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  font-size: 0.9em;
  color: var(--color-white);
}

.article-body pre {
  background: rgba(0, 0, 0, 0.5);
  padding: var(--space-4); /* Reduced from 6 */
  border-radius: var(--radius-base); /* Reduced from lg */
  overflow-x: auto;
  margin: var(--space-6) 0; /* Reduced from 8 */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-body pre code {
  background: none;
  padding: 0;
  color: var(--color-gray-200);
}

/* Article CTA */
.article-cta {
  background: var(--color-secondary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg); /* Reduced from xl */
  padding: var(--space-6); /* Reduced from 8 */
  margin: var(--space-8) 0; /* Reduced from 12 */
  text-align: center;
}

.article-cta h4 {
  font-size: var(--text-xl); /* Reduced from 2xl */
  margin-bottom: var(--space-3); /* Reduced from 4 */
  color: var(--color-white);
}

.article-cta p {
  margin-bottom: var(--space-4); /* Reduced from 6 */
  color: var(--color-gray-400);
  font-size: var(--text-sm); /* Reduced size */
}

/* Article Navigation */
.article-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8); /* Reduced from 12 */
  padding-top: var(--space-6); /* Reduced from 8 */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-gray-400);
  transition: color var(--transition-base);
  font-size: var(--text-sm); /* Reduced size */
}

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

.nav-link.prev {
  flex-direction: row;
}

.nav-link.next {
  flex-direction: row-reverse;
}

/* Article Not Found */
.article-not-found {
  text-align: center;
  padding: var(--space-12); /* Reduced from 16 */
}

.article-not-found h2 {
  font-size: var(--text-3xl); /* Reduced from 4xl */
  margin-bottom: var(--space-3); /* Reduced from 4 */
  color: var(--color-white);
}

.article-not-found p {
  font-size: var(--text-base); /* Reduced from lg */
  color: var(--color-gray-400);
  margin-bottom: var(--space-6); /* Reduced from 8 */
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-hero-content h1 {
    font-size: var(--text-4xl); /* Reduced from 5xl */
  }

  .article-wrapper {
    padding: var(--space-6); /* Reduced from 8 */
  }

  .article-title {
    font-size: var(--text-3xl); /* Reduced from 4xl */
  }

  .article-meta {
    flex-direction: column;
    gap: var(--space-2);
  }

  .article-body {
    font-size: var(--text-sm); /* Reduced from base */
  }

  .article-body h2 {
    font-size: var(--text-2xl); /* Reduced from 3xl */
  }

  .article-body h3 {
    font-size: var(--text-lg); /* Reduced from xl */
  }

  .article-nav {
    flex-direction: column;
    gap: var(--space-3); /* Reduced from 4 */
  }

  .article-hero {
    min-height: 40vh; /* Further reduced */
  }
}

@media (max-width: 480px) {
  .article-hero {
    min-height: 35vh; /* Further reduced */
  }

  .article-hero-content h1 {
    font-size: var(--text-3xl); /* Further reduced */
  }

  .article-hero-content p {
    font-size: var(--text-base); /* Reduced from lg */
  }

  .article-wrapper {
    padding: var(--space-4); /* Further reduced */
  }

  .article-title {
    font-size: var(--text-2xl); /* Further reduced */
  }

  .article-body ul,
  .article-body ol {
    padding-left: var(--space-4); /* Reduced from 6 */
  }

  .article-cta {
    padding: var(--space-4); /* Reduced from 6 */
  }
}
