@import url("main.css");
/* Hero Section */
.hero-section {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeInDown 1s ease-out forwards;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 2rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.hero-category {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
}

.hero-date,
.hero-reading-time {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 93, 54, 0.8),
    rgba(10, 93, 54, 0.6)
  );
}

/* Back Button */
.back-button{
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 10;
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.3s forwards;
}

.back-button a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.back-button a:hover {
  background: var(--white);
  transform: translateX(-5px);
}

.back-button i {
  font-size: 0.7rem;
}

/* Main Container */
.blog-container {
  max-width: 1200px;
  margin: -4rem auto 0;
  padding: 0 1rem 3rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  position: relative;
  z-index: 5;
}

/* Sidebar */
.sidebar {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
  opacity: 0;
  animation: slideInLeft 1s ease-out 0.8s forwards;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-title i {
  font-size: 0.8rem;
}

.article-nav {
  list-style: none;
}

.article-nav li {
  margin-bottom: 0.5rem;
}

.article-nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--gray-medium);
  text-decoration: none;
  border-radius: 8px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.article-nav a:hover,
.article-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
  border-left-color: var(--primary);
}

/* Newsletter Signup */
.newsletter-signup {
  background: var(--gray-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.newsletter-signup h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.newsletter-signup p {
  font-size: 0.7rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 0.75rem;
  transition: var(--transition);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.newsletter-btn {
  padding: 0.75rem;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.newsletter-btn:hover {
  background: var(--primary-dark);
}

/* Main Content */
.main-content {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 3rem;
  opacity: 0;
  animation: slideInUp 1s ease-out 1s forwards;
}

/* Article Header */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-light);
}

.article-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
}

.author-details h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.25rem;
}

.author-details span {
  font-size: 0.7rem;
  color: var(--gray-medium);
}

.article-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-label {
  font-size: 0.75rem;
  color: var(--gray-medium);
  font-weight: 500;
}

.social-share {
  display: flex;
  gap: 0.5rem;
}

.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.social-btn.twitter {
  background: #1da1f2;
  color: var(--white);
}
.social-btn.facebook {
  background: #3b5998;
  color: var(--white);
}
.social-btn.instagram {
  background: #e4405f;
  color: var(--white);
}
.social-btn.linkedin {
  background: #0077b5;
  color: var(--white);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Article Content */
.article-content {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--black);
}

.article-excerpt {
  background: var(--primary-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  border-left: 4px solid var(--primary);
}

.article-excerpt p {
  font-size: 0.9rem;
  color: var(--primary-dark);
  font-weight: 500;
  margin: 0;
  font-style: italic;
}

.article-body {
  margin-top: 2rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2rem 0 1rem;
}

.article-content h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin: 1.5rem 0 1rem;
}

.article-content ul {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content strong {
  font-weight: 600;
  color: var(--black);
}

/* Highlight Box */
.highlight-box {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 500;
}

/* References */
.references {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-light);
}

.references h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
}

.references ol {
  list-style: decimal;
  margin-left: 1.5rem;
}

.references li {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.references a {
  color: var(--primary);
  text-decoration: none;
  word-break: break-all;
}

.references a:hover {
  text-decoration: underline;
}

/* Thanks Section */
.thanks-section {
  background: var(--gray-light);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 3rem;
  text-align: center;
}

.thanks-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--white);
  font-size: 1.2rem;
}

.thanks-section h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.thanks-section p {
  font-size: 0.75rem;
  color: var(--gray-medium);
  margin-bottom: 1.5rem;
}

/* Article Stats */
.article-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid #e9ecef;
  margin-top: 2rem;
}

.stats-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-medium);
}

.stats-item i {
  color: var(--primary);
}

/* Tags */
.article-tags {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.tags-label {
  font-size: 0.75rem;
  color: var(--gray-medium);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.4rem 0.8rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.tag:hover {
  background: var(--primary);
  color: var(--white);
}

/* Related Articles */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-light);
}

.related-articles h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.related-image {
  position: relative;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 15px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--white);
}

.related-content {
  padding: 1.2rem;
}

.related-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.related-content p {
  font-size: 0.75rem;
  color: var(--gray-medium);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.related-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.65rem;
  color: var(--gray-medium);
  margin-bottom: 1rem;
}

.related-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.related-meta i {
  color: var(--primary);
}

.related-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition);
}

.related-link:hover {
  gap: 0.6rem;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: -3rem;
    padding: 0 1rem 2rem;
  }

  .sidebar {
    order: 2;
    position: static;
    padding: 1.5rem;
  }

  .main-content {
    order: 1;
    padding: 2rem 1.5rem;
  }

  .back-button {
    top: 1rem;
    left: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-title {
    font-size: 1.2rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .article-actions {
    align-self: stretch;
    justify-content: space-between;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 50vh;
    min-height: 300px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .main-content {
    padding: 1.5rem 1rem;
  }

  .sidebar {
    padding: 1.5rem 1rem;
  }

  .article-title {
    font-size: 1.1rem;
  }

  .newsletter-form {
    gap: 0.5rem;
  }

  .social-share {
    gap: 0.25rem;
  }

  .social-btn {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .related-grid {
    gap: 1rem;
  }

  .related-content {
    padding: 1rem;
  }
}

/* Article Info Styles */
.article-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  color: #666;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}

.info-item span {
  flex: 1;
}
