/* Civic Volunteer Opportunity Matcher Styles */
* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

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

.site-header {
  background: white;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: #2c3e50;
}

.site-nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #555;
  font-weight: 500;
}

.site-nav a:hover {
  color: #007bff;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0 2.5rem;
  text-align: center;
}

.tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.intro-text {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  opacity: 0.95;
}

.preset-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.preset-btn {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.preset-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.preset-btn.active {
  background: white;
  color: #667eea;
  font-weight: 600;
}

.matcher-section, .results-section, .tracking-section, .help-section {
  padding: 2rem 0;
}

.matcher-section {
  background: white;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 2rem;
}

.skill-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.skill-checkbox:hover {
  background: #f0f0f0;
}

.skill-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.availability-note {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  max-width: 600px;
  margin-bottom: 1.5rem;
}

.time-slot {
  background: #e9ecef;
  border: 1px solid #dee2e6;
  width: 50px;
  height: 35px;
  display: flex;
  align-items: center;
n  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.time-slot:hover {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.time-slot.available {
  background: #28a745;
  border-color: #28a745;
  color: white;
}

.impact-preference {
  margin: 1.5rem 0;
}

.impact-preference h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.pref-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pref-option {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 2px solid #e9ecef;
  transition: all 0.2s;
}

.pref-option:hover {
  border-color: #007bff;
  background: #f8f9fa;
}

.pref-option input {
  display: none;
}

.pref-option.active {
  border-color: #007bff;
  background: #e7f3ff;
}

.find-btn {
  background: #007bff;
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin: 1rem auto;
  display: block;
  font-weight: 600;
  transition: background 0.2s;
}

.find-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.results-section {
  background: #f8f9fa;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.opportunity-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

.opportunity-card h3 {
  margin-top: 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.org-name {
  color: #007bff;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
}

.description {
  font-size: 0.95rem;
  color: #555;
  margin: 0.5rem 0 1rem;
}

.opportunity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin: 1rem 0 1rem;
}

.time { background: #e9ecef; padding: 0.25rem 0.5rem; border-radius: 4px; }

.impact { padding: 0.25rem 0.5rem; border-radius: 4px; font-weight: 500; }

.impact.high { background: #fff3cd; color: #856404; }

.impact.very-high { background: #d4edda; color: #155724; }

.impact.medium { background: #cce5ff; color: #004085; }

.skills { background: #f8f9fa; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.85rem; }

.contact-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.contact-btn:hover {
  background: #5a6268;
}

.contact-info {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
}

.results-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.results-actions button {
  background: white;
  border: 1px solid #ddd;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.results-actions button:hover {
  background: #f8f9fa;
}

.tracking-section {
  background: white;
}

.impact-summary {
  display: flex;
  justify-content: space-around;
  background: #e9ecef;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

summary-item { text-align: center; }

summary-value { font-size: 2rem; font-weight: 700; color: #007bff; }

summary-label { font-size: 0.85rem; color: #666; }

#add-activity form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

#add-activity input, #add-activity select {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95rem;
}

#add-activity input, #add-activity select {
  min-width: 150px;
}

#add-activity button {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

#add-activity button:hover {
  background: #218838;
}

.activity-list {
  margin-top: 1.5rem;
}

.activity-list h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.activity-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  background: white;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 4px solid #007bff;
}

.help-section {
  background: white;
}

.help-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.help-item h3 {
  color: #007bff;
  margin-top: 0;
  font-size: 1rem;
}

.help-item p {
  color: #555;
  font-size: 0.95rem;
}

.common-mistakes {
  background: #fff3cd;
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid #ffc107;
}

.common-mistakes h3 {
  margin-top: 0;
  color: #856404;
}

.common-mistakes ul {
  padding-left: 1.25rem;
}

.common-mistakes li {
  margin-bottom: 0.5rem;
  color: #856404;
}

.site-footer {
  background: #343a40;
  color: #adb5bd;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: #6ea8fe;
}

@media (max-width: 768px) {
  .site-nav a {
    margin-left: 1rem;
    font-size: 0.9rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .preset-buttons {
    flex-direction: column;
    align-items: center;
  }

  .availability-grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .results-actions {
    flex-direction: column;
    align-items: center;
  }

  .help-content {
    grid-template-columns: 1fr;
  }

  .add-activity form {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .time-slot {
    width: 40px;
    height: 28px;
    font-size: 0.65rem;
  }

  .summary-value {
    font-size: 1.75rem;
  }
}



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
