/* WP-6: Topic Browser Styles */

/* Topic List Page */
.topic-browser-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.topic-header {
  text-align: center;
  margin-bottom: 2rem;
}

.topic-header h1 {
  color: #1a365d;
  margin-bottom: 0.5rem;
}

.topic-header .lead {
  color: #4a5568;
  font-size: 1.1rem;
}

/* Topic Grid */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.topic-card {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.topic-icon {
  font-size: 2.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.topic-info {
  flex-grow: 1;
}

.topic-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a365d;
  margin: 0 0 0.25rem 0;
}

.topic-count {
  font-size: 0.875rem;
  color: #718096;
}

.topic-arrow {
  font-size: 1.5rem;
  color: #cbd5e0;
  margin-left: 1rem;
}

.topic-card:hover .topic-arrow {
  color: #3182ce;
}

/* Topic View Page */
.topic-view-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}

.topic-view-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.topic-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.topic-badge .topic-icon {
  font-size: 3rem;
}

.topic-badge h1 {
  margin: 0;
  color: #1a365d;
}

.topic-description {
  color: #4a5568;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.topic-keywords {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.keywords-label {
  color: #718096;
  font-size: 0.875rem;
}

.keyword-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #edf2f7;
  color: #4a5568;
  border-radius: 9999px;
  font-size: 0.875rem;
}

/* Proposals in Topic View */
.proposals-count {
  color: #718096;
  margin-bottom: 1rem;
}

.proposals-list {
  display: grid;
  gap: 1rem;
}

.topic-proposal-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.topic-proposal-card .proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.topic-proposal-card .proposal-title {
  margin: 0;
  font-size: 1.1rem;
}

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

.topic-proposal-card .proposal-title a:hover {
  color: #3182ce;
}

.topic-proposal-card .proposal-summary {
  color: #4a5568;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.topic-proposal-card .proposal-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #e2e8f0;
  color: #4a5568;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.topic-tags {
  display: flex;
  gap: 0.5rem;
}

.mini-topic-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: #ebf8ff;
  color: #2b6cb0;
  border-radius: 4px;
  font-size: 0.75rem;
  text-decoration: none;
}

.mini-topic-tag:hover {
  background: #bee3f8;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status--draft { background: #e2e8f0; color: #4a5568; }
.status--pending { background: #fef3c7; color: #92400e; }
.status--review { background: #dbeafe; color: #1e40af; }
.status--coalition { background: #c6f6d5; color: #22543d; }
.status--passed { background: #a3bffa; color: #3730a3; }
.status--implemented { background: #c6f6d5; color: #065f46; }
.status--rejected { background: #fed7d7; color: #9b2c2c; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  background: #f7fafc;
  border-radius: 12px;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: #718096;
  margin-bottom: 1.5rem;
}

/* Actions */
.topic-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Buttons */
.topic-browser-page .button,
.topic-view-page .button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: #3182ce;
  color: #fff;
}

.topic-browser-page .button:hover,
.topic-view-page .button:hover {
  background: #2b6cb0;
}

.topic-browser-page .button--secondary,
.topic-view-page .button--secondary {
  background: #e2e8f0;
  color: #2d3748;
}

.topic-browser-page .button--secondary:hover,
.topic-view-page .button--secondary:hover {
  background: #cbd5e0;
}

/* Responsive */
@media (max-width: 768px) {
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-badge {
    flex-direction: column;
    gap: 0.5rem;
  }

  .topic-proposal-card .proposal-header {
    flex-direction: column;
    gap: 0.5rem;
  }
}
