/**
 * Article Page Styles for Travelgram
 * 
 * Clean, readable article layout with:
 * - Typography optimized for reading
 * - Responsive design for all devices
 * - Dark mode support
 * - Social sharing buttons
 * - Related articles section
 * 
 * @author Admir Bjelic
 * @version 1.0
 */

/* Back to Blog Button (Top) */
.article-back-top {
  margin-bottom: 2rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.back-btn:hover {
  background: rgb(45 108 223 / 10%);
  border-color: var(--primary);
  transform: translateX(-2px);
}

.back-icon {
  font-size: 1rem;
  font-weight: bold;
}

.back-text {
  font-size: 0.9rem;
}

/* Article Header */
.article-header {
  margin-bottom: 3rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fade-in-up 0.6s ease-out;
}

.article-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  flex-wrap: wrap;
}

.article-category {
  background: var(--primary);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-date {
  font-weight: 500;
}

.article-read-time {
  font-weight: 500;
}

.article-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-subtitle {
  font-size: 1.3rem;
  color: #666;
  font-weight: 300;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Article Content */
.article-content {
  max-width: 800px;
  margin: 0 auto 4rem;
  animation: fade-in-up 0.6s ease-out 0.2s;
}

.article-image {
  margin-bottom: 3rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgb(0 0 0 / 10%);
}

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

.article-image:hover img {
  transform: scale(1.02);
}

.article-body {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 8%);
}

.article-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 3rem;
}

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

.article-text h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}

.article-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

.article-text blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
  font-size: 1.2rem;
  line-height: 1.6;
}

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

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

/* Article Tags */
.article-tags {
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.article-tags h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.tags-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #f8f9fa;
  color: #666;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tag:hover {
  background: var(--primary);
  color: white;
}

/* Social Sharing */
.article-sharing {
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.article-sharing h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.sharing-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.pinterest {
  background: #e60023;
  color: white;
}

.share-btn.copy {
  background: #6c757d;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}

/* Article Footer */
.article-footer {
  text-align: center;
  margin-bottom: 3rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(45 108 223 / 30%);
}

/* Responsive Design */
@media (width <= 768px) {
  .article-back-top {
    margin-bottom: 1.5rem;
  }

  .back-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

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

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

  .article-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .article-body {
    padding: 2rem;
  }

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

  .article-text h2 {
    font-size: 1.6rem;
  }

  .article-text h3 {
    font-size: 1.3rem;
  }

  .article-image img {
    height: 250px;
  }
}

@media (width <= 480px) {
  .article-back-top {
    margin-bottom: 1rem;
  }

  .back-btn {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

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

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

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

  .article-body {
    padding: 1.5rem;
  }

  .article-text {
    font-size: 0.95rem;
  }

  .article-image img {
    height: 200px;
  }

  .sharing-buttons {
    flex-direction: column;
    align-items: center;
  }

  .share-btn {
    width: 100%;
    max-width: 200px;
  }
}

/* Dark Mode Styles */
[data-theme="dark"] .back-btn {
  color: var(--primary-dark);
}

[data-theme="dark"] .back-btn:hover {
  background: rgb(74 144 226 / 10%);
  border-color: var(--primary-dark);
}

[data-theme="dark"] .article-category {
  background: var(--primary-dark);
}

[data-theme="dark"] .article-title {
  color: var(--primary-dark);
}

[data-theme="dark"] .article-subtitle {
  color: #a0a0a0;
}

[data-theme="dark"] .article-body {
  background: var(--card-bg-dark);
  box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
}

[data-theme="dark"] .article-text {
  color: var(--text-dark);
}

[data-theme="dark"] .article-text h2 {
  color: var(--primary-dark);
}

[data-theme="dark"] .article-text h3 {
  color: var(--text-dark);
}

[data-theme="dark"] .article-text blockquote {
  color: #a0a0a0;
  border-left-color: var(--primary-dark);
}

[data-theme="dark"] .article-tags {
  border-top-color: #444;
}

[data-theme="dark"] .article-tags h3 {
  color: var(--text-dark);
}

[data-theme="dark"] .tag {
  background: var(--nav-hover-dark);
  color: var(--text-dark);
}

[data-theme="dark"] .tag:hover {
  background: var(--primary-dark);
  color: white;
}

[data-theme="dark"] .article-sharing {
  border-top-color: #444;
}

[data-theme="dark"] .article-sharing h3 {
  color: var(--text-dark);
}

[data-theme="dark"] .btn-outline {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

[data-theme="dark"] .btn-outline:hover {
  background: var(--primary-dark);
  color: white;
}

/* Animation for article entrance */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
