/* Pond Viewer - Observation Mode Styles */

/* Core observation styling - distinct from regular Ducklings */
.pond-viewer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Observation Banner */
.observation-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ebf4ff 0%, #e6fffa 100%);
  border: 2px dashed #4299e1;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.observation-icon {
  font-size: 2rem;
}

.observation-banner strong {
  display: block;
  color: #2b6cb0;
  font-size: 1rem;
}

.observation-banner p {
  margin: 0;
  color: #4a5568;
  font-size: 0.875rem;
}

/* Observation items have subtle visual distinction */
.observation-item {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.observation-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4299e1, #38b2ac);
  border-radius: 8px 8px 0 0;
}

/* Page Header */
.pond-viewer-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.pond-viewer-header .lead {
  color: #4a5568;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Bills List */
.bills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bill-card .bill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.bill-number {
  font-weight: 700;
  color: #2b6cb0;
  font-size: 0.875rem;
}

.bill-number-large {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2b6cb0;
}

.bill-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.bill-status.status-first_reading,
.bill-status.status-second_reading {
  background: #bee3f8;
  color: #2a4365;
}

.bill-status.status-committee {
  background: #feebc8;
  color: #744210;
}

.bill-status.status-passed,
.bill-status.status-royal_assent {
  background: #c6f6d5;
  color: #22543d;
}

.bill-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

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

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

.bill-summary {
  color: #4a5568;
  line-height: 1.6;
}

.bill-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #718096;
}

/* Bill Detail */
.bill-content {
  padding: 2rem;
}

.bill-section {
  margin-bottom: 2rem;
}

.bill-section h2 {
  font-size: 1.125rem;
  color: #2d3748;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.section-content {
  color: #4a5568;
  line-height: 1.7;
}

.fiscal-section {
  background: #fffaf0;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.provisions-list,
.departments-list {
  padding-left: 1.5rem;
  color: #4a5568;
}

.provisions-list li,
.departments-list li {
  margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
  border-left: 3px solid #e2e8f0;
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 0.25rem;
  width: 10px;
  height: 10px;
  background: #4299e1;
  border-radius: 50%;
}

.timeline-date {
  display: block;
  font-size: 0.75rem;
  color: #718096;
}

.timeline-event {
  color: #2d3748;
}

/* Forums Grid */
.forums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.forum-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.forum-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

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

.forum-description {
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.5;
}

.forum-stats {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #718096;
}

.stat-icon {
  margin-right: 0.25rem;
}

/* Threads */
.threads-list h2 {
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.thread-card {
  border-left: 4px solid #4299e1;
}

.thread-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #1a365d;
}

.thread-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 0.75rem;
}

.thread-preview {
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.observation-notice {
  font-size: 0.75rem;
  color: #718096;
  padding: 0.5rem;
  background: #f7fafc;
  border-radius: 4px;
}

/* Related Proposals */
.related-proposals {
  background: #f0fff4;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.related-proposals h2 {
  margin-top: 0;
  color: #22543d;
  font-size: 1.125rem;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.related-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #c6f6d5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  color: #276749;
}

.proposal-status {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: #c6f6d5;
  color: #22543d;
}

/* CTAs */
.compare-cta,
.compare-action {
  text-align: center;
  padding: 2rem;
  background: #f7fafc;
  border-radius: 8px;
  margin-top: 2rem;
}

.compare-cta h3,
.compare-action h3 {
  margin-top: 0;
  color: #2d3748;
}

.compare-cta p,
.compare-action p {
  color: #4a5568;
  margin-bottom: 1rem;
}

/* External Links Notice */
.external-link-notice {
  margin-top: 2rem;
  padding: 1rem;
  background: #fff5f5;
  border-radius: 8px;
  text-align: center;
}

.external-link {
  color: #2b6cb0;
  text-decoration: none;
  font-weight: 500;
}

.external-link:hover {
  text-decoration: underline;
}

.external-icon {
  font-size: 0.875rem;
}

.notice-small {
  font-size: 0.75rem;
  color: #718096;
  margin-top: 0.5rem;
}

/* Filters */
.pond-filters {
  margin-bottom: 2rem;
}

.filter-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
}

.filter-group select {
  padding: 0.5rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: #718096;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #4a5568;
}

.breadcrumb .separator {
  margin: 0 0.5rem;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  background: #e2e8f0;
  color: #2d3748;
}

.button:hover {
  background: #cbd5e0;
}

.button--primary {
  background: #38a169;
  color: #fff;
}

.button--primary:hover {
  background: #2f855a;
}

.button--small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Pagination */
.pager {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.pager a {
  padding: 0.5rem 1rem;
  background: #e2e8f0;
  border-radius: 4px;
  color: #2d3748;
  text-decoration: none;
}

.pager a:hover {
  background: #cbd5e0;
}

/* Parliament Grid */
.parliament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.parliament-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
}

.parliament-section h2 {
  margin-top: 0;
  color: #2d3748;
  font-size: 1.125rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 0.5rem;
}

.quick-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.quick-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f7fafc;
}

.quick-list li:last-child {
  border-bottom: none;
}

.quick-list a {
  color: #2d3748;
  text-decoration: none;
}

.quick-list a:hover {
  color: #2b6cb0;
}

.quick-list .bill-number {
  display: inline-block;
  min-width: 60px;
}

.view-all-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #2b6cb0;
  font-size: 0.875rem;
}

/* Search */
.search-form-wrapper {
  margin-bottom: 2rem;
}

.search-form {
  max-width: 600px;
  margin: 0 auto;
}

.search-input-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
  font-size: 1rem;
}

.search-input:focus {
  border-color: #4299e1;
  outline: none;
}

.search-type {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 4px;
}

.search-results h2 {
  margin-bottom: 1.5rem;
  color: #2d3748;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-card {
  display: block;
}

.result-type {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.result-type.type-bill {
  background: #bee3f8;
  color: #2a4365;
}

.result-type.type-forum {
  background: #c6f6d5;
  color: #22543d;
}

.result-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

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

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

.result-excerpt {
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.search-prompt,
.no-results {
  text-align: center;
  padding: 2rem;
  color: #718096;
}

/* Responsive */
@media (max-width: 768px) {
  .observation-banner {
    flex-direction: column;
    text-align: center;
  }

  .forums-grid {
    grid-template-columns: 1fr;
  }

  .thread-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .parliament-grid {
    grid-template-columns: 1fr;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-input,
  .search-type {
    width: 100%;
  }
}
