/* ── CSS VARIABLES ── */
:root {
  --primary: #FF007F;
  --secondary: #00EEFC;
  --background: #0e0e13;
  --surface-container: #19191f;
  --on-surface: #f8f5fd;
  --on-surface-variant: #acaab1;
}

/* ── AMBIENT GLOW ── */
.pc-ambient {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.pc-ambient::before {
  content: '';
  position: absolute; top: -20%; left: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,0,127,0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: pcDrift1 18s ease-in-out infinite alternate;
}
.pc-ambient::after {
  content: '';
  position: absolute; bottom: -20%; right: -5%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,238,252,0.04) 0%, transparent 70%);
  border-radius: 50%;
  animation: pcDrift2 22s ease-in-out infinite alternate;
}
@keyframes pcDrift1 { from { transform: translate(0,0); } to { transform: translate(60px,40px); } }
@keyframes pcDrift2 { from { transform: translate(0,0); } to { transform: translate(-50px,-60px); } }

/* ── BODY ── */
body {
  font-family: 'Space Grotesk', sans-serif;
  padding-top: 72px;
  min-height: 100vh;
}

/* ── MAIN WRAPPER ── */
.pc-wrap {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 5rem;
  position: relative;
  z-index: 1;
}

/* ── PAGE TITLE ── */
.pc-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--on-surface);
  margin: 0 0 0.4rem;
  line-height: 1.1;
}

.pc-title .gradient-text {
  background: linear-gradient(90deg, #FF007F, #00EEFC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,0,127,0.3));
}

/* ── SUBTITLE ── */
.pc-desc {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(248,245,253,0.4);
  margin: 0 0 1.75rem;
}

/* ── CARD ── */
.pc-card {
  background: rgba(37,37,44,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── TEXTAREA ── */
.pc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pc-field label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}

.pc-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  line-height: 1.65;
  resize: vertical;
  box-sizing: border-box;
  background: rgba(14,14,19,0.6);
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.2s;
}
.pc-textarea:focus { border-color: rgba(255,0,127,0.4); }
.pc-textarea::placeholder { color: rgba(248,245,253,0.25); }

/* ── SELECT GRID ── */
.pc-selects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ── SELECT ── */
.pc-select {
  width: 100%;
  padding: 0.65rem 2.2rem 0.65rem 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(14,14,19,0.7);
  border: 1px solid rgba(255,0,127,0.25);
  border-radius: 0.5rem;
  color: var(--on-surface);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF007F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.9rem;
}

.pc-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,0,127,0.12);
}

.pc-select option {
  background: #19191f;
  color: var(--on-surface);
}

/* ── LEGAL NOTICE ── */
.pc-legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.74rem;
  color: #fca5a5;
  line-height: 1.55;
  margin: 0;
  padding-top: 0.25rem;
}

.pc-legal-notice .material-symbols-outlined {
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ── GENERATE BUTTON ── */
#pc-generate-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.5rem;
  background: linear-gradient(135deg, #FF007F, #cc0066);
  border: none;
  border-radius: 9999px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 20px rgba(255,0,127,0.3);
}
#pc-generate-btn .material-symbols-outlined { font-size: 1rem; }
#pc-generate-btn:hover { transform: scale(1.02); box-shadow: 0 0 28px rgba(255,0,127,0.45); }
#pc-generate-btn:active { transform: scale(0.98); }
#pc-generate-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── OUTPUT SECTION ── */
.pc-output-wrap {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ── COPY BLOCK ── */
.pc-copy-block {
  background: rgba(25,25,31,0.8);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--secondary);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  position: relative;
}

.pc-copy-block-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.pc-copy-block-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--on-surface);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

/* ── DISCLAIMER BLOCK ── */
.pc-disclaimer-block {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
  border-left: 3px solid #ef4444;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.pc-disclaimer-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #f87171;
  margin-bottom: 0.5rem;
  display: block;
}

.pc-disclaimer-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #fca5a5;
  margin: 0;
  white-space: pre-wrap;
}

/* ── COPY BUTTON ── */
.pc-copy-btn {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  padding: 0.25rem 0.65rem;
  background: rgba(255,0,127,0.08);
  border: 1px solid rgba(255,0,127,0.22);
  border-radius: 0.35rem;
  color: var(--primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pc-copy-btn:hover { background: rgba(255,0,127,0.18); border-color: rgba(255,0,127,0.45); }
.pc-copy-btn:active { transform: scale(0.96); }
.pc-copy-btn.copied { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.28); color: #4ade80; }

/* ── COMPLIANCE FLAG (blocking) ── */
.pc-compliance-flag {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  border-left: 3px solid #ef4444;
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
}

.pc-compliance-flag-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #f87171;
  margin-bottom: 0.5rem;
}

.pc-compliance-flag-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #fca5a5;
  margin: 0;
}

/* ── COMPLIANCE WARNING (non-blocking) ── */
.pc-compliance-warning {
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.2);
  border-left: 3px solid #fbbf24;
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
}

.pc-compliance-warning-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.pc-compliance-warning-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(251,191,36,0.85);
  margin: 0;
}

/* ── T&C LINK REMINDER ── */
.pc-tc-link-reminder {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  color: var(--secondary);
  opacity: 0.7;
  margin: -0.25rem 0 0.25rem;
  padding: 0 0.25rem;
}

.pc-tc-link-reminder .material-symbols-outlined {
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── TOOL LIMITATION NOTICE ── */
.pc-limitation-notice {
  font-size: 0.74rem;
  color: rgba(248,245,253,0.3);
  line-height: 1.6;
  margin: 0.25rem 0 0;
  text-align: center;
}

/* ── STATUS TEXT ── */
.pc-status {
  font-size: 0.82rem;
  color: var(--on-surface-variant);
  text-align: center;
  padding: 1rem 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  .pc-selects {
    grid-template-columns: 1fr;
  }
  #pc-generate-btn {
    align-self: stretch;
    justify-content: center;
  }
  .pc-wrap {
    padding: 1.5rem 0 4rem;
  }
}
