/* =============================================
   Dashboard — Homelab overview page styles
   Slate dark theme, matching home.meirong.dev
   ============================================= */

.dashboard {
  padding: 0.5rem 0 2rem;
}

/* Section */
.dash-section {
  margin-bottom: 2.5rem;
}

.dash-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--foreground);
  opacity: 0.5;
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

/* Service grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

/* Service card */
.dash-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

a.dash-card:hover {
  background: rgba(30, 156, 215, 0.15);
  border-color: rgba(30, 156, 215, 0.4);
  transform: translateY(-1px);
  color: var(--foreground);
  text-decoration: none;
}

.dash-card--no-link {
  opacity: 0.65;
  cursor: default;
}

.dash-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.dash-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dash-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--foreground);
}

.dash-desc {
  font-size: 0.72rem;
  color: var(--foreground);
  opacity: 0.55;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.1rem;
}

/* Bookmarks */
.dash-bookmarks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-bookmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.375rem;
  text-decoration: none;
  color: var(--foreground);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dash-bookmark:hover {
  background: rgba(30, 156, 215, 0.15);
  border-color: rgba(30, 156, 215, 0.4);
  text-decoration: none;
  color: var(--foreground);
}

.dash-bookmark-abbr {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(30, 156, 215, 0.15);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
}

.dash-bookmark-name {
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .dash-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
