/* card.css — Business Card Stylesheet
   Demonstrates element, class, and ID selectors (HW2)
*/

/* ID selector */
#business-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid #2563eb;
  border-radius: 10px;
  padding: 2rem 2.5rem;
  max-width: 520px;
  margin-top: 2rem;
  box-shadow: 0 8px 30px rgba(37,99,235,0.1);
}

/* Element selector */
img.card-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #2563eb;
  background: #eff6ff;
  flex-shrink: 0;
  object-fit: cover;
}

/* Class selectors */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-name {
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
  border: none;
  padding: 0;
}

.card-spec {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 500;
  margin: 0;
  max-width: 100%;
}

.card-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.card-link {
  font-size: 0.88rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.card-link:hover { color: #2563eb; }

@media (max-width: 500px) {
  #business-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .card-links { align-items: center; }
}
