/**
 * Youth Proposals styling
 * WP-1: Styling for youth proposals from Ducklings
 */

.youth-proposals-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.youth-proposals-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e5e5e5;
}

.youth-proposals-header .header-content h1 {
  margin: 0 0 0.5rem 0;
  color: #1a365d;
}

.youth-proposals-header .lead {
  color: #4a5568;
  max-width: 600px;
  margin: 0;
}

.youth-proposals-header .header-stats {
  background: #ebf8ff;
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.youth-proposals-header .stat strong {
  font-size: 1.5rem;
  color: #2b6cb0;
}

.youth-proposals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.youth-proposal-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.youth-proposal-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.proposal-card-header {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.jurisdiction-badge,
.school-badge,
.fsa-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.jurisdiction-badge {
  background: #ebf8ff;
  color: #2b6cb0;
  font-weight: 600;
  text-transform: uppercase;
}

.jurisdiction-badge.jurisdiction-federal {
  background: #faf5ff;
  color: #6b46c1;
}

.jurisdiction-badge.jurisdiction-provincial {
  background: #f0fff4;
  color: #276749;
}

.jurisdiction-badge.jurisdiction-municipal {
  background: #fffaf0;
  color: #c05621;
}

.school-badge {
  background: #f7fafc;
  color: #4a5568;
}

.proposal-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
  line-height: 1.4;
}

.proposal-title a {
  color: #1a365d;
  text-decoration: none;
}

.proposal-title a:hover {
  color: #2b6cb0;
  text-decoration: underline;
}

.proposal-summary {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.proposal-card-footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.posted-date,
.comment-count,
.fsa-badge {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.proposal-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #2b6cb0;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s ease;
}

.proposal-cta:hover {
  background: #2c5282;
  color: #fff;
}

.youth-proposals-empty {
  text-align: center;
  padding: 4rem 2rem;
  background: #f7fafc;
  border-radius: 12px;
  color: #4a5568;
}

.youth-proposals-info {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.youth-proposals-info h3 {
  margin: 0 0 0.75rem 0;
  color: #276749;
}

.youth-proposals-info p {
  color: #2f855a;
  margin: 0 0 0.5rem 0;
}

.youth-proposals-info p:last-child {
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .youth-proposals-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .youth-proposals-grid {
    grid-template-columns: 1fr;
  }
  
  .proposal-card-footer {
    flex-direction: column;
    gap: 0.5rem;
  }
}
