/* Общие стили как в index.html */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: Arial, sans-serif;
  background: white; /* Изменено на белый */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Навигация */
nav {
  width: 100%;
  background: #000000;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.3s;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

nav a.active {
  background: rgba(255, 255, 255, 0.9);
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #4a5cd8 0%, #663a99 100%);
}

.container {
  max-width: 1200px;
  width: 100%;
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

h1 { 
  font-size: 2em; 
  color: #222; 
  text-align: center;
  margin: 15px 0;
}

.subtitle { 
  font-size: 0.9em; 
  color: #777; 
  margin-bottom: 15px; 
  text-align: center;
}

/* Стили для страницы участниц */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

.profile-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 1px solid #eee;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.profile-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: opacity 0.3s ease;
  background: linear-gradient(90deg, #f5f5f5 25%, #e5e5e5 50%, #f5f5f5 75%);
  background-size: 200% 100%;
}

.profile-card img.loading {
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.profile-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
  color: #222;
  font-weight: bold;
}

.profile-details {
  font-size: 14px;
  color: #555;
  text-align: left;
  margin-top: 8px;
  display: none;
}

.profile-card.expanded .profile-details {
  display: block;
}

.profile-details p {
  margin: 5px 0;
  font-size: 14px;
  line-height: 1.4;
}

.country-tag {
  font-size: 0.7em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-top: 5px;
  display: inline-block;
  font-weight: bold;
}

.korea-tag { 
  background: #002080; 
  color: white; 
}

.japan-tag { 
  background: #a6005a; 
  color: white; 
}

.watermark { 
  margin-top: 20px; 
  font-size: 0.9em; 
  opacity: 0.4; 
  text-align: center;
  color: #666;
}

/* Планшеты */
@media (max-width: 768px) {
  .container {
    padding: 15px;
    margin: 15px;
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  .header-img {
    height: 150px;
  }
  
  .participants-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 15px;
  }
  
  .profile-card {
    padding: 12px;
  }
}

/* Мобильные телефоны */
@media (max-width: 480px) {
  nav {
    gap: 10px;
    padding: 8px;
  }
  
  nav a {
    font-size: 0.85em;
    padding: 6px 10px;
  }
  
  .container {
    padding: 12px;
    margin: 10px;
  }
  
  h1 {
    font-size: 1.6em;
    margin: 10px 0;
  }
  
  .header-img {
    height: 120px;
  }
  
  .participants-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    padding: 10px;
  }
  
  .profile-card {
    padding: 10px;
    border-radius: 10px;
  }
  
  .profile-card:hover {
    transform: none;
  }
  
  .profile-card:active {
    transform: scale(0.98);
  }
  
  .profile-card img {
    height: 140px;
    border-radius: 8px;
    margin-bottom: 8px;
  }
  
  .profile-card h3 {
    font-size: 14px;
    margin: 8px 0 5px;
  }
  
  .country-tag {
    font-size: 0.6em;
    padding: 2px 6px;
  }
}