/* Prompt box — Festival Prompts Child theme.
   Fresh design, not copied from any other site. Colours come from the
   :root variables in style.css, so rebranding is one edit. */

.fp-prompt-box {
	background: #ffffff;
	border: 1px solid var(--fp-border, #e2e8f0);
	border-radius: 12px;
	padding: 16px;
	margin: 24px 0;
}

.fp-prompt-box__head {
	font-size: 1.05rem;
	margin-bottom: 10px;
	color: var(--fp-text, #0f172a);
}

.fp-prompt-box__preview,
.fp-prompt-box__modal-card pre {
	font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
	font-size: 0.85rem;
	line-height: 1.6;
	white-space: pre-wrap;
	word-break: break-word;
	background: #f8fafc;
	border: 1px solid var(--fp-border, #e2e8f0);
	border-radius: 8px;
	padding: 12px;
	margin: 0 0 12px;
	color: var(--fp-text, #0f172a);
}

.fp-prompt-box__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.fp-prompt-box__copy,
.fp-prompt-box__view {
	background: var(--fp-primary, #0f766e);
	color: #ffffff;
	border: 1px solid var(--fp-primary, #0f766e);
	border-radius: 8px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 0.9rem;
}

.fp-prompt-box__view {
	background: #ffffff;
	color: var(--fp-primary, #0f766e);
}

.fp-prompt-box__launch {
	display: inline-block;
	border: 1px solid var(--fp-border, #e2e8f0);
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 0.9rem;
	text-decoration: none;
	color: var(--fp-text, #0f172a);
	background: #ffffff;
}

.fp-prompt-box__launch--chatgpt {
	border-color: var(--fp-accent, #d97706);
	color: var(--fp-accent, #d97706);
}

/* Modal — plain fixed overlay, no library needed. */
.fp-prompt-box__modal {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	z-index: 9999;
}

.fp-prompt-box__modal[hidden] {
	display: none;
}

.fp-prompt-box__modal-card {
	background: #ffffff;
	border-radius: 12px;
	max-width: 720px;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	padding: 20px;
	position: relative;
}

.fp-prompt-box__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: var(--fp-muted, #64748b);
}

@media (max-width: 640px) {
	.fp-prompt-box {
		padding: 12px;
	}
}
