/* Article Detail Page Styles */

.article-detail-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* Back Link */
.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-bottom: 2.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-back-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-4px);
  border-color: rgba(96, 165, 250, 0.3);
}

.article-back-link i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.article-back-link:hover i {
  transform: translateX(-3px);
}

/* Hero Section */
.article-hero {
  margin-bottom: 3.5rem;
}

.article-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 50px;
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.article-hero-badge i {
  font-size: 1rem;
}

.article-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* Meta Information */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

.article-meta-item i {
  font-size: 1.1rem;
  color: rgba(96, 165, 250, 0.8);
}

.article-meta-item span {
  color: rgba(255, 255, 255, 0.9);
}

/* Featured Image */
.article-featured-image-wrapper {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  position: relative;
}

.article-featured-image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
  pointer-events: none;
  z-index: 1;
}

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

/* Article Content */
.article-content {
  font-size: 1.125rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
}

.article-content > *:first-child {
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* Headings */
.article-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.02em;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
}

.article-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.article-content h4 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.article-content h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Paragraphs */
.article-content p {
  margin-bottom: 1.75rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Lists */
.article-content ul,
.article-content ol {
  margin-bottom: 2rem;
  padding-left: 0;
}

.article-content ul {
  list-style: none;
}

.article-content ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.article-content ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #60a5fa;
  font-weight: bold;
  font-size: 1.2rem;
}

.article-content ol {
  counter-reset: list-counter;
  padding-left: 2rem;
}

.article-content ol li {
  counter-increment: list-counter;
  position: relative;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  padding-left: 0.5rem;
}

.article-content ol li::marker {
  color: #60a5fa;
  font-weight: 600;
}

/* Text Formatting */
.article-content strong {
  color: #ffffff;
  font-weight: 600;
}

.article-content em {
  color: rgba(255, 255, 255, 0.9);
  font-style: italic;
}

/* Links */
.article-content a {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid rgba(96, 165, 250, 0.3);
  transition: all 0.2s ease;
}

.article-content a:hover {
  color: #93c5fd;
  border-bottom-color: #60a5fa;
}

/* Images */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 3rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blockquotes */
.article-content blockquote {
  border-left: 4px solid rgba(96, 165, 250, 0.6);
  padding: 2rem 2.5rem;
  margin: 3rem 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 0 16px 16px 0;
  font-size: 1.125rem;
  line-height: 1.8;
  position: relative;
}

.article-content blockquote::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 4rem;
  color: rgba(96, 165, 250, 0.3);
  font-family: Georgia, serif;
  line-height: 1;
}

.article-content blockquote p {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* Code */
.article-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: #fbbf24;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-content pre {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  padding: 2rem;
  border-radius: 16px;
  overflow-x: auto;
  margin: 2.5rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.article-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
  border-radius: 16px 16px 0 0;
}

.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  border: none;
}

/* Tables */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.article-content table th {
  background: rgba(96, 165, 250, 0.15);
  color: #ffffff;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(96, 165, 250, 0.3);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.article-content table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

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

.article-content table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.article-content table tr:hover {
  background: rgba(96, 165, 250, 0.05);
}

/* Horizontal Rules */
.article-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  margin: 3rem 0;
}

/* Tags Section */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-tag {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.625rem 1.25rem;
  border-radius: 24px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.article-tag:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2) 0%, rgba(167, 139, 250, 0.2) 100%);
  color: #ffffff;
  border-color: rgba(96, 165, 250, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

/* Footer */
.article-footer {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.article-footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-footer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(96, 165, 250, 0.4);
}

.article-footer-cta i {
  transition: transform 0.3s ease;
}

.article-footer-cta:hover i {
  transform: translateX(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .article-detail-page {
    padding: 2rem 1rem 3rem;
  }

  .article-title {
    font-size: 2.5rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.9rem;
  }

  .article-content {
    font-size: 1.0625rem;
  }

  .article-content > *:first-child {
    font-size: 1.125rem;
  }

  .article-content h2 {
    font-size: 1.875rem;
    margin-top: 3rem;
  }

  .article-content h3 {
    font-size: 1.5rem;
  }

  .article-content h4 {
    font-size: 1.25rem;
  }

  .article-featured-image-wrapper {
    margin-bottom: 2.5rem;
    border-radius: 16px;
  }

  .article-back-link {
    margin-bottom: 2rem;
    padding: 0.625rem 1rem;
  }

  .article-content blockquote {
    padding: 1.5rem 1.75rem;
    font-size: 1rem;
  }

  .article-content pre {
    padding: 1.5rem;
    font-size: 0.85rem;
  }

  .article-content table {
    font-size: 0.9rem;
  }

  .article-content table th,
  .article-content table td {
    padding: 0.875rem 1rem;
  }
}

@media (max-width: 480px) {
  .article-title {
    font-size: 2rem;
  }

  .article-content h2 {
    font-size: 1.625rem;
  }

  .article-content h3 {
    font-size: 1.375rem;
  }
}

