/* pastas.css — tela "Drive <app>": índice de pastas, pasta aberta, envio e lista de vídeos. */

/* ---------- Medidores (armazenamento, posts do mês) ---------- */
.medidores { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5) var(--s-7); padding: var(--s-5) var(--s-6); }
.medidor { display: grid; gap: var(--s-2); }
.medidor-t { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-sm); color: var(--txt-2); }
.medidor-t b { color: var(--txt); }
.medidor-n { font-size: var(--fs-xs); color: var(--txt-3); }
.medidor-err { color: var(--err); }

/* ---------- Índice: grade de pastas ---------- */
.pastas { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pasta {
  width: 100%; height: 100%; display: grid; gap: var(--s-2); padding: var(--s-3); text-align: left;
  border: 1px solid var(--brd); border-radius: var(--r-lg); background: var(--surf);
  transition: border-color var(--dur-1), box-shadow var(--dur-2), transform var(--dur-2) var(--ease);
}
.pasta:hover { border-color: var(--brd-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.mosaico {
  display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md);
  background:
    radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%),
    radial-gradient(70% 110% at 0% 100%, color-mix(in srgb, var(--brand-1) 20%, transparent), transparent 70%),
    var(--surf-2);
  color: var(--acc-txt);
}
.mosaico .ic { width: 32px; height: 32px; stroke-width: 1.5; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; }
.mosaico-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; place-items: stretch; }
.pasta-nome { padding: var(--s-1) var(--s-1) 0; font-family: var(--font-display); font-weight: var(--fw-semi); font-size: var(--fs-lg); letter-spacing: var(--ls-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pasta-meta { padding: 0 var(--s-1); font-size: var(--fs-sm); color: var(--txt-3); }
.pasta-pe { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 32px; margin-top: var(--s-1); padding: var(--s-2) var(--s-1) 0; border-top: 1px solid var(--brd); }
.pasta-modo { font-size: var(--fs-xs); color: var(--txt-3); }
.pasta-nova { place-content: center; justify-items: center; min-height: 200px; border-style: dashed; border-color: var(--brd-2); background: none; color: var(--txt-3); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.pasta-nova:hover { color: var(--acc-txt); border-color: var(--acc); transform: none; box-shadow: none; }
.pasta-nova .ic { width: 28px; height: 28px; stroke-width: 1.5; }

/* ---------- Pasta aberta ---------- */
.voltar { display: inline-flex; align-items: center; gap: var(--s-1); margin: 0 0 var(--s-2) calc(var(--s-3) * -1); }
.voltar .ic { width: 16px; height: 16px; }
.pst-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; margin-bottom: var(--s-6); }
.pst-cols .cfg-grupo { align-self: start; }
.pst-cols .cfg-row { min-height: 56px; }

.drop {
  display: grid; justify-items: center; align-content: center; gap: var(--s-3); padding: var(--s-6) var(--s-5); text-align: center;
  border: 1.5px dashed var(--brd-2); border-radius: var(--r-lg); background: var(--surf-2);
  transition: border-color var(--dur-1), background var(--dur-1);
}
.drop > .ic { width: 32px; height: 32px; color: var(--acc-txt); stroke-width: 1.5; }
.drop p { display: grid; gap: 2px; }
.drop p span { font-size: var(--fs-sm); color: var(--txt-3); }
.drop.sobre { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 10%, var(--surf-2)); }
.drop-acoes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2); }
.drop.ocupada .drop-acoes { display: none; }
.drop-prog { width: 100%; max-width: 420px; display: grid; gap: var(--s-2); }
.drop-prog p { font-size: var(--fs-sm); color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-prog small { font-size: var(--fs-xs); color: var(--txt-3); }
.drop-travada > .ic { color: var(--txt-3); }

.pst-lista-topo { margin-bottom: var(--s-3); }
.videos { list-style: none; margin: 0; padding: 0 var(--s-3); border: 1px solid var(--brd); border-radius: var(--r-md); background: var(--surf-2); }
.video { display: flex; align-items: center; gap: var(--s-3); min-height: 64px; padding: var(--s-2) 0; }
.video + .video { border-top: 1px solid var(--brd); }
.video-thumb { display: grid; place-items: center; width: 30px; height: 48px; flex: none; overflow: hidden; border-radius: 6px; background: var(--surf-3); color: var(--txt-3); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-thumb .ic { width: 16px; height: 16px; }
.video-id { flex: 1; min-width: 0; display: grid; gap: 2px; }
.video-id b { font-size: var(--fs-sm); font-weight: var(--fw-medium); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-id small { font-size: var(--fs-xs); color: var(--txt-3); }
.video .btn-ic { color: var(--txt-3); }
.video .btn-ic:hover { color: var(--err); background: color-mix(in srgb, var(--err) 12%, transparent); }

@media (max-width: 760px) {
  .ph-acao .btn-p { width: 100%; }
  .medidores { padding: var(--s-4); }
  .pastas { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
  .pasta-nova { min-height: 160px; }
  .pst-cols { grid-template-columns: minmax(0, 1fr); }
  .ph-acao .card-acoes { margin-left: calc(var(--s-3) * -1); }
  .video .selo { display: none; }
}
