:root {
	--bg: #0b0b0d;
	--card-bg: rgba(255, 255, 255, 0.04);
	--muted: #9aa1a6;
	--accent: #6ee7b7;
	--radius: 14px;
}

/* Reset + base */
* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
	background: linear-gradient(180deg, #07101a 0%, #0d0f14 100%);
	color: #e6eef3;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

body {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.main {
	width: min(1200px, 96vw);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
}

/* Cards grid */
.cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.5rem;
	width: 100%;
	justify-items: center;
}

/* Input */

#search {
	margin-top: 40px;
	margin-bottom: 10px;
	border-bottom: 4px solid rgba(0, 0, 255, 0.5);
	box-shadow: -10px 4px 8px rgba(0, 0, 255, 0.2),
		10px 4px 8px rgba(0, 0, 255, 0.2);
}

input[type="text"] {
	width: min(620px, 92vw);
	max-width: 100%;
	background: var(--bg);
	color: #e6eef3;
	border: 1px solid rgba(255, 255, 255, 0.04);
	padding: 12px 18px;
	border-radius: 999px;
	box-shadow: 0 4px 18px rgba(2, 6, 23, 0.6);
	outline: none;
	transition: box-shadow .18s ease, transform .12s ease, border-color .12s ease;
	font-size: 16px;
}

input[type="text"]::placeholder {
	color: var(--muted);
}

input[type="text"]:focus {
	box-shadow: 0 8px 36px rgba(9, 86, 116, 0.12);
	transform: translateY(-1px);
	border-color: rgba(110, 231, 183, 0.25);
}

/* Card */
.card {
	width: 100%;
	max-width: 320px;
	height: 420px;
	position: relative;
	border-radius: var(--radius);
	overflow: hidden;
	background: var(--card-bg);
	box-shadow: 0 10px 30px rgba(2, 6, 23, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.02);
	transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
	transform: translateY(-8px) scale(1.01);
	box-shadow: 0 20px 60px rgba(2, 6, 23, 0.75);
}

/* Image */
.bg-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	z-index: 0;
	/* below overlay and content */
}

/* Subtle overlay for content */
.blurred-layer {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 70px;
	background-color: rgba(0, 0, 0, 0.45);
	/* semi-transparent dark overlay */
	z-index: 1;
}

/* Content */
.content {
	position: absolute;
	bottom: 0;
	width: 100%;
	z-index: 2;
	padding: 8px 12px;
	display: flex;
	flex-direction: column;
}

.content h3 {
	margin: 0;
	font-size: 16px;
}

.content p {
	margin: 0;
	font-size: 12px;
}

/* No results */
.no-results {
	color: var(--muted);
	font-size: 16px;
	text-align: center;
	width: 100%;
}

/* Responsive */
@media (max-width: 420px) {
	.card {
		width: 92vw;
		height: 380px;
	}

	input[type="text"] {
		width: 92vw;
	}
}