/* ========================================
   ARTICLE PAGE STYLES
   Mobile-First Responsive Design with BEM Methodology
   ======================================== */

/* ========================================
   ARTICLE HEADER
   ======================================== */
.article-header {
  background-color: rgb(255, 222, 89);
  padding: 60px 20px;
  text-align: center;
}

.article-header__container {
  max-width: 840px;
  margin: 0 auto;
}

.article-header__title {
  font-size: 28px;
  font-weight: 700;
  color: rgb(238, 15, 111);
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-header__subtitle {
  font-size: 16px;
  color: rgb(238, 15, 111);
  margin-bottom: 30px;
  line-height: 1.4;
}

.article-header__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: rgba(238, 15, 111, 0.8);
}

.article-header__meta-item strong {
  color: rgb(238, 15, 111);
}

/* ========================================
   ARTICLE CONTENT
   ======================================== */
.article-content {
  background-color: #fff;
  padding: 60px 20px;
}

.article-content__container {
  max-width: 800px;
  margin: 0 auto;
}

.article-content__body {
  color: #4e4d4f;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Content Typography */
.article-content__body p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.article-content__body br {
  line-height: 1.7;
  display: block;
  margin-bottom: 8px;
  content: " ";
}

.article-content__body h1,
.article-content__body h2,
.article-content__body h3,
.article-content__body h4,
.article-content__body h5,
.article-content__body h6 {
  margin: 24px 0 16px 0;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.3;
}

.article-content__body h1 { font-size: 28px; }
.article-content__body h2 { font-size: 24px; }
.article-content__body h3 { font-size: 20px; }
.article-content__body h4 { font-size: 18px; }
.article-content__body h5 { font-size: 16px; }
.article-content__body h6 { font-size: 14px; }

.article-content__body strong {
  font-weight: 700;
  color: #2c3e50;
}

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

.article-content__body ul,
.article-content__body ol {
  margin: 16px 0;
  padding-left: 24px;
  list-style: revert !important;
}

.article-content__body ul {
  list-style-type: disc !important;
}

.article-content__body ol {
  list-style-type: decimal !important;
}

.article-content__body li {
  margin-bottom: 8px;
  line-height: 1.6;
  display: list-item !important;
}

.article-content__body blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  background: #f8f9fa;
  border-left: 4px solid #ee0f6f;
  font-style: italic;
}

.article-content__body code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.article-content__body pre {
  background: #f4f4f4;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  margin: 16px 0;
}

.article-content__body a {
  color: #ee0f6f;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.article-content__body a:hover {
  color: #c00d5a;
}

/* Article Footer */
.article-content__footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid #eee;
}

.article-content__updated {
  color: #7a7a7a;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 30px;
}

.article-content__back-button {
  display: inline-block;
  background: #ee0f6f;
  color: #fff;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.article-content__back-button:hover {
  background: #c00d5a;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(238, 15, 111, 0.3);
}

/* ========================================
   RELATED ARTICLES
   ======================================== */
.related-articles {
  background-color: #f8f9fa;
  padding: 60px 20px;
}

.related-articles__container {
  max-width: 1000px;
  margin: 0 auto;
}

.related-articles__title {
  text-align: center;
  color: #4e4d4f;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 40px;
  line-height: 1.2;
}

.related-articles__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Article Card */
.article-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid #ee0f6f;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.3;
}

.article-card__link {
  color: #4e4d4f;
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-card__link:hover {
  color: #ee0f6f;
}

.article-card__description {
  color: #7a7a7a;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.article-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.article-card__category {
  background: #ee0f6f;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.article-card__date {
  font-style: italic;
}

/* ========================================
   TABLET STYLES (768px and up)
   ======================================== */
@media (min-width: 768px) {
  .article-header {
    padding: 30px 40px;
  }

  .article-header__title {
    font-size: 20px;
    color: rgb(238, 15, 111);
  }

  .article-header__subtitle {
    font-size: 20px;
    color: rgb(238, 15, 111);
  }

  .article-header__meta {
    gap: 20px;
    font-size: 15px;
    color: rgba(238, 15, 111, 0.8);
  }

  .article-content {
    padding: 80px 40px;
  }

  .article-content__body h1 { font-size: 32px; }
  .article-content__body h2 { font-size: 28px; }
  .article-content__body h3 { font-size: 24px; }
  .article-content__body h4 { font-size: 20px; }
  .article-content__body h5 { font-size: 18px; }
  .article-content__body h6 { font-size: 16px; }

  .related-articles {
    padding: 80px 40px;
  }

  .related-articles__title {
    font-size: 32px;
  }

  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card__title {
    font-size: 20px;
  }
}

/* ========================================
   DESKTOP STYLES (1024px and up)
   ======================================== */
@media (min-width: 1024px) {
  .related-articles__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
