/* Trust The Fungi - Feed Scroller Styles */

.ttf-feed-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.ttf-feed-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ttf-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

/* Article Cards */
.ttf-article-card {
  background: var(--color-card-bg, #f7e1d3);
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  height: 100%;
}

.ttf-article-img {
  background-size: cover;
  background-position: center;
  height: 200px;
  width: 100%;
}

.ttf-article-card > div {
  padding: 1.5rem 1.25rem;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.ttf-feed-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary, #bba6c7);
  text-decoration: none;
}

.ttf-feed-title:hover {
  text-decoration: underline;
}

.ttf-feed-excerpt {
  font-size: 1rem;
  color: var(--color-muted, #555);
  line-height: 1.6;
}

.ttf-feed-type-date {
  font-size: 0.9rem;
  color: var(--color-secondary, #7a6d80);
  margin-bottom: 0.5rem;
}

/* Video Cards */
.ttf-feed-video-player {
  background: var(--color-accent, #e7bfa7);
  border-radius: 18px;
  min-height: 340px;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Audio Cards */
.ttf-feed-audio-player {
  background: var(--color-card-bg, #f7e1d3);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Pagination */
.ttf-feed-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.ttf-feed-pagination a,
.ttf-feed-pagination span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--color-card-bg, #f7e1d3);
  color: var(--color-primary, #bba6c7);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
}

.ttf-feed-pagination a:hover {
  background: var(--color-primary, #bba6c7);
  color: #fff;
  transform: translateY(-2px);
}

.ttf-feed-pagination .current {
  background: var(--color-primary, #bba6c7);
  color: #fff;
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ttf-feed-container {
    padding: 1rem 0.5rem;
  }
  
  .ttf-article-card {
    min-height: auto;
  }
  
  .ttf-article-img {
    height: 160px;
  }
  
  .ttf-feed-video-player,
  .ttf-feed-audio-player {
    min-height: 240px;
  }
}

/* Loading animation */
.ttf-feed-loading {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--color-secondary, #7a6d80);
}

.ttf-feed-loading::after {
  content: '...';
  animation: ttf-dots 1.5s steps(4, end) infinite;
}

@keyframes ttf-dots {
  0%, 20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%, 100% {
    content: '...';
  }
}
