/* ===================================
   STYLY PRO BAREVNÉ RIBBONY (PROUZKY)
   Přidejte tento kód do souboru css/styles.css
   =================================== */

/* Základní ribbon - červený (DANGER) */
.news-ribbon,
.news-ribbon-danger {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 0.375rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Oranžový ribbon - varování (WARNING) */
.news-ribbon-warning {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
  color: white;
  padding: 0.375rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(253, 126, 20, 0.3);
}

/* Zelený ribbon - užitečné (SUCCESS) */
.news-ribbon-success {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
  padding: 0.375rem 2.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Modrý ribbon - informace (DEFAULT) */
.news-ribbon-default {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 0.375rem 3.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Ujistěte se, že news-card má position: relative */
.news-card {
  position: relative;
  overflow: hidden;
}

/* Obal pro obrázek v článku */
.news-image-wrapper {
  margin: 1.5rem 0;
  overflow: hidden;
  border-radius: 8px;
  background: #f8f9fa;
  /* Fixní výška pro konzistenci mezi články */
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Obrázek článku - zobrazí se celý bez ořezu */
.news-image {
  width: 100%;
  height: auto;
  display: block;
  /* Zachová poměr stran, zobrazí celý obrázek */
  object-fit: contain;
  /* Maximální výška pro konzistenci */
  max-height: 400px;
}

/* Responzivní úpravy pro mobilní zařízení */
@media (max-width: 768px) {
  .news-image-wrapper {
    margin: 1rem 0;
    min-height: 150px;
  }
  
  .news-image {
    max-height: 300px;
  }
}

/* Pro velmi malé obrázky - zarovnání na střed */
@media (min-width: 769px) {
  .news-image-wrapper {
    min-height: 250px;
  }
}

/* ===================================
   Animace při načítání stránky
   =================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nadpis sekce */
.section .section-title {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.05s forwards;
}

/* Každá news-card postupně */
.news-card {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.news-card:nth-child(1)  { animation-delay: 0.1s; }
.news-card:nth-child(2)  { animation-delay: 0.2s; }
.news-card:nth-child(3)  { animation-delay: 0.3s; }
.news-card:nth-child(4)  { animation-delay: 0.4s; }
.news-card:nth-child(5)  { animation-delay: 0.5s; }
.news-card:nth-child(6)  { animation-delay: 0.6s; }
.news-card:nth-child(7)  { animation-delay: 0.7s; }
.news-card:nth-child(8)  { animation-delay: 0.8s; }
.news-card:nth-child(9)  { animation-delay: 0.9s; }
.news-card:nth-child(10) { animation-delay: 1.0s; }

/* Odkazy v aktualitách */
.aktuality_link {
  color: #fd7e14;
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(120deg, rgba(253, 126, 20, 0.15), rgba(232, 89, 12, 0.15));
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
  padding: 0.55rem 1.25rem;
}

.aktuality_link:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #fd7e14 0%, #e8590c 100%);
  box-shadow: 0 2px 6px rgba(253, 126, 20, 0.3);
}