
:root {
  --background: #ffffff;
  --foreground: #1a1a1a;
  --primary: #0f172a;
  --secondary: #f1f5f9;
  --accent: #3b82f6;
  --muted: #64748b;
  --border: #e2e8f0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(to bottom, #f8fafc, #ffffff);
  color: var(--foreground);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

/* Page Header */
.page-header {
  text-align: center;
  margin: 3rem 0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.page-header p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Team Member Card */
.member-card {
  background-color: var(--background);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
  text-decoration: none;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.member-photo {
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* Square aspect ratio */
  position: relative;
  overflow: hidden;
}

.member-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.member-card:hover .member-photo img {
  transform: scale(1.05);
}

.member-info {
  padding: 1rem;
}

.member-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.member-role {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Member Detail */
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link svg {
  margin-right: 0.5rem;
}

.back-link:hover {
  color: var(--accent);
}

.member-detail {
  background-color: var(--background);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-width: 64rem;
  margin: 0 auto;
}

.member-detail-inner {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .member-detail-inner {
    flex-direction: row;
  }
}

.member-detail-photo {
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .member-detail-photo {
    width: 33.333%;
  }
  
  .member-detail-photo img {
    height: 100%;
    object-fit: cover;
  }
}

.member-detail-photo img {
  width: 100%;
  display: block;
}

.member-detail-content {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .member-detail-content {
    width: 66.667%;
    padding: 2rem;
  }
}

.member-detail-name {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.member-detail-role {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.member-detail-section {
  margin-bottom: 1.5rem;
}

.member-detail-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.member-detail-bio {
  color: var(--foreground);
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #f1f5f9;
  color: var(--muted);
  transition: all 0.2s;
}

.social-link:hover {
  background-color: #dbeafe;
  color: var(--accent);
}
