* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header με navigation */
.webring-header {
  background: white;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.webring-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
}

.webring-logo svg {
  width: 32px;
  height: 32px;
}

/* Navigation Controls */
.webring-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-btn {
  background: white;
  border: 2px solid #e0e0e0;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
}

.nav-btn:hover:not(:disabled) {
  background: #667eea;
  border-color: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nav-btn.random {
  background: #ff6b35;
  border-color: #ff6b35;
  color: white;
}

.nav-btn.random:hover {
  background: #e5562f;
  border-color: #e5562f;
}

.nav-btn.home {
  background: #764ba2;
  border-color: #764ba2;
  color: white;
}

.nav-btn.home:hover {
  background: #5c3a7e;
  border-color: #5c3a7e;
}

/* Member Info */
.member-info-bar {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 1rem;
}

.current-member {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

.member-counter {
  color: #666;
  font-size: 0.9rem;
}

.external-link {
  background: #667eea;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s;
}

.external-link:hover {
  background: #764ba2;
}

/* iFrame Container */
.iframe-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  margin: 0 1rem 1rem 1rem;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.cv-frame {
  flex: 1;
  border: none;
  width: 100%;
  min-height: 600px;
}

/* List View */
.list-view {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.member-card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.member-card h3 {
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.member-card a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
}

.member-card a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: white;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .webring-header {
    flex-direction: column;
    align-items: stretch;
  }

  .webring-nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-btn {
    flex: 1;
    justify-content: center;
    padding: 0.7rem 0.5rem;
    font-size: 0.8rem;
  }

  .iframe-container {
    margin: 0 0.5rem 0.5rem 0.5rem;
  }

  .member-info-bar {
    padding: 0.75rem 1rem;
  }
}
