/* ArticlePage.css - For individual article pages */
@import './variables.css';
@import './utilities.css';

/* Global font for article pages */
.news-page-article,
.actualite-page-header-wrapper {
  font-family: var(--font-primary);
}

/* Back Navigation */
.back-to-news {
  display: inline-block;
  color: var(--blue);
  text-decoration: none;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: var(--light-blue);
}

.back-to-news:hover {
  background-color: var(--blue);
  color: var(--white);
  transform: translateX(-5px);
}

/* Header */
.actualite-page-header-wrapper {
  background: var(--white);
  margin-top: 10%;
  border-bottom: 2px solid var(--light-blue);
}

.actualite-page-header {
  text-align: center;
  padding: 4rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

.actualite-page-header h2 {
  border-bottom: 3px solid var(--light-blue);
  color: var(--blue);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  padding-bottom: 0.5rem;
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
}

/* Article Container */
.news-page-article {
  max-width: 900px;
  margin: 4rem auto;
  padding: 3rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: justify;
}

/* Article Content */
.news-page-article-content {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--black);
  padding: 1rem;
}

/* Headings */
.news-page-article-content h1 {
  font-size: 2rem;
  color: var(--blue);
  font-weight: 800;
  line-height: 1.2;
  border-bottom: 3px solid var(--light-blue);
  padding-bottom: 0.5rem;
}

.news-page-article-content h2 {
  font-size: 1.5rem;
  color: var(--blue);
  margin: 2.5rem 0 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-page-article-content h3 {
  font-size: 1rem;
  color: var(--blue);
  margin: 2rem 0 1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Paragraphs */
.news-page-article-content p {
  line-height: 1.8;
  color: var(--black);
}

/* Lists */
.news-page-article-content ul {
  margin: 1.5rem 0;
  padding-left: 2.5rem;
  list-style-type: none;
}

.news-page-article-content ol {
  margin: 1.5rem 0;
  padding-left: 2.5rem;
}

.news-page-article-content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  position: relative;
}

.news-page-article-content ul li::before {
  content: "•";
  color: var(--blue);
  font-weight: bold;
  position: absolute;
  left: -1.5rem;
}

/* Blockquote */
.news-page-article-content blockquote {
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--coral);
  background-color: var(--light-blue);
  font-style: italic;
  position: relative;
  border-radius: 0 8px 8px 0;
}

.news-page-article-content blockquote::before {
  content: '"';
  position: absolute;
  top: 0;
  left: 0.5rem;
  font-size: 3.5rem;
  color: var(--coral);
  opacity: 0.2;
}

/* Links */
.news-page-article-content a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
  padding-bottom: 2px;
}

.news-page-article-content a:hover {
  border-bottom-color: var(--blue);
  background-color: var(--light-blue);
}

/* Images */
.news-page-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Code blocks */
.news-page-article-content pre {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid #e0e0e0;
}

.news-page-article-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9em;
}

/* Special elements */
.news-page-article-content strong {
  color: var(--blue);
  font-weight: 600;
}

/* Article metadata */
.article-metadata {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-blue);
  color: #666;
  font-family: var(--font-primary);
  font-size: 1rem;
  flex-wrap: wrap;
}

.article-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.article-category {
  display: inline-flex;
  align-items: center;
  background-color: var(--light-blue);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: var(--blue);
  font-family: var(--font-primary);
  font-weight: 500;
  gap: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.article-category:hover {
  background-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--blue);
  color: var(--white);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--black);
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .actualite-page-header h2 {
    font-size: 1.75rem;
    padding: 0 1rem;
    line-height: 1.3;
  }

  .news-page-article {
    margin: 2rem 1rem;
    padding: 1.5rem;
  }

  .news-page-article-content {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .news-page-article-content h1 {
    font-size: 2rem;
  }

  .news-page-article-content h2 {
    font-size: 1.75rem;
  }

  .news-page-article-content h3 {
    font-size: 1.35rem;
  }

  .news-page-article-content blockquote {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  .article-metadata {
    flex-direction: column;
    gap: 1rem;
  }

  .article-categories {
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .article-category {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .actualite-page-header h2 {
    font-size: 1.5rem;
    padding: 0 0.5rem;
    line-height: 1.4;
  }
  
  .actualite-page-header {
    padding: 2rem 0;
  }
}
