/* feeds — app-specific styles.
 * Shared reset / tokens / components come from /assets/darkmatter.css.
 */

/* The logo wraps an h1 in feeds markup. */

.logo h1 {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 14px;
  line-height: 1.25rem;
}

/* Feeds list */

#feeds-container {
  width: 100%;
}

.feeds-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feed-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid #333;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  opacity: 0.5;
}

.feed-source {
  font-weight: 700;
}

.feed-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.feed-title a {
  text-decoration: none;
}

.feed-author {
  font-size: 12px;
  opacity: 0.5;
  font-style: italic;
}

#feed-urls {
  font-size: 12px;
  opacity: 0.5;
}

.no-feeds,
#loading {
  text-align: center;
  opacity: 0.5;
  padding: 2rem;
}

#error {
  text-align: center;
  padding: 2rem;
}

/* Admin forms */

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.admin-form h3 {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.5;
}

.admin-notice,
.hint {
  font-size: 12px;
  opacity: 0.5;
  line-height: 1.4;
}

/* Discover panel */

.discover-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.discover-row input {
  flex: 1;
}

.discover-status {
  font-size: 12px;
}

.discover-results {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
}

.discover-result-item {
  background: #121113;
  color: #ffffff;
  border: 1px solid #333;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.7;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.discover-result-item:hover {
  border-color: #555;
  opacity: 1;
}

.discover-result-item.active {
  border-color: #ffffff;
  opacity: 1;
}

/* Admin subs */

.admin-subs {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-subs h3 {
  font-size: 14px;
  opacity: 0.5;
  font-weight: 400;
}

.feed-item form.inline {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.feed-item form.inline input {
  flex: 1;
}

/* Generic .danger on buttons (used in admin) */

button.danger,
.btn.danger {
  opacity: 0.5;
}

button.danger:hover,
.btn.danger:hover {
  opacity: 0.3;
}

/* Category list (admin) */

.category-list {
  list-style: none;
  margin-left: 0;
}

.category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

@media (max-width: 480px) {
  .feed-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .feed-title {
    font-size: 14px;
  }
}
