@import url('variables.css');

/* Newsletter Styles */

/* Newsletter Card */
.newsletter-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 0.5rem;
  overflow: hidden;
}

.newsletter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.newsletter-card-img {
  height: 180px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s ease;
}

.newsletter-card:hover .newsletter-card-img {
  transform: scale(1.05);
}

.newsletter-card-placeholder {
  height: 180px;
  aspect-ratio: 16 / 9;
}

.newsletter-card .card-title a {
  transition: color 0.2s ease;
  font-weight: bold;
  color: var(--secondary-500) !important;
}

.newsletter-card .card-title a:hover {
  color: var(--primary-500) !important;
}

/* Newsletter Card Badges */
.newsletter-card .badge.bg-primary {
  background-color: var(--primary-500) !important;
  color: var(--neutral-100) !important;
}

.newsletter-card .badge.bg-secondary {
  background-color: var(--secondary-500) !important;
  color: var(--neutral-100) !important;
}

/* Newsletter Card Buttons */
.newsletter-card .btn-outline-primary {
  color: var(--primary-500);
  border-color: var(--primary-500);
}

.newsletter-card .btn-outline-primary:hover {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--neutral-100);
}

/* Search Box */
.search-box .form-control {
  border-right: none;
}

.search-box .btn {
  border-left: none;
}

.search-box .form-control:focus {
  box-shadow: none;
  border-color: var(--neutral-300);
}

/* Tag Cloud */
.tag-cloud .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--neutral-100);
  background-color: var(--primary-500)!important;
}

.tag-cloud .badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: var(--tertiary-500) !important;
}

/* Article Detail */
.article-header {
  background-color: var(--neutral-300);
}

.article-header h1 {
  font-size: 2.5rem;
  color: var(--secondary-500);
  font-family: var(--heading-font);
  line-height: 1.2;
  font-weight: 400;
}

.article-image img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--neutral-700);
}

.article-body .lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--neutral-600);
}

/* Gallery */
.gallery-image {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  height: 250px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.gallery-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Article Sources */
.article-sources {
  border-left: 4px solid var(--primary-500);
}

.article-sources a {
  color: var(--primary-500);
  transition: color 0.2s ease;
}

.article-sources a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

/* Share Buttons */
.share-buttons .btn {
  margin-bottom: 0.5rem;
}

/* Related Articles */
.related-articles {
  background-color: var(--neutral-300);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 3rem;
}

/* Pagination */
.pagination .page-link {
  color: var(--primary-500);
  border-color: var(--neutral-400);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
}

.pagination .page-link:hover {
  background-color: var(--neutral-300);
  border-color: var(--neutral-400);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .article-body {
    font-size: 1rem;
  }

  .article-body .lead {
    font-size: 1.1rem;
  }

  .newsletter-card-img {
    height: 160px;
  }

  .share-buttons .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Page Header */
.page-header {
  background-color: var(--neutral-300);
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.page-header h1 {
  font-size: 2.5rem;
  color: var(--primary-500);
  font-family: var(--heading-font);
  line-height: 1.2;
}

.page-header h1 span {
  color: var(--secondary-500);
  font-weight: 800;
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 0.5rem;
}

.breadcrumb-item a {
  color: var(--primary-500);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

/* Article Meta */
.article-meta {
  font-size: 0.95rem;
}

.article-meta span {
  margin-right: 1rem;
}

/* Article Tags */
.article-tags .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  text-decoration: none;
}

.article-tags .badge.bg-primary {
  background-color: var(--primary-500) !important;
  color: var(--neutral-100) !important;
}

/* Sidebar Widgets */
.card-header {
  font-weight: 600;
  background-color: var(--primary-500) !important;
  color: white !important;
}

/* Recent Articles Links */
.card-body a {
  color: var(--primary-500);
}

.card-body a:hover {
  color: var(--primary-600);
}

/* Loading Animation */
.newsletter-card img {
  background-color: var(--neutral-300);
}

/* Print Styles */
@media print {
  .navbar,
  .article-share,
  .related-articles,
  .breadcrumb,
  footer {
    display: none;
  }

  .article-body {
    font-size: 12pt;
    line-height: 1.6;
  }
}


.back-to-newsletter {
  background-color: var(--primary-500) !important;
  color: var(--neutral-100) !important;
}

.back-to-newsletter:hover,
.back-to-newsletter:active,
.back-to-newsletter:focus {
  background-color: var(--primary-600) !important;
  color: var(--neutral-100) !important;
}
