/* ========== Features Page ========== */

/* ── Page layout ── */
.features-page-wrap {
  background: #f4f6f0;
  padding: 32px 20px 60px;
  display: flex;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.features-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.features-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Cards ── */
.features-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  overflow: hidden;
}

.features-card-header {
  background: #2d3d1a;
  color: #fff;
  padding: 11px 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.features-card-header.completed-header { background: #4a5568; }

.features-card-body {
  padding: 20px;
}

/* ── Alerts ── */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.92rem;
  border-left: 4px solid;
}

.alert-error   { background: #fde8e8; color: #b00020; border-color: #b00020; }
.alert-success { background: #eef4e4; color: #3a5a0a; border-color: #556B2F; }

/* ── Form ── */
#new-feature-form input,
#new-feature-form textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid #d4dfc0;
  border-radius: 7px;
  font-size: 0.92rem;
  background: #fafcf7;
  color: #1c2b0e;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 12px;
  display: block;
}

#new-feature-form input:focus,
#new-feature-form textarea:focus {
  outline: none;
  border-color: #556B2F;
  box-shadow: 0 0 0 3px rgba(85,107,47,0.12);
}

#new-feature-form textarea {
  resize: vertical;
  min-height: 90px;
}

.btn {
  background: #556B2F;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn:hover { background: #3f5222; }

/* ── Feature list ── */
.features,
#completed-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features li,
#completed-features-list li { list-style: none; }

.feature-card {
  background: #fff;
  border: 1.5px solid #e0ecd0;
  border-radius: 8px;
  padding: 14px 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-color: #8a9e5a;
}

.feat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.feat-header strong {
  flex: 1;
  font-size: 0.95rem;
  color: #1c2b0e;
  min-width: 0;
}

.votes {
  font-size: 0.82rem;
  color: #7a8c5a;
  white-space: nowrap;
}

.vote-btn {
  background: transparent;
  border: 1.5px solid #556B2F;
  color: #556B2F;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.vote-btn:hover {
  background: #556B2F;
  color: #fff;
}

.feature-card > p {
  font-size: 0.87rem;
  color: #5a6e3a;
  line-height: 1.5;
  margin: 0 0 8px;
}

/* ── Status pills ── */
.status {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: capitalize;
  letter-spacing: 0.03em;
}

.status.requested   { background: #f0f0f0;  color: #666;    }
.status.planned     { background: #fff8e1;  color: #856404; }
.status.in_progress { background: #fff0e0;  color: #b25f00; }
.status.complete    { background: #eef4e4;  color: #3a5a0a; }

/* ── Tips list ── */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tips-list li {
  font-size: 0.87rem;
  color: #5a6e3a;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.tips-list li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: #556B2F;
  font-size: 0.85rem;
}

.tips-list strong { color: #1c2b0e; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .features-page-wrap {
    flex-direction: column;
    padding: 20px 14px 50px;
  }

  .features-sidebar { width: 100%; }
}

@media (max-width: 600px) {
  .features-page-wrap { padding: 14px 10px 50px; }
  .features-card-body { padding: 14px; }
}
