/* ==========================================================================
   Paddy Prompt Studio — Release promo card maker
   Layers on /blog/style.css (same dark indigo/cyan palette and type scale).
   ========================================================================== */
.pc {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: 22px;
  padding: 1.1rem 1.25rem 1.25rem; margin: 0.5rem 0 1rem;
  box-shadow: 0 30px 70px -40px rgba(99, 102, 241, 0.6);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.25rem;
}
.pc button:focus-visible, .pc select:focus-visible, .pc input:focus-visible, .pc label.pc-drop:focus-within { outline: 2px solid #22d3ee; outline-offset: 2px; }

.pc-form { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.pc-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.3rem; text-align: center; cursor: pointer;
  min-height: 110px; padding: 0.9rem; border-radius: 14px; border: 2px dashed rgba(129, 140, 248, 0.45);
  background: rgba(129, 140, 248, 0.06); color: var(--text-muted); font-size: 0.9rem;
}
.pc-drop strong { color: #fff; font-size: 1rem; }
.pc-drop.over { background: rgba(34, 211, 238, 0.12); border-color: #22d3ee; }
.pc-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pc-ctl { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.74rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; }
.pc-ctl input[type="text"], .pc-ctl input[type="date"], .pc-ctl select {
  font: inherit; font-size: 0.95rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text);
  background: #0b0d14; border: 1px solid var(--border); border-radius: 10px; padding: 0.55rem 0.65rem; min-height: 44px; width: 100%;
  color-scheme: dark;
}
.pc-ctl[hidden] { display: none; }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.pc-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; }
.pc-check { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); min-height: 40px; cursor: pointer; }
.pc-check input { width: 1.05rem; height: 1.05rem; accent-color: #818cf8; margin: 0; }
.pc-color { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); }
.pc-color input { width: 44px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }

.pc-seg { display: flex; flex-wrap: wrap; gap: 0.3rem; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 12px; padding: 0.22rem; }
.pc-seg button {
  flex: 1 1 auto; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
  border: 0; border-radius: 9px; padding: 0.5rem 0.65rem; min-height: 40px; background: transparent; color: var(--text-muted);
}
.pc-seg button[aria-pressed="true"] { background: rgba(99, 102, 241, 0.26); color: #fff; }

.pc-preview { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.pc-stage {
  display: flex; align-items: center; justify-content: center; min-height: 420px; padding: 0.75rem;
  border-radius: 16px; background: repeating-conic-gradient(rgba(255,255,255,0.03) 0 25%, transparent 0 50%) 0 0 / 22px 22px, rgba(0,0,0,0.3);
  border: 1px solid var(--border-soft);
}
.pc-stage canvas { display: block; max-width: 100%; max-height: 560px; width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8); }
.pc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; cursor: pointer;
  min-height: 48px; padding: 0.6rem 1.15rem; border-radius: 12px; font: inherit; font-size: 0.95rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid var(--border);
}
.pc-btn.primary { border: 0; background: linear-gradient(135deg, #818cf8, #22d3ee); color: #0b0620; }
.pc-btn:hover { filter: brightness(1.08); }
.pc-msg { margin: 0; font-size: 0.88rem; color: var(--text-muted); min-height: 1.3em; }
.pc-msg.err { color: #fcd34d; font-weight: 600; }
.pc .aff-card { margin: 0.25rem 0 0; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
table.data caption { text-align: left; padding: 0.85rem 1rem 0.2rem; color: var(--text-dim); font-size: 0.82rem; }
table.data th, table.data td { padding: 0.6rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
table.data th { color: var(--indigo); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.data tr:last-child td { border-bottom: 0; }

@media (max-width: 860px) {
  .pc { grid-template-columns: 1fr; }
  .pc-preview { order: -1; }
  .pc-stage { min-height: 300px; }
  .pc-stage canvas { max-height: 440px; }
}
@media (max-width: 480px) { .pc { padding: 0.85rem; } .pc-row { grid-template-columns: 1fr; } }
