/* =========================================
   Page-specific overrides
   Popolato nelle task successive (view specifiche)
   ========================================= */

/* landing (index.html) */
.landing-hero {
  text-align: center;
  padding: 60px 20px;
  max-width: 640px;
  margin: 0 auto;
}
.landing-hero .brand-mark {
  font-size: 48px;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}
.landing-hero h1 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 12px; }
.landing-hero p { color: var(--text-dim); font-size: 16px; margin-bottom: 32px; }
.landing-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Profile card ---------- */
.profile-card { display: flex; flex-direction: column; gap: 8px; }
.profile-card .profile-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}
.profile-card .profile-title-row h3 {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-card .profile-title-row .profile-badges {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.profile-card .profile-image {
  aspect-ratio: 16 / 10;
  background: var(--bg-deeper);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-card .profile-image img { width: 100%; height: 100%; object-fit: cover; }
.profile-card .profile-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--gold);
  background: linear-gradient(135deg, var(--surface-raised), var(--bg-deeper));
  letter-spacing: 0.04em;
}
.profile-card h3 {
  font-size: 15px;
  margin: 0;
  background: linear-gradient(to bottom, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.profile-card .profile-desc { color: var(--text-dim); font-size: 12px; margin: 0; line-height: 1.4; }
.profile-card .profile-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.profile-card .profile-badges { margin-top: 4px; }
.profile-card .profile-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.profile-card .profile-actions .btn { flex: 1; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 24px 0;
}
.pagination .page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.pagination .page-btn:hover:not(:disabled) { background: var(--surface-raised); color: var(--text); }
.pagination .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-btn-active { background: var(--gold); color: var(--bg); border-color: var(--gold); font-weight: 700; }
.pagination .page-ellipsis { display: inline-flex; align-items: center; padding: 0 6px; color: var(--text-faint); }

/* ---------- Page header & toolbar ---------- */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* ---------- Me dashboard ---------- */
.grid-me {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 641px) { .grid-me { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1025px) { .grid-me { grid-template-columns: 1fr 1fr 1fr; } }

.stats-list { list-style: none; padding: 0; margin: 0; }
.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.stats-list li:last-child { border-bottom: none; }
.stats-list strong { color: var(--gold); }

.sub-card {
  padding: 10px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.sub-time { border-left: 3px solid var(--gold); }
.sub-cons { border-left: 3px solid var(--purple); }
.sub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; color: var(--text-dim); }
.sub-credits { font-size: 15px; margin-bottom: 4px; }
.sub-credits strong { color: var(--text); font-size: 20px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th, .data-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}

.plan-icon { font-size: 14px; }
.plan-icon.c-time { color: var(--gold); }
.plan-icon.c-consumption { color: var(--purple); }

/* ---------- Plan card ---------- */
.plan-card { transition: all var(--transition); }
.plan-card.plan-disabled { opacity: 0.6; }
.plan-head { margin-bottom: 10px; }
.plan-stats {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.plan-stats div { display: flex; flex-direction: column; gap: 2px; }
.plan-stats strong { font-size: 16px; color: var(--gold); }
