/* =============================================================================
   AIAssetsHub — Account CSS
   ============================================================================= */

/* ─── Account Layout ──────────────────────────────────────────────────────── */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.account-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.account-nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.account-nav-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.account-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

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

.account-nav-links {
  padding: 0.5rem;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.7rem 0.875rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.account-nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.account-nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.account-nav-link.logout { color: var(--danger); }
.account-nav-link.logout:hover { background: var(--danger-light); }

/* ─── Account content ─────────────────────────────────────────────────────── */
.account-content { min-width: 0; }

.account-page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* ─── Stats row ───────────────────────────────────────────────────────────── */
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.account-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
}

.account-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.account-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ─── Downloads list ──────────────────────────────────────────────────────── */
.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.875rem;
  transition: var(--transition);
}

.download-item:hover { border-color: var(--border-light); }

.download-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}

.download-info { flex: 1; min-width: 0; }
.download-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.download-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
  flex-shrink: 0;
}

/* ─── Order table ─────────────────────────────────────────────────────────── */
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 768px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-stats { grid-template-columns: 1fr; }
}
