/* dashboard.css — Photographer dashboard shell styles */

/* ─── Shell layout ─── */
.dash-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

/* ─── Sidebar ─── */
.dash-sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 0.5rem;
  margin-bottom: 2rem;
  text-decoration: none;
}

.dash-brand-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #0c0b0f;
  flex-shrink: 0;
}

.dash-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s;
}

.dash-nav-item:hover {
  background: var(--bg);
  color: var(--fg);
}

.dash-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.dash-nav-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.dash-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 0.6rem 0;
}

/* Plan chip */
.plan-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0.5rem 1.25rem;
  width: fit-content;
}

.plan-chip-free {
  background: var(--bg);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}

.plan-chip-pro,
.plan-chip-studio {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* Sidebar user footer */
.sidebar-user {
  padding: 0.75rem 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-email {
  font-size: 0.75rem;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Upgrade CTA in sidebar */
.upgrade-cta {
  margin: 0 0 1.25rem;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--accent);
  border-radius: 10px;
  text-decoration: none;
  display: block;
  transition: opacity 0.15s;
}

.upgrade-cta:hover { opacity: 0.85; }

.upgrade-cta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.upgrade-cta-text {
  font-size: 0.78rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* ─── Main area ─── */
.dash-main {
  padding: 2.5rem 2.5rem;
  min-height: 100vh;
}

.dash-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-page-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.dash-page-sub {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-top: 0.2rem;
}

/* ─── Stats grid ─── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s;
}

.stat-card:hover { border-color: var(--fg-muted); }

.stat-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.65rem;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.4rem;
}

/* Highlight pending count in accent */
.stat-card-pending .stat-card-value { color: var(--accent); }

/* ─── Quick links ─── */
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quick-link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.35rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.quick-link-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.quick-link-icon { font-size: 1.25rem; flex-shrink: 0; }

.quick-link-label {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
}

.quick-link-sub {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.1rem;
}

/* ─── Activity panels ─── */
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.activity-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.activity-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.activity-panel-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.activity-panel-link {
  font-size: 0.78rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.activity-panel-link:hover { text-decoration: underline; }

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  text-decoration: none;
  transition: background 0.1s;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg); }

.activity-item-left { min-width: 0; }

.activity-item-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-item-sub {
  font-size: 0.76rem;
  color: var(--fg-muted);
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-item-meta {
  font-size: 0.72rem;
  color: var(--fg-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.activity-empty {
  padding: 2.25rem 1.5rem;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* ─── Badges ─── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-new       { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.badge-responded { background: var(--bg); color: var(--fg-muted); border: 1px solid var(--border); }
.badge-published { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.badge-draft     { background: var(--bg); color: var(--fg-muted); border: 1px solid var(--border); }

/* ─── Upgrade banner ─── */
.upgrade-banner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--accent-soft) 100%);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.upgrade-banner-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.upgrade-banner-sub {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* ─── Settings page ─── */
.settings-wrap { max-width: 540px; }

.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.settings-section h2 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.settings-row:last-child { border-bottom: none; padding-bottom: 0; }

.settings-label {
  font-size: 0.84rem;
  color: var(--fg-muted);
  font-weight: 500;
}

.settings-value {
  font-size: 0.88rem;
  color: var(--fg);
  font-weight: 500;
}

/* ─── Mobile bottom nav ─── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 0.5rem 0 max(0.75rem, env(safe-area-inset-bottom));
}

.mobile-nav-inner {
  display: flex;
  justify-content: space-around;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-decoration: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  min-width: 60px;
}

.mobile-nav-icon { font-size: 1.2rem; }

.mobile-nav-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-nav-item.active .mobile-nav-label { color: var(--accent); }

/* ─── Responsive breakpoints ─── */
@media (max-width: 1024px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .activity-grid { grid-template-columns: 1fr; }
  .quick-links { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-main { padding: 1.5rem 1rem 5.5rem; }
  .mobile-nav { display: block; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .dash-topbar { margin-bottom: 1.25rem; }
  .dash-page-title { font-size: 1.35rem; }
}

@media (max-width: 420px) {
  .stat-card-value { font-size: 1.75rem; }
  .upgrade-banner { flex-direction: column; }
}
