/* Article Detail Page Styles */
.article-detail-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  color: #fff;
}

.article-detail-hero {
  position: relative;
  width: 100%;
  height: 50vh;
  min-height: 300px;
  max-height: 500px;
  overflow: hidden;
}

.article-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, 
    rgba(10, 10, 10, 0.3) 0%, 
    rgba(10, 10, 10, 0.6) 50%,
    rgba(10, 10, 10, 1) 100%
  );
}

.article-detail-content {
  position: relative;
  max-width: 800px;
  margin: -100px auto 0;
  padding: 0 20px 60px;
  z-index: 10;
}

.article-detail-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.article-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 50px;
  font-size: 14px;
  color: #4ade80;
  margin-bottom: 24px;
}

.article-detail-card h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-detail-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.article-detail-body p {
  margin-bottom: 1.5em;
}

.article-detail-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #fff;
}

.article-detail-body ul {
  margin: 1em 0 1.5em 1.5em;
  list-style: none;
}

.article-detail-body ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75em;
}

.article-detail-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
}

.article-detail-body strong {
  color: #4ade80;
  font-weight: 600;
}

.article-detail-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-nav-home,
.article-nav-articles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.article-nav-home {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.article-nav-home:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.article-nav-articles {
  background: #4ade80;
  border: 1px solid #4ade80;
  color: #000;
}

.article-nav-articles:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

/* Related Articles */
.related-articles {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.related-articles > h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #fff;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.related-article-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.related-article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.related-body {
  padding: 20px;
}

.related-body h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .article-detail-hero {
    height: 40vh;
    min-height: 250px;
  }
  
  .article-detail-content {
    margin-top: -60px;
    padding: 0 16px 40px;
  }
  
  .article-detail-card {
    padding: 24px;
    border-radius: 16px;
  }
  
  .article-detail-body {
    font-size: 1rem;
  }
  
  .article-detail-body h3 {
    font-size: 1.25rem;
  }
  
  .article-detail-nav {
    flex-direction: column;
  }
  
  .article-nav-home,
  .article-nav-articles {
    justify-content: center;
    width: 100%;
  }
  
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Language Toggle for article pages */
.lang-toggle-article {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 4px;
}

.lang-toggle-article button {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.lang-toggle-article button.active {
  background: #4ade80;
  color: #000;
}

.lang-toggle-article button:hover:not(.active) {
  color: #fff;
}
