/* ═══════════════════════════════════════════════════════════
   IDEAS / TICKETS LIST PAGE
═══════════════════════════════════════════════════════════ */

/* The idea list is rendered as <ul class="idea-list"><li class="idea">…</li></ul>.
   base.css (the shared reset) only strips list-style on <ul> in generic contexts,
   so browsers still paint the <li> disc bullet next to the vote button. Kill it
   here explicitly on both the ul and its direct children. */
.idea-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.idea-list > li,
.idea-list > li.idea {
  list-style: none;
}

.ideas-header {
  margin-bottom: 32px;
}

.ideas-title {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.ideas-subtitle {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

.ideas-hero {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
}

.ideas-hero .md-body {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.ideas-card {
  display: flex;
  flex-direction: column;
}

.ideas-card a {
  text-decoration: none;
  color: inherit;
}

.ideas-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 24px;
  color: var(--text-mute);
}

.ideas-empty h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.ideas-empty p {
  margin: 0;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   FILTERS & CONTROLS
═══════════════════════════════════════════════════════════ */

.ideas-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.ideas-search {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.ideas-search input {
  padding-left: 36px;
  width: 100%;
}

.ideas-search::before {
  content: '🔍';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.ideas-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ideas-sort label {
  font-size: 13px;
  color: var(--text-mute);
  white-space: nowrap;
  font-weight: 500;
}

.ideas-sort select {
  min-width: 140px;
  padding: 8px 10px;
  font-size: 13px;
}

.ideas-filter-active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* ═══════════════════════════════════════════════════════════
   LOADING & STATES
═══════════════════════════════════════════════════════════ */

.ideas-loading {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-mute);
}

.ideas-error {
  padding: 20px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 9px;
  color: var(--t-bug);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .ideas-grid {
    grid-template-columns: 1fr;
  }

  .ideas-title {
    font-size: 24px;
  }

  .ideas-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .ideas-search {
    min-width: unset;
  }

  .ideas-sort {
    width: 100%;
  }

  .ideas-sort select {
    width: 100%;
  }
}
