/* Builds List Page Styles */

/* Class Hero Section */
.class-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--surface-1, #3b3c39) 0%, var(--surface-0, #2e2f2c) 100%);
  border: 2px solid var(--border-color, #474541);
  border-radius: 8px;
}

.class-hero-image {
  flex-shrink: 0;
}

.class-hero-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--link-color, #d4af37);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.class-hero-content {
  flex: 1;
}

.class-hero-content h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  color: var(--link-color, #d4af37);
}

.class-hero-content p {
  margin: 0;
  color: var(--text-secondary, #c0b8a8);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .class-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .class-hero-image img {
    width: 100px;
    height: 100px;
  }

  .class-hero-content h1 {
    font-size: 1.5rem;
  }
}

/* Class Grid */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.class-card {
  background: var(--surface-1, #3b3c39);
  border: 2px solid var(--border-color, #474541);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  border-color: var(--link-color, #d4af37);
}

.class-card img {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--border-color, #474541);
  transition: border-color 0.3s ease;
}

.class-card:hover img {
  border-color: var(--link-color, #d4af37);
}

.class-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text-color, #d5cfc5);
  font-weight: 600;
  transition: color 0.3s ease;
}

.class-card:hover h3 {
  color: var(--link-hover, #e6c158);
}

.class-card .build-count {
  font-size: 0.85rem;
  color: var(--text-secondary, #c0b8a8);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .class-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .class-card img {
    width: 60px;
    height: 60px;
  }

  .class-card h3 {
    font-size: 1rem;
  }
}

.build-class-section {
  margin-bottom: 3rem;
  padding: 1.5rem;
  background: var(--surface-1, #3b3c39);
  border: 2px solid var(--border-color, #474541);
  border-radius: 4px;
}

.build-class-section h2 {
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-color, #474541);
  padding-bottom: 0.5rem;
}

.build-class-section h2 a {
  color: var(--link-color, #d4af37);
  text-decoration: none;
  transition: color 0.2s ease;
}

.build-class-section h2 a:hover {
  color: var(--link-hover, #e6c158);
}

.build-class-section .description {
  color: var(--text-secondary, #c0b8a8);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-style: italic;
}

.build-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.build-list li {
  padding: 0.75rem 1rem;
  background: var(--surface-0, #2e2f2c);
  border: 1px solid var(--border-color, #474541);
  border-radius: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.build-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-color: var(--link-color, #d4af37);
}

.build-list li a {
  color: var(--text-color, #d5cfc5);
  text-decoration: none;
  flex: 1;
  min-width: 200px;
}

.build-list li a:hover {
  color: var(--link-hover, #e6c158);
}

.build-list li strong {
  color: var(--link-color, #d4af37);
  font-weight: 600;
}

.skill-tag,
.budget-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 3px;
  font-weight: 500;
  white-space: nowrap;
}

.skill-tag {
  background: rgba(125, 211, 192, 0.15);
  color: #7dd3c0;
  border: 1px solid rgba(125, 211, 192, 0.3);
}

.budget-tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--link-color, #d4af37);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .build-class-section {
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .build-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .build-list li a {
    width: 100%;
  }
}
