:root {
  /* Stessa palette scura di NasPhotoTools (F:\Git\NasPhotoTools\app\static\style.css),
     cosi' l'hub non sembra un'altra app: e' l'ingresso alla stessa "casa". */
  --bg: #15171c;
  --bg-elevated: #1e212a;
  --bg-sunken: #0e0f13;
  --border: #2f323d;
  --text: #edeef2;
  --text-muted: #8b8f9c;
  --accent: #5b8def;
  --accent-text: #9fc4ff;
  --accent-soft: rgba(91, 141, 239, 0.14);
  --gold: #d9a441;
  --gold-soft: rgba(217, 164, 65, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 34px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Sfondo "da parete di foto": bagliori sfocati fissi dietro tutta la
   pagina, per dare profondita' senza immagini vere ne' chiamate di rete
   (stesso principio gia' scelto per i font: zero dipendenze esterne). */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(ellipse 34rem 24rem at 10% -8%, var(--gold-soft), transparent 60%),
    radial-gradient(ellipse 38rem 28rem at 90% 6%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 42rem 32rem at 50% 100%, rgba(91, 141, 239, 0.10), transparent 65%);
  pointer-events: none;
}

.hub {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
}

.hub-header {
  position: relative;
  text-align: center;
  margin-bottom: 2.75rem;
  padding-top: 4.5rem;
}

/* Collage di "foto" inventate sparse dietro al titolo: scene di
   paesaggio (vedi #icon-scene) dentro cornici tipo polaroid, sfocate e
   ruotate, solo decorative - non pretendono di essere scatti veri. */
.hub-header-collage {
  position: absolute;
  inset: -1.5rem 0 auto 0;
  height: 11rem;
  z-index: 0;
  pointer-events: none;
}

.collage-photo {
  position: absolute;
  width: 6rem;
  aspect-ratio: 8 / 5;
  padding: 0.35rem 0.35rem 0.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  filter: blur(0.5px);
}

.collage-photo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.collage-1 { left: 4%;  top: 0.5rem; color: var(--gold); transform: rotate(-9deg); opacity: 0.55; }
.collage-2 { left: 20%; top: 4.5rem; color: var(--accent); transform: rotate(6deg); opacity: 0.4; width: 4.5rem; }
.collage-3 { right: 6%; top: 0;     color: var(--accent); transform: rotate(8deg); opacity: 0.55; }
.collage-4 { right: 22%; top: 5rem; color: var(--gold); transform: rotate(-5deg); opacity: 0.4; width: 4.5rem; }

.hub-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  margin: 0 0 0.9rem;
}

.hub-header h1 {
  position: relative;
  z-index: 1;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 2.3rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.hub-tagline {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  margin: 0;
  font-size: 1rem;
}

.hub-apps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Card app: link vero per quelle attive, div per i placeholder "in
   arrivo" (nessun posto dove andare finche' non esistono davvero). */
.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-card);
}

a.app-card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

a.app-card:hover { border-color: var(--accent); }
a.app-card:active { transform: scale(0.99); }

.app-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), var(--bg-sunken) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scena di paesaggio inventata che riempie la media area della card
   attiva, come un vero scatto d'anteprima al posto della sola icona. */
.app-card-media-scene { background: linear-gradient(160deg, var(--gold-soft), var(--bg-sunken) 75%); }

.app-card-scene {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  color: var(--gold);
  opacity: 0.8;
}

.app-card-media .app-card-icon {
  position: relative;
  z-index: 1;
  width: 25%;
  height: 25%;
  min-width: 44px;
  min-height: 44px;
  max-width: 84px;
  max-height: 84px;
  color: var(--text);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.app-card-soon .app-card-icon { color: var(--text-muted); filter: none; }
.app-card-soon .app-card-media { background: linear-gradient(160deg, var(--bg-elevated), var(--bg-sunken)); }

.app-card-body {
  padding: 1.25rem 1.4rem 1.4rem;
}

.app-card h2 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.app-card p {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.app-card-cta {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.95rem;
}

.app-card-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.app-card-soon {
  opacity: 0.85;
  border-style: dashed;
}

.hub-footer {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Tablet in su: card orizzontali, immagine a sinistra invece che in cima. */
@media (min-width: 640px) {
  .app-card { flex-direction: row; }
  .app-card-media { width: 40%; aspect-ratio: auto; min-height: 170px; }
  .app-card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 1.75rem; }
}

@media (min-width: 900px) {
  .hub { max-width: 900px; padding-top: 4.5rem; }
  .hub-header h1 { font-size: 2.7rem; }
}

@media (max-width: 480px) {
  /* Il collage sotto al titolo affollerebbe troppo un telefono stretto:
     ne restano due, piu' piccoli, solo come accenno decorativo. */
  .collage-2, .collage-4 { display: none; }
  .collage-photo { width: 4.5rem; }
  .hub-header-collage { height: 9rem; }
  .hub-header { padding-top: 3.5rem; }
}
