/* ===================================
   Kontakt - Layout
   =================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

@media (max-width: 968px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
}

/* ===================================
   Seznamy členů (Výbor & Kontrolní komise)
   =================================== */

.members-section .section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.members-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

.members-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.member-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-base);
}

.member-item:last-child {
  border-bottom: none;
}

.member-item:hover {
  background: var(--bg-secondary);
}

.member-icon {
  width: 40px;
  height: 40px;
  background: #e5d5b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-icon svg {
  width: 20px;
  height: 20px;
  color: var(--text-light);
}

.member-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* ===================================
   Odkazy sekce
   =================================== */

.links-section {
  margin-bottom: var(--spacing-2xl);
}

.links-section .section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.links-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-lg);
}

.links-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  max-width: 500px;
  margin: 0 auto;
}

.links-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.link-item-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
  text-align: center;
}

.link-item-description {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  text-align: center;
}

.link-item-url {
  display: block;
  color: var(--text-light);
  font-size: 0.875rem;
  text-align: center;
  transition: color var(--transition-base);
}

.link-item-url:hover {
  color: var(--accent);
  text-decoration: underline;
}


/* ===================================
   Animace při načítání stránky
   =================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Dva sloupce výboru a komise */
.contact-grid {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

/* Každá members-section zvlášť */
.members-section:nth-child(1) {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.15s forwards;
}

.members-section:nth-child(2) {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.25s forwards;
}

/* Každý člen seznamu */
.member-item {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.members-list .member-item:nth-child(1) { animation-delay: 0.2s; }
.members-list .member-item:nth-child(2) { animation-delay: 0.3s; }
.members-list .member-item:nth-child(3) { animation-delay: 0.4s; }
.members-list .member-item:nth-child(4) { animation-delay: 0.5s; }

/* Sekce odkazů */
.links-section {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

/* Links card */
.links-card {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out 0.5s forwards;
}

/* ===================================
   Mobilní optimalizace
   =================================== */

@media (max-width: 768px) {
  .member-item {
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .member-icon {
    width: 36px;
    height: 36px;
  }
  
  .member-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .member-name {
    font-size: 0.9rem;
  }
  
  .links-card {
    padding: var(--spacing-md);
  }
  
  .link-item-title {
    font-size: 0.95rem;
  }
  
  .link-item-description {
    font-size: 0.8rem;
  }
}