/* ===================================
   Dokumenty - Layout pro dvě sekce vedle sebe
   
   Stínování konzistentní s index.html:
   - .document-list-detailed a .form-card používají var(--shadow-md)
   - Při hover: var(--shadow-lg) + translateY(-2px)
   - Zaoblení: var(--radius-lg)
   =================================== */

.documents-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

/* Mobilní režim - pod sebe */
@media (max-width: 968px) {
  .documents-layout {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

/* ===================================
   Levá sekce - Seznam dokumentů
   =================================== */

.documents-section .section-title {
  margin-bottom: var(--spacing-xl);
}

.document-list-detailed {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.document-list-detailed:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.doc-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: white;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
  cursor: pointer;
}

.doc-item:first-child {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.doc-item:last-child {
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  border-bottom: none;
}

.doc-item:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.doc-item:nth-child(odd) {
  background: #fafafa;
}

.doc-item:nth-child(odd):hover {
  background: var(--bg-secondary);
}

.doc-icon-wrapper {
  position: relative;
  flex-shrink: 0;
}

.doc-icon-large {
  color: var(--text-light);
}

.doc-type {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-light);
  background: white;
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.doc-details {
  flex: 1;
}

.doc-title-large {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
  transition: color var(--transition-base);
}

.doc-item:hover .doc-title-large {
  color: var(--accent-light);
}

.doc-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

/* ===================================
   Pravá sekce - Formulře
   =================================== */

.forms-section .section-title {
  margin-bottom: var(--spacing-xl);
}

.form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.form-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.form-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.form-icon {
  color: var(--accent);
}

.form-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
}

.form-description {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.form-links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.form-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-base);
}

.form-link svg {
  width: 16px;
  height: 16px;
}

.form-link-doc {
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
}

.form-link-doc:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.2);
}

.form-link-pdf {
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.form-link-pdf:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.2);
}

.last-update {
  text-align: center;
  color: var(--text-light);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: var(--spacing-lg);
}


/* ===================================
   Animace při načítání stránky
   =================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Levá sekce – dokumenty */
.documents-section {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

/* Seznam dokumentů jako celek */
.document-list-detailed {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.2s forwards;
}

/* Každý dokument v seznamu postupně */
.doc-item {
  opacity: 0;
  animation: fadeInUp 0.45s ease-out forwards;
}

.doc-item:nth-child(1)  { animation-delay: 0.25s; }
.doc-item:nth-child(2)  { animation-delay: 0.32s; }
.doc-item:nth-child(3)  { animation-delay: 0.39s; }
.doc-item:nth-child(4)  { animation-delay: 0.46s; }
.doc-item:nth-child(5)  { animation-delay: 0.53s; }
.doc-item:nth-child(6)  { animation-delay: 0.60s; }
.doc-item:nth-child(7)  { animation-delay: 0.67s; }
.doc-item:nth-child(8)  { animation-delay: 0.74s; }

/* Pravá sekce – formuláře */
.forms-section {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

/* Každá form-card postupně */
.forms-section .form-card:nth-child(1) {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.3s forwards;
}

.forms-section .form-card:nth-child(2) {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.45s forwards;
}

.forms-section .form-card:nth-child(3) {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.6s forwards;
}

/* ===================================
   Mobilní­ optimalizace
   =================================== */

@media (max-width: 768px) {
  .doc-item {
    padding: var(--spacing-sm);
  }
  
  .doc-icon-large {
    width: 28px;
    height: 28px;
  }
  
  .doc-title-large {
    font-size: 0.95rem;
  }
  
  .doc-description {
    font-size: 0.8rem;
  }
  
  .form-card {
    padding: var(--spacing-lg);
    border-radius: 0; /* Odstranění zaoblení pro full-width efekt */
    margin-bottom: 0;
  }
  
  .document-list-detailed {
    border-radius: 0; /* Odstranění zaoblení pro full-width efekt na mobilu */
  }
  
  .form-icon-wrapper {
    width: 64px;
    height: 64px;
  }
  
  .form-icon {
    width: 36px;
    height: 36px;
  }
  
  .form-title {
    font-size: 1rem;
  }
  
  .form-description {
    font-size: 0.85rem;
  }
}