/* /styles/myprofile/componentsMyProfile.css */
/* Components for My Profile; loaded after shared components.css */

/* Nav buttons (top strip) */
#hubNav button,
.mini-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 400;
  border-radius: var(--radius-8);
  border: 1px solid var(--color-accent);
  background-color: var(--color-bg);
  cursor: pointer;
  transition: background-color var(--dur-quick) var(--easing-standard);
}
#hubNav button:hover,
.mini-tab:hover { background-color: var(--color-bg-subtle); }

/* Status text */
.status { font-size: 14px; color: var(--color-text); }
.status--muted { color: var(--color-muted); }
.status--error { color: #a00; }

/* ===== My Dashboards Static View ===== */
#myDashboardsView { padding-block: var(--gap-4); }
#myDashboardsView .md-header { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
#myDashboardsView .md-header h2 { margin: 0; font-size: 1.4rem; font-weight: 500; }
#myDashboardsView .md-sub { color: var(--color-muted); font-size: 0.9rem; }

/* AFTER (smaller, responsive squares) */
#myDashboardsView .md-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

@media (max-width:1400px){ #myDashboardsView .md-grid{ grid-template-columns:repeat(4,1fr);} }
@media (max-width:1100px){ #myDashboardsView .md-grid{ grid-template-columns:repeat(3,1fr);} }
@media (max-width:800px){  #myDashboardsView .md-grid{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:520px){  #myDashboardsView .md-grid{ grid-template-columns:repeat(1,1fr);} }

#myDashboardsView .md-card {
  display: block;
  border-radius: var(--radius-10);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba #b08a48;
  background: var(--color-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
#myDashboardsView .md-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
#myDashboardsView .md-card__imageWrap { position: relative; aspect-ratio: 16 / 9; background: #f6f6f6; }
#myDashboardsView .md-card__imageWrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
#myDashboardsView .md-card__meta { padding: 10px 12px 12px; }
#myDashboardsView .md-card__title { margin: 0; font-size: 1rem; font-weight: 500; color: #111; }

#myDashboardsView .md-empty {
  border: 1px dashed #b08a48;
  padding: 28px;
  border-radius: var(--radius-10);
  background: linear-gradient(180deg, #fafafa, #fff);
  text-align: center;
}
#myDashboardsView .md-empty__title { font-weight: 500; margin-bottom: 6px; }
#myDashboardsView .md-empty__hint { color: var(--color-muted); margin-bottom: 12px; }
#myDashboardsView .md-empty__cta {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-8);
  background: #111;
  color: #fff;
  text-decoration: none;
}

/* ===== My Collections ===== */
#myCollectionsView { padding-block: var(--gap-4); }
.collections-header { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.collections-header h2 { margin:0; font-size:1.4rem; font-weight:600; }
.collections-sub { color: var(--color-muted); font-size:0.9rem; }

.collections-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.collections-card {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-8);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  cursor: pointer;
}
.collections-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-bg-subtle);
}
.collections-thumb--placeholder { background: var(--color-bg-subtle); }
.collections-body { padding: 10px; display:flex; justify-content: space-between; align-items:center; }
.collections-label { font-weight: 600; }
.collections-btn {
  appearance: none;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-8);
  padding: 6px 10px;
  cursor: pointer;
}
.collections-btn:hover { background: var(--color-bg-subtle); }
