:root {
	--bg-color: #ffffff;
	--text-main: #000000;
	--text-muted: #6b7280;
	--accent-color: #2563eb;
	--font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-family);
	background-color: var(--bg-color);
	color: var(--text-main);
	height: 100dvh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 2rem;
	max-width: 100%;
}

.logo-wrapper {
	position: relative;
	margin-bottom: 2.5rem;
	animation: float 6s ease-in-out infinite;
	display: block;
}

.logo {
	max-width: 240px;
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	filter: drop-shadow(0 10px 15px -3px rgba(0, 0, 0, 0.05));
}

.logo:hover {
	transform: scale(1.04) rotate(-0.5deg);
}

.title {
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	opacity: 0;
	animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.subtitle {
	font-size: 1.1rem;
	color: var(--text-muted);
	font-weight: 400;
	margin-bottom: 2rem;
	max-width: 400px;
	line-height: 1.5;
	opacity: 0;
	animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.email-link, .back-link {
	font-size: 0.9rem;
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	position: relative;
	padding-bottom: 2px;
	transition: color 0.3s ease;
	opacity: 0;
	animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.email-link::after, .back-link::after {
	content: '';
	position: absolute;
	width: 100%;
	transform: scaleX(0);
	height: 1.5px;
	bottom: 0;
	left: 0;
	background-color: var(--accent-color);
	transform-origin: bottom right;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.email-link:hover, .back-link:hover {
	color: var(--accent-color);
}

.email-link:hover::after, .back-link:hover::after {
	transform: scaleX(1);
	transform-origin: bottom left;
}

.prompts-page {
	width: 100%;
	height: 100dvh;
	overflow-y: auto;
	padding: 1.5rem;
}

.prompts-header,
.prompts-content {
	width: min(100%, 1120px);
	margin: 0 auto;
}

.prompts-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e5e7eb;
}

.prompts-brand {
	display: inline-flex;
	align-items: center;
}

.prompts-logo {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: contain;
}

.prompts-back-link {
	color: var(--text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s ease;
}

.prompts-back-link:hover {
	color: var(--text-main);
}

.prompts-content {
	padding: 3.5rem 0;
}

.prompts-intro {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2rem;
}

.prompts-intro h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
}

.prompts-intro p,
.prompts-count {
	color: var(--text-muted);
}

.prompts-intro p {
	margin-top: 0.75rem;
	font-size: 1rem;
	line-height: 1.5;
}

.prompts-count {
	flex: 0 0 auto;
	font-size: 0.875rem;
	font-weight: 600;
}

.prompts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.75rem;
	list-style: none;
}

.prompt-card {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #ffffff;
	overflow: hidden;
}

.prompt-card-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 64px;
	padding: 1rem 1.125rem;
	color: var(--text-main);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.prompt-card-link:hover {
	background: #f8fafc;
	color: var(--accent-color);
}

.prompt-detail-content {
	width: min(100%, 1280px);
	margin: 0 auto;
	padding: 3.5rem 0 5rem;
}

.prompt-detail-intro {
	margin-bottom: 2.5rem;
}

.prompt-eyebrow,
.prompt-detail-intro > p:last-child {
	color: var(--text-muted);
	font-size: 0.875rem;
	font-weight: 600;
}

.prompt-eyebrow {
	margin-bottom: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.prompt-detail-intro h1 {
	max-width: 900px;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.prompt-detail-intro > p:last-child {
	margin-top: 1rem;
}

.prompt-detail-layout {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

.prompt-file-index {
	position: sticky;
	top: 1.5rem;
	max-height: calc(100dvh - 3rem);
	overflow-y: auto;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.prompt-file-index > p {
	margin-bottom: 0.75rem;
	color: var(--text-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.prompt-file-index ul {
	display: grid;
	gap: 0.25rem;
	list-style: none;
}

.prompt-file-index a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	color: var(--text-main);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
}

.prompt-file-index a:hover {
	background: #f1f5f9;
}

.prompt-file-index a span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.prompt-file-index small {
	color: var(--text-muted);
	font-size: 0.65rem;
	text-transform: uppercase;
}

.prompt-file-list {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.prompt-file {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #ffffff;
	overflow: clip;
	scroll-margin-top: 1.5rem;
}

.prompt-file[open] {
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.prompt-file-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.125rem;
	cursor: pointer;
	list-style-position: outside;
}

.prompt-file-summary::marker {
	color: var(--text-muted);
}

.prompt-file-heading,
.prompt-file-meta {
	display: flex;
	align-items: center;
}

.prompt-file-heading {
	min-width: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
}

.prompt-file-heading strong,
.prompt-file-heading small {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.prompt-file-heading strong {
	font-size: 0.95rem;
}

.prompt-file-heading small,
.prompt-file-size {
	color: var(--text-muted);
	font-size: 0.75rem;
}

.prompt-file-meta {
	flex: 0 0 auto;
	gap: 0.65rem;
}

.prompt-file-badge {
	padding: 0.3rem 0.5rem;
	border-radius: 999px;
	background: #e0f2fe;
	color: #075985;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.prompt-file-badge-warning {
	background: #fef3c7;
	color: #92400e;
}

.prompt-viewer-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.65rem 1rem;
	border-top: 1px solid #e2e8f0;
	border-bottom: 1px solid #1e293b;
	background: #f8fafc;
	color: var(--text-muted);
	font-size: 0.75rem;
	font-weight: 600;
}

.prompt-copy-button {
	padding: 0.4rem 0.7rem;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	background: #ffffff;
	color: #334155;
	font: inherit;
	cursor: pointer;
}

.prompt-copy-button:hover {
	border-color: #94a3b8;
	color: #0f172a;
}

.prompt-viewer {
	max-height: 70dvh;
	margin: 0;
	overflow: auto;
	padding: 1.25rem;
	background: #0f172a;
	color: #e2e8f0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
	font-size: 0.8rem;
	line-height: 1.65;
	tab-size: 2;
}

.prompt-viewer-text {
	white-space: pre-wrap;
	word-break: break-word;
}

.json-key {
	color: #7dd3fc;
}

.json-string {
	color: #86efac;
}

.json-number {
	color: #fda4af;
}

.json-boolean,
.json-null {
	color: #c4b5fd;
}

.prompt-empty-state {
	padding: 4rem 2rem;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	text-align: center;
}

.prompt-empty-state h2 {
	font-size: 1.25rem;
}

.prompt-empty-state p {
	margin-top: 0.5rem;
	color: var(--text-muted);
	line-height: 1.5;
}

@media (max-width: 900px) {
	.prompt-detail-layout {
		grid-template-columns: 1fr;
	}

	.prompt-file-index {
		position: static;
		max-height: none;
	}
}

@media (max-width: 640px) {
	.prompts-page {
		padding: 1rem;
	}

	.prompts-content {
		padding: 2.5rem 0;
	}

	.prompts-intro {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.prompts-grid {
		grid-template-columns: 1fr;
	}

	.prompt-detail-content {
		padding: 2.5rem 0 4rem;
	}

	.prompt-file-summary {
		align-items: flex-start;
		flex-direction: column;
	}

	.prompt-file-meta {
		width: 100%;
		justify-content: space-between;
	}
}

@keyframes float {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-8px);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
