/* Added Remix Icon import */
@import url("https://cdn.jsdelivr.net/npm/remixicon@4.3.0/fonts/remixicon.css");

* {
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* MAIN CONTENT STYLES */
.main-content {
  flex: 1;
  background-color: white;
  padding: 2rem 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAVIGATION */
.article-nav {
  margin-bottom: 2rem;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: orangered;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border: 2px solid orangered;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-to-blog:hover {
  background: orangered;
  color: white;
  gap: 0.75rem;
}

.back-to-blog i {
  font-size: 1.1rem;
}

/* ARTICLE STYLES */
.article {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.article-header {
  position: relative;
  margin-bottom: 2rem;
}

.article-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-content {
  padding: 2rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.article-date {
  color: #666;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-category {
  background: orangered;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.article-title {
  font-size: 2.5rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
  color: #333;
  font-weight: 600;
}

.article-excerpt {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  line-height: 1.6;
  font-style: italic;
  border-left: 4px solid orangered;
  padding-left: 1.5rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.article-body h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  color: #333;
  font-weight: 600;
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 1rem 0;
  color: #333;
  font-weight: 600;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body blockquote {
  border-left: 4px solid orangered;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
}

/* RELATED ARTICLES */
.related-articles {
  margin-top: 3rem;
}

.related-articles h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
  font-weight: 600;
}

.related-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.related-post {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.related-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-post-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-content {
  padding: 1.5rem;
}

.related-post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.related-post-date {
  color: #666;
}

.related-post-category {
  background: orangered;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
}

.related-post-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
  color: #333;
  font-weight: 600;
}

.related-post-excerpt {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loading state */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  font-size: 1.2rem;
  color: #666;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .main-content {
    padding: 1rem 0;
  }

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

  .article-content {
    padding: 1.5rem;
  }

  .article-image {
    height: 250px;
  }

  .article-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .related-posts {
    grid-template-columns: 1fr;
  }

  .back-to-blog {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

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

  .article-excerpt {
    font-size: 1.1rem;
  }

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

  .article-content {
    padding: 1rem;
  }

  .related-post-content {
    padding: 1rem;
  }
}
