/* Pagina /playlist-personal (sursa: ghiduri/standalone/playlist-personal.js).
   Stiluri doar pentru această pagină, peste designul ghidului (ghiduri.css).
   Fișierul e încărcat numai de playlist-personal.html, prin câmpul `preload`. */

/* ---------- Fluxul în 3 pași (distribui, alții ascultă, gestionezi) ---------- */

.pp-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 8px;
}

.pp-flow-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.pp-flow-shot {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius-lg);
  background: linear-gradient(180deg, var(--gd-primary-softer) 0%, var(--gd-surface) 100%);
  overflow: hidden;
}

.gd-prose .pp-flow-shot img {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(9, 32, 20, 0.16));
}

.pp-flow-item figcaption {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gd-ink);
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
}

.pp-flow-num {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--gd-primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

/* ---------- Telefon gata încadrat (captura are deja rama) ---------- */

.pp-device {
  margin: 0;
}

.gd-prose .pp-device img {
  display: block;
  width: clamp(200px, 58vw, 248px);
  height: auto;
  margin: 0 auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 26px 30px rgba(9, 32, 20, 0.22));
}

/* ---------- Ramă pentru capturi (fereastra Distribuie) ---------- */

.pp-frame {
  width: clamp(240px, 72vw, 300px);
  margin: 0;
  padding: 14px;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius-lg);
  background: linear-gradient(180deg, var(--gd-primary-softer) 0%, var(--gd-surface) 100%);
}

.gd-prose .pp-frame img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 14px 18px rgba(9, 32, 20, 0.16));
}

.pp-frame figcaption {
  margin-top: 10px;
  color: var(--gd-muted);
  font-size: 0.84rem;
  text-align: center;
}

/* Imaginea în dreapta, textul în stânga (doar pe ecrane late). */
@media (min-width: 721px) {
  .gd-model.pp-reverse {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .gd-model.pp-reverse .gd-model-media {
    order: 2;
  }
}

/* ---------- Acțiunile din playlist ---------- */

.pp-actions {
  display: grid;
  gap: 10px;
}

.pp-action {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  background: #fff;
}

.pp-action .gd-card-icon {
  flex: 0 0 auto;
  margin: 0;
}

.pp-action strong {
  display: block;
  color: var(--gd-ink);
  font-size: 0.96rem;
  font-weight: 650;
  line-height: 1.4;
}

.gd-prose .pp-action p {
  margin: 2px 0 0;
  color: var(--gd-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---------- Listă cu bife ---------- */

.gd-prose ul.pp-checks {
  display: grid;
  gap: 9px;
  margin: 1.1em 0 0;
  padding: 0;
  list-style: none;
}

.gd-prose ul.pp-checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.gd-prose ul.pp-checks li + li {
  margin-top: 0;
}

.pp-checks .gd-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--gd-primary-soft);
  color: var(--gd-primary-strong);
  stroke-width: 2.6;
}

.gd-model-body > .pp-actions:first-child,
.gd-model-body > p:first-child {
  margin-top: 0;
}

/* ============================================================
   Telefon: pagină compactă, cu mai puțin spațiu gol la derulare.
   Butoanele stau pe același rând, cardurile devin plăci mici
   (iconiță cu text dedesubt), imaginile stau lângă liste.
   ============================================================ */

@media (max-width: 720px) {
  /* Antet și spațiere între secțiuni */
  .gd-lead {
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .gd-meta {
    gap: 4px 12px;
    margin-top: 12px;
    padding-bottom: 16px;
    font-size: 0.78rem;
  }

  .gd-prose {
    padding-top: 0;
  }

  .gd-prose h2 {
    margin-top: 1.6em;
    font-size: 1.24rem;
  }

  .gd-prose h3 {
    margin-top: 1.25em;
    font-size: 1.04rem;
  }

  .gd-prose .gd-kicker {
    margin: 26px 0 -18px;
    font-size: 0.68rem;
  }

  .gd-prose .gd-kicker + h2 {
    margin-top: 22px;
  }

  .gd-prose h2 + p,
  .gd-prose h3 + p {
    margin-top: 0.45em;
  }

  .gd-prose p {
    line-height: 1.6;
  }

  /* Butoane pe același rând */
  .gd-prose .gd-cta-row {
    flex-wrap: nowrap;
    gap: 8px;
    margin: 1em 0;
  }

  .gd-prose .gd-cta-row .gd-cta,
  .gd-prose .gd-cta-row .gd-cta-ghost {
    flex: 1 1 auto;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .gd-prose .gd-cta-row .gd-cta {
    flex: 0 0 auto;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 4px 12px rgba(15, 154, 69, 0.24);
  }

  /* Fluxul în 3 pași: toate trei pe un rând, numărul și textul dedesubt */
  .pp-flow {
    gap: 8px;
    margin: 14px 0 4px;
  }

  .pp-flow-item {
    gap: 6px;
  }

  .pp-flow-shot {
    aspect-ratio: 5 / 8;
    border-radius: 14px;
  }

  .gd-prose .pp-flow-shot img {
    inset: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    filter: drop-shadow(0 8px 10px rgba(9, 32, 20, 0.16));
  }

  .pp-flow-item figcaption {
    flex-direction: column;
    gap: 4px;
    font-size: 0.74rem;
    line-height: 1.25;
    text-align: center;
  }

  .pp-flow-num {
    width: 20px;
    height: 20px;
    font-size: 0.68rem;
  }

  /* Pași: plăci alăturate în loc de listă verticală */
  .pp-steps .gd-steps {
    display: grid;
    gap: 8px;
    margin-top: 0.8em;
  }

  .pp-steps-3 .gd-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-steps-2 .gd-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gd-prose .pp-steps .gd-step,
  .gd-prose .pp-steps .gd-step:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 10px 8px 11px;
    border: 1px solid var(--gd-line);
    border-radius: 12px;
    background: #fff;
    text-align: center;
  }

  .pp-steps .gd-step::before {
    position: static;
    width: 24px;
    height: 24px;
    border: 0;
    background: var(--gd-primary);
    color: #fff;
    font-size: 0.72rem;
    box-shadow: none;
  }

  .pp-steps .gd-step::after {
    display: none;
  }

  .pp-steps .gd-step-title {
    margin: 2px 0 0;
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .gd-prose .pp-steps .gd-step-body p {
    margin: 0;
    color: var(--gd-muted);
    font-size: 0.72rem;
    line-height: 1.4;
  }

  /* Imaginea lângă listă (telefon / fereastră în stânga, lista în dreapta) */
  .gd-model.pp-split {
    grid-template-columns: 42% minmax(0, 1fr);
    align-items: center;
    gap: 12px 12px;
    margin: 0.9em 0 0;
  }

  .pp-split .gd-model-body {
    display: contents;
  }

  .pp-split .gd-model-body > p {
    grid-column: 1 / -1;
    order: -1;
    margin: 0;
  }

  .pp-split .gd-model-media {
    grid-column: 1;
    justify-self: stretch;
    min-width: 0;
  }

  .pp-split .gd-model-body > :not(p) {
    grid-column: 2;
    min-width: 0;
    margin: 0;
  }

  .gd-prose .pp-split .pp-device img {
    width: 100%;
    filter: drop-shadow(0 14px 16px rgba(9, 32, 20, 0.2));
  }

  .pp-split .pp-frame {
    width: 100%;
    padding: 8px;
    border-radius: 14px;
  }

  .pp-split .pp-frame figcaption {
    display: none;
  }

  .pp-split .gd-phone-frame {
    width: 100%;
    padding: 5px;
    border-radius: 26px;
  }

  .pp-split .gd-phone-screen {
    border-radius: 21px;
  }

  .pp-split .gd-phone-status {
    height: 20px;
    padding: 0 12px 0 14px;
    font-size: 8.5px;
  }

  .pp-split .gd-phone-island {
    top: 5px;
    height: 11px;
  }

  .pp-split .gd-phone-frame::before,
  .pp-split .gd-phone-frame::after {
    display: none;
  }

  /* Acțiunile: doar iconiță și titlu */
  .pp-actions {
    gap: 6px;
  }

  .pp-action {
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  .pp-action .gd-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 0.95rem;
  }

  .pp-action strong {
    font-size: 0.86rem;
  }

  .gd-prose .pp-action p {
    display: none;
  }

  /* Liste cu bife lângă imagine */
  .gd-prose ul.pp-checks {
    gap: 7px;
  }

  .gd-prose ul.pp-checks li {
    gap: 7px;
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .pp-checks .gd-icon {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    padding: 2.5px;
  }

  /* Carduri -> plăci mici: iconiță sus, text dedesubt */
  .pp-tiles .gd-cards {
    gap: 8px;
  }

  .pp-tiles-2 .gd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pp-tiles-3 .gd-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pp-tiles .gd-card {
    align-items: center;
    gap: 4px;
    padding: 11px 8px 12px;
    border-radius: 12px;
    text-align: center;
  }

  .pp-tiles .gd-card-icon {
    width: 32px;
    height: 32px;
    margin: 0 0 2px;
    border-radius: 9px;
  }

  .pp-tiles .gd-card-title {
    font-size: 0.8rem;
    line-height: 1.3;
  }

  .pp-tiles .gd-card-text {
    font-size: 0.74rem;
    line-height: 1.4;
  }

  .pp-tiles-short .gd-card-text,
  .pp-tiles-short .gd-card-more {
    display: none;
  }

  /* Dispozitive, cadou, chips */
  .gd-fact {
    padding: 10px 12px;
  }

  .gd-prose .gd-chips {
    gap: 6px;
  }

  .gd-prose .gd-chips .gd-chip {
    padding: 4px 10px;
    font-size: 0.76rem;
  }

  .gd-prose .gd-figure-pair {
    margin: 14px 0 10px;
  }

  .gd-prose .gd-figure-pair .gd-figure-row {
    max-width: 290px;
    gap: 10px;
  }

  .gd-prose .gd-callout {
    margin-top: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
  }

  /* Întrebări mai strânse */
  .gd-accordion summary {
    gap: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .gd-accordion-body {
    padding: 0 14px 12px;
    font-size: 0.88rem;
  }

  /* Caseta de final */
  .gd-prose .gd-cta-box {
    margin-top: 28px !important;
    padding: 16px;
  }

  .gd-cta-box strong {
    font-size: 1rem;
  }

  .gd-cta-box p {
    font-size: 0.88rem;
  }

  .gd-cta-box .gd-cta-row .gd-cta {
    margin-top: 0;
  }

  /* Autorul rămâne pe desktop; pe telefon data și timpul de citire încap pe un rând. */
  .gd-meta span:nth-child(3) {
    display: none;
  }
}

@media (max-width: 359px) {
  .gd-prose .gd-cta-row .gd-cta,
  .gd-prose .gd-cta-row .gd-cta-ghost {
    padding: 0 8px;
    font-size: 0.78rem;
  }

  .gd-prose .gd-cta-box {
    padding: 14px;
  }

  .pp-tiles-3 .gd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
