/* ===============================================
   ARTICLE DETAIL PAGE STYLES
   Стили для страницы полной статьи
   =============================================== */

/* ========== PAGE BACKGROUND ========== */
body.article-detail-page {
  background-image: url('../images/desktop/articles/ocean.avif');
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Отключаем параллакс на мобильных */
@media (max-width: 768px) {
  body.article-detail-page {
    background-attachment: scroll;
  }
}

/* ========== ARTICLE DETAIL SECTION ========== */
.article-detail {
  padding: 60px 0 80px;
  position: relative;
}

.article-detail .container {
  position: relative;
  z-index: 2;
}

.article-detail__container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 50px;
  display: flex;
  flex-direction: column;
}

/* ========== TITLE ========== */
.article-detail__title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
  order: 1;
}

/* ========== META INFO ========== */
.article-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 2rem;
  order: 2;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.article-detail__date {
  text-align: right;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ========== CONTENT ========== */
.article-detail__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.8;
  color: var(--color-light);
  font-size: 1.1rem;
  order: 3;
}

.article-detail__content p {
  text-align: justify;
  margin-bottom: 1.5rem;
  text-indent: 1.5em;
}

.article-detail__content p:last-child {
  margin-bottom: 0;
}

.article-detail__content strong {
  font-weight: 600;
  color: var(--color-light);
}

.article-detail__content em,
.article-detail__content i {
  font-style: italic;
  color: var(--color-light);
}

.article-detail__content ul,
.article-detail__content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  color: var(--color-light);
}

.article-detail__content li {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.article-detail__content h2,
.article-detail__content h3,
.article-detail__content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 600;
  text-indent: 0;
}

.article-detail__content h2 {
  font-size: 1.75rem;
}

.article-detail__content h3 {
  font-size: 1.4rem;
}

.article-detail__content h4 {
  font-size: 1.2rem;
}

.article-detail__content blockquote {
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: rgba(0, 0, 0, 0.3);
  font-style: italic;
  color: var(--color-light);
}

/* ========== FOOTER ========== */
.article-detail__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  order: 4;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========== BACK LINK ========== */
.article-detail__back {
  display: inline-block;
  padding: 12px 24px;
  background: white;
  color: var(--color-primary);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  overflow: hidden;
  background-image: 
    linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 0%),
    linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary) 0%);
  background-size: 0% 100%, 0% 100%;
  background-position: 0% 0%, 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.6s ease;
}

.article-detail__back:hover {
  background-size: 100% 100%, 100% 100%;
  color: white;
  transition: background-size 0.6s ease, color 0.6s 0.25s ease;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  body.article-detail-page {
    background-attachment: scroll;
  }

  .article-detail__container {
    padding: 40px;
  }

  .article-detail__title {
    font-size: 2rem;
  }

  .article-detail__content {
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .article-detail {
    padding: 40px 0 60px;
  }

  .article-detail__container {
    padding: 24px;
  }

  .article-detail__title {
    font-size: 1.5rem;
  }

  .article-detail__content {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .article-detail__content h2 {
    font-size: 1.3rem;
  }

  .article-detail__content h3 {
    font-size: 1.1rem;
  }

  .article-detail__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .article-detail__back {
    align-self: stretch;
    text-align: center;
  }
}
