/* Viral Prompts — Custom CSS overrides & component classes */

/* Base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Inter', system-ui, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #1A1A1A;
	background-color: #F8F6F1;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

a {
	color: #6C5CE7;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
}

/* Card Brutal */
.card-brutal {
	background: #FFFFFF;
	border: 3px solid #1A1A1A;
	border-radius: 16px;
	box-shadow: 4px 4px 0 #1A1A1A;
	overflow: hidden;
	transition: all 0.2s ease;
}

.card-brutal:hover {
	transform: translateY(-2px);
	box-shadow: 6px 6px 0 #1A1A1A;
}

/* Button Brutal */
.btn-brutal {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 2px solid #1A1A1A;
	border-radius: 12px;
	box-shadow: 4px 4px 0 #1A1A1A;
	font-weight: 600;
	padding: 10px 20px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
	font-family: 'Inter', system-ui, sans-serif;
}

.btn-brutal:hover {
	text-decoration: none;
}

.btn-brutal:active {
	box-shadow: 1px 1px 0 #1A1A1A;
	transform: translate(1px, 1px);
}

.btn-primary {
	background: #6C5CE7;
	color: #FFFFFF;
}

.btn-primary:hover {
	background: #5B4BD5;
	color: #FFFFFF;
}

.btn-cta {
	background: #c9400d;
	color: #FFFFFF;
}

.btn-cta:hover {
	background: #a3350b;
	color: #FFFFFF;
}

.btn-outline {
	background: #FFFFFF;
	color: #1A1A1A;
}

.btn-outline:hover {
	background: #F3F4F6;
}

.btn-sm {
	padding: 6px 14px;
	font-size: 13px;
	border-radius: 10px;
	box-shadow: 3px 3px 0 #1A1A1A;
}

/* Chips */
.chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 24px;
	font-size: 13px;
	font-weight: 500;
	border: 1.5px solid;
}

.chip-nano-banana {
	background: #E8F0FE;
	color: #1a56db;
	border-color: #1a56db;
}

.chip-chatgpt {
	background: #D1FAE5;
	color: #047857;
	border-color: #047857;
}

.chip-midjourney {
	background: #E0E3FF;
	color: #3730a3;
	border-color: #3730a3;
}

/* Prompt Block */
.prompt-block {
	background: #2D2D2D;
	color: #E5E7EB;
	font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
	font-size: 14px;
	padding: 20px;
	border-radius: 12px;
	border: 3px solid #1A1A1A;
	line-height: 1.7;
	position: relative;
	white-space: pre-wrap;
	word-break: break-word;
}

/* Masonry Grid */
.masonry-grid {
	columns: 4;
	column-gap: 20px;
}

.masonry-grid .masonry-item {
	break-inside: avoid;
	margin-bottom: 20px;
}

/* Filter Bar */
.filter-bar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #F8F6F1;
	border-bottom: 3px solid #1A1A1A;
	padding: 16px 0;
}

/* Scrollbar for horizontal scroll areas */
.scroll-row {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	padding-bottom: 10px;
	scrollbar-width: thin;
}

.scroll-row::-webkit-scrollbar {
	height: 6px;
}

.scroll-row::-webkit-scrollbar-thumb {
	background: #D1D5DB;
	border-radius: 3px;
}

/* Dark mode */
.dark body,
body.dark {
	background-color: #1A1A1A;
	color: #E5E7EB;
}

.dark .card-brutal {
	background: #2D2D2D;
	border-color: #4B5563;
	box-shadow: 4px 4px 0 #000000;
}

.dark .card-brutal:hover {
	box-shadow: 6px 6px 0 #000000;
}

.dark .filter-bar {
	background: #1A1A1A;
	border-bottom-color: #4B5563;
}

.dark .btn-outline {
	background: #2D2D2D;
	color: #E5E7EB;
	border-color: #4B5563;
}

/* Search Input Brutal */
.search-brutal {
	border: 3px solid #1A1A1A;
	border-radius: 16px;
	box-shadow: 4px 4px 0 #1A1A1A;
	padding: 14px 20px;
	font-size: 16px;
	width: 100%;
	font-family: 'Inter', system-ui, sans-serif;
	background: #FFFFFF;
	outline: none;
	transition: box-shadow 0.15s ease;
}

.search-brutal:focus {
	box-shadow: 6px 6px 0 #6C5CE7;
	border-color: #6C5CE7;
}

/* Stats display on cards */
.stat-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: #6B7280;
}

/* Form steps */
.form-step {
	display: none;
}

.form-step.active {
	display: block;
}

/* Step indicators */
.step-indicator {
	display: flex;
	gap: 8px;
	align-items: center;
}

.step-dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #D1D5DB;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
	color: #6B7280;
	background: #FFFFFF;
}

.step-dot.active {
	background: #6C5CE7;
	color: #FFFFFF;
	border-color: #6C5CE7;
}

.step-dot.completed {
	background: #00B894;
	color: #FFFFFF;
	border-color: #00B894;
}

.step-line {
	flex: 1;
	height: 2px;
	background: #D1D5DB;
}

.step-line.active {
	background: #6C5CE7;
}

/* Responsive */
@media (max-width: 1024px) {
	.masonry-grid {
		columns: 3;
	}
}

@media (max-width: 768px) {
	.masonry-grid {
		columns: 2;
	}
}

@media (max-width: 480px) {
	.masonry-grid {
		columns: 1;
	}
}

/* Loading spinner */
.vp-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #E5E7EB;
	border-top: 3px solid #6C5CE7;
	border-radius: 50%;
	animation: vp-spin 0.6s linear infinite;
}

@keyframes vp-spin {
	to { transform: rotate(360deg); }
}

/* Like button states */
.vp-like-btn.liked svg {
	fill: #EF4444;
	color: #EF4444;
}

/* Copy button states */
.vp-copy-btn.copied {
	background: #00B894 !important;
}

/* Fade in animation for loaded cards */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.fade-in-up {
	animation: fadeInUp 0.3s ease forwards;
}
