:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Page header (below navigation) */
.page-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow);
  margin-top: 64px; /* Account for sticky header */
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header h2 {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Legacy header support */
header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header h2 {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0.9;
}

main {
  flex: 1;
  padding: 3rem 0;
}

.loading, .error {
  text-align: center;
  padding: 3rem;
  font-size: 1.1rem;
}

.error {
  color: var(--accent-color);
}

.board-container {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.board-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.director-header {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.director-portrait {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.director-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.portrait-initials {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.director-info {
  flex: 1;
  min-width: 0;
}

.board-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.board-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.board-card.heretic::before {
  background: linear-gradient(90deg, var(--accent-color), #9b59b6);
}

.college-code {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.college-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.director-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
  line-height: 1.3;
}

.director-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.director-section:first-of-type {
  margin-top: 1rem;
  padding-top: 1rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.rationale {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

.platform-statement {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid var(--secondary-color);
  margin-top: 0.5rem;
}

.excitement-statement {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.7;
  background: #e8f5e9;
  padding: 1rem;
  border-radius: 6px;
  border-left: 3px solid #4caf50;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

.play-statement-btn {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.play-statement-btn:hover:not(:disabled) {
  background: #2980b9;
  transform: translateY(-1px);
}

.play-statement-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.heretic-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed var(--accent-color);
}

.heretic-card .college-code {
  background: var(--accent-color);
}

footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
}

footer p {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .page-header {
    margin-top: 56px;
    padding: 2rem 0;
  }
  
  .page-header h1,
  header h1 {
    font-size: 2rem;
  }

  .page-header h2,
  header h2 {
    font-size: 1.2rem;
  }

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

  .board-card {
    padding: 1.5rem;
  }

  .director-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .director-portrait {
    width: 120px;
    height: 120px;
  }

  .portrait-initials {
    font-size: 2.5rem;
  }
}
