/* ======================================
   Single Article Page - Enhanced Design
   Professional Blog Layout
====================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', sans-serif;
}

/* ===== Article Hero ===== */
.article-hero {
  position: relative;
  background: linear-gradient(135deg, #062141 0%, #0a4d4d 100%);
  padding: 140px 20px 80px;
  color: white;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.article-hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 15px;
  opacity: 0.9;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 0.7;
}

.breadcrumb i {
  font-size: 10px;
}

/* Article Meta */
.article-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 25px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-category {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.badge-level {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
}

.hero-meta-item i {
  font-size: 16px;
}

/* Article Title */
.article-hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 25px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

/* Article Excerpt */
.article-hero-excerpt {
  font-size: 20px;
  line-height: 1.7;
  opacity: 0.92;
  max-width: 750px;
  margin-bottom: 30px;
}

/* Author Info */
.article-author {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #062141;
  font-weight: 800;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.author-date {
  font-size: 14px;
  opacity: 0.85;
}

/* ===== Article Content ===== */
.article-section {
  padding: 80px 20px;
  background: #ffffff;
}

.article-container {
  max-width: 850px;
  margin: 0 auto;
}

/* Article Body */
.article-content {
  background: white;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(6, 33, 65, 0.06);
}

/* Typography */
.article-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: #062141;
  margin: 50px 0 25px;
  line-height: 1.4;
  position: relative;
  padding-bottom: 15px;
}

.article-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(to left, #062141, #0a4d4d);
  border-radius: 2px;
}

.article-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #062141;
  margin: 35px 0 20px;
  line-height: 1.5;
}

.article-content p {
  font-size: 18px;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 25px;
  text-align: justify;
}

.article-content strong {
  color: #062141;
  font-weight: 700;
}

/* Lists */
.article-content ul,
.article-content ol {
  margin: 25px 0 25px 30px;
  padding-right: 0;
}

.article-content li {
  font-size: 18px;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 15px;
  padding-right: 15px;
  position: relative;
}

.article-content ul li::before {
  content: '◄';
  position: absolute;
  right: 0;
  color: #0a4d4d;
  font-weight: 800;
}

/* Blockquote */
.article-content blockquote {
  margin: 35px 0;
  padding: 25px 30px;
  background: linear-gradient(135deg, rgba(6, 33, 65, 0.04), rgba(10, 77, 77, 0.03));
  border-right: 5px solid #0a4d4d;
  border-radius: 12px;
  font-size: 19px;
  font-style: italic;
  color: #1f2937;
  line-height: 1.8;
}

.article-content blockquote::before {
  content: '"';
  font-size: 48px;
  color: #0a4d4d;
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 0;
  margin-left: 10px;
}

/* Code */
.article-content code {
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: #0a4d4d;
  border: 1px solid rgba(6, 33, 65, 0.1);
}

.article-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 25px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid rgba(6, 33, 65, 0.2);
}

.article-content pre code {
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 0;
}

/* Images */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 35px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(6, 33, 65, 0.06);
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(5, 150, 105, 0.05));
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 25px 30px;
  margin: 35px 0;
}

.highlight-box h3 {
  color: #059669;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
}

.highlight-box p {
  margin-bottom: 15px;
}

.highlight-box p:last-child {
  margin-bottom: 0;
}

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(220, 38, 38, 0.05));
  border: 2px solid rgba(239, 68, 68, 0.2);
  border-radius: 16px;
  padding: 25px 30px;
  margin: 35px 0;
}

.warning-box h3 {
  color: #dc2626;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
}

/* References Section */
.references-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 3px solid #f1f5f9;
}

.references-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 25px;
}

.references-section h2::after {
  display: none;
}

.references-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.references-section li {
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
  margin-bottom: 18px;
  padding-right: 25px;
  position: relative;
}

.references-section li::before {
  content: '•';
  position: absolute;
  right: 0;
  color: #0a4d4d;
  font-weight: 800;
  font-size: 20px;
}

/* Share Section */
.article-share {
  margin-top: 50px;
  padding: 35px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 20px;
  border: 2px solid rgba(6, 33, 65, 0.08);
  text-align: center;
}

.article-share h3 {
  font-size: 22px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 20px;
}

.share-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: white;
  font-size: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.share-btn.twitter {
  background: #1DA1F2;
}

.share-btn.facebook {
  background: #1877F2;
}

.share-btn.linkedin {
  background: #0A66C2;
}

.share-btn.whatsapp {
  background: #25D366;
}

/* Related Articles */
.related-articles {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 3px solid #f1f5f9;
}

.related-articles h2 {
  font-size: 32px;
  font-weight: 800;
  color: #062141;
  margin-bottom: 35px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.related-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(6, 33, 65, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(6, 33, 65, 0.15);
}

.related-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-card-body {
  padding: 20px;
}

.related-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #062141;
  margin: 0;
  line-height: 1.5;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .article-hero {
    padding: 110px 20px 60px;
  }

  .article-hero-title {
    font-size: 34px;
  }

  .article-hero-excerpt {
    font-size: 18px;
  }

  .article-content {
    padding: 35px 25px;
  }

  .article-content h2 {
    font-size: 26px;
  }

  .article-content h3 {
    font-size: 22px;
  }

  .article-content p,
  .article-content li {
    font-size: 17px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .article-hero-title {
    font-size: 28px;
  }

  .article-hero-excerpt {
    font-size: 16px;
  }

  .article-content {
    padding: 25px 20px;
  }

  .breadcrumb {
    font-size: 13px;
  }

  .article-hero-meta {
    gap: 12px;
  }
}