/* Global Styles */
.page-header {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #667eea;
}

.intro {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.card h3 a {
  color: #333;
  text-decoration: none;
}

.card h3 a:hover {
  color: #667eea;
}

.oneline {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.meta {
  font-size: 0.85rem;
  color: #999;
}

/* Sections */
section {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.more {
  font-size: 0.9rem;
  color: #764ba2;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.link-group {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.link-group a {
  color: #667eea;
  text-decoration: none;
  margin: 0 0.5rem;
}

.link-group a:hover {
  text-decoration: underline;
}

/* List Page */
.list-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.list-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.list-item:hover {
  background: #f9f9f9;
}

.list-item:last-child {
  border-bottom: none;
}

.rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  min-width: 50px;
  text-align: center;
}

.item-content {
  flex: 1;
}

.item-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.item-content h3 a {
  color: #333;
  text-decoration: none;
}

.item-content h3 a:hover {
  color: #667eea;
}

/* Detail Page */
.detail {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.breadcrumb {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
}

.info-list {
  list-style: none;
  line-height: 2;
}

.info-list strong {
  color: #667eea;
}

.highlight {
  font-size: 1.1rem;
  color: #764ba2;
  font-weight: 500;
  line-height: 1.8;
  padding: 1rem;
  background: #f9f9f9;
  border-left: 4px solid #667eea;
  border-radius: 4px;
}

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

.related-card {
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.related-card:hover {
  border-color: #667eea;
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-card h4 a {
  color: #333;
  text-decoration: none;
}

.related-card h4 a:hover {
  color: #667eea;
}

.related-card p {
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  section {
    padding: 1rem;
  }

  .list-item {
    flex-direction: column;
    gap: 0.5rem;
  }

  .rank {
    min-width: auto;
    text-align: left;
  }
}