/* Conteneur principal */
.container {
  margin: 2rem 0;
}

/* Résumé du jour */
.summary {
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--ifm-color-primary-lightest) 0%, var(--ifm-color-primary-lighter) 100%);
  border-left: 4px solid var(--ifm-color-primary);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ifm-color-primary-darker);
}

.summary p {
  margin: 0;
}

/* Section par catégorie */
.categorySection {
  margin-bottom: 3rem;
}

.categoryTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--ifm-background-surface-color);
  border: 2px solid var(--ifm-color-primary-lighter);
  border-radius: 8px;
  font-size: 1.5rem;
  color: var(--ifm-color-content);
  transition: all 0.2s ease;
}

.categoryTitle:hover {
  background-color: var(--ifm-color-primary-lightest);
  border-color: var(--ifm-color-primary);
}

.categoryTitleContent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.expandIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  color: var(--ifm-color-primary);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.categoryCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.75rem;
  background-color: var(--ifm-color-primary);
  color: white;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
}

/* Liste des flux */
.feedList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Article individuel */
.feedItem {
  padding: 1.5rem;
  background-color: var(--ifm-background-surface-color);
  border: 1px solid var(--ifm-color-emphasis-200);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.feedItem:hover {
  border-color: var(--ifm-color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* En-tête de l'article */
.feedHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.source {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--ifm-color-emphasis-100);
  color: var(--ifm-color-content-secondary);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.date {
  color: var(--ifm-color-content-secondary);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* Titre de l'article */
.title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.title a {
  color: var(--ifm-color-content);
  text-decoration: none;
  transition: color 0.2s ease;
}

.title a:hover {
  color: var(--ifm-color-primary);
  text-decoration: underline;
}

/* État de chargement */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--ifm-color-content-secondary);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--ifm-color-emphasis-300);
  border-top-color: var(--ifm-color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* État d'erreur */
.error {
  padding: 2rem;
  background-color: var(--ifm-color-danger-contrast-background);
  border: 1px solid var(--ifm-color-danger);
  border-radius: 8px;
  color: var(--ifm-color-danger-darker);
  text-align: center;
}

/* Aucun article */
.noArticles {
  padding: 3rem 2rem;
  background-color: var(--ifm-background-surface-color);
  border: 2px dashed var(--ifm-color-emphasis-300);
  border-radius: 8px;
  text-align: center;
  color: var(--ifm-color-content-secondary);
}

.noArticles p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .categoryTitle {
    font-size: 1.4rem;
  }

  .feedItem {
    padding: 1rem;
  }

  .title {
    font-size: 1rem;
  }

  .summary {
    font-size: 1rem;
  }
}
