@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700&display=swap");

/* ─── Tokens ─── */
:root {
	--bg: #fafafa;
	--surface: #ffffff;
	--line: #e2e8f0;
	--text: #1e293b;
	--muted: #64748b;
	--brand: #1d4ed8;
	/* Primary Blue */
	--brand-hover: #1e40af;
	--accent: #f97316;
	/* Orange Accent */
	--accent-hover: #ea580c;
	--content-bg: #f8fafc;
	--shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
	--shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
	--radius: 12px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	background: var(--bg);
	font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
	overflow-x: hidden;
}

/* ═══════════════════════════════════
   TOPBAR
   ═══════════════════════════════════ */
.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 40px;
	border-bottom: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.98);
}

/* 1. Left Section (Logo) */
.nav-left {
	flex: 1;
	display: flex;
	justify-content: flex-start;
	align-items: center;
}

.brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	color: var(--text);
}

.brand-logo {
	/* Scalable logo size */
	height: 44px;
	width: auto;
	object-fit: contain;
}

.brand-name {
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--brand);
}

/* 2. Center Section (Navigation) */
.nav-center {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 32px; /* Uniform spacing between items */
}

.nav-center a {
	text-decoration: none;
	color: var(--text);
	font-weight: 600;
	font-size: 0.95rem;
	transition: color 0.2s ease;
}

.nav-center a:hover,
.nav-center a.active {
	color: var(--brand);
}

/* 3. Right Section (Actions) */
.nav-right {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
}

.login-link {
	color: var(--brand);
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
}

.login-link:hover {
	text-decoration: underline;
}

.signup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 24px;
	border: none;
	border-radius: 8px;
	background: var(--brand);
	color: #fff;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}

.signup-btn:hover {
	background: var(--brand-hover);
}

/* ═══════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════ */
.hero {
	position: relative;
	text-align: center;
	padding: 80px 24px 100px;
	background-image: url("https://images.unsplash.com/photo-1540039155732-d67b0d7713ad?auto=format&fit=crop&q=80&w=2000");
	background-size: cover;
	background-position: center;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.82);
	/* Overlay brightness */
	z-index: 1;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
}

.hero h1 {
	margin: 0 0 16px;
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	font-weight: 800;
	color: var(--brand);
	line-height: 1.2;
}

.hero p {
	font-size: 1.1rem;
	color: var(--text);
	margin: 0 0 40px;
	font-weight: 500;
}

/* Search Bar */
.search-bar {
	display: flex;
	max-width: 640px;
	margin: 0 auto;
	border-radius: 999px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	padding: 6px;
}

.search-bar input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	color: var(--text);
	font-size: 1rem;
	padding: 14px 24px;
}

.search-bar input::placeholder {
	color: var(--muted);
}

.search-submit {
	padding: 12px 32px;
	border: none;
	border-radius: 999px;
	background: var(--accent);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s;
}

.search-submit:hover {
	background: var(--accent-hover);
}

/* ═══════════════════════════════════
   CONTENT AREA
   ═══════════════════════════════════ */
.content-area {
	background: var(--content-bg);
	padding: 56px 0;
	min-height: 50vh;
}

.section {
	max-width: 1100px;
	margin: 0 auto 56px;
	padding: 0 28px;
}

.section-title {
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: 1.5rem;
	margin: 0 0 24px;
	font-weight: 700;
	color: var(--brand);
}

.title-underline {
	position: relative;
	display: inline-block;
}

.title-underline::after {
	content: "";
	position: absolute;
	bottom: -6px;
	left: 0;
	width: 60px;
	height: 4px;
	background: var(--accent);
	border-radius: 2px;
}

/* ═══════════════════════════════════
   FILTER DROPDOWNS
   ═══════════════════════════════════ */
.filter-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 220px;
	flex: 1;
	max-width: 320px;
}

.filter-group label {
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--muted);
}

.filter-select {
	appearance: none;
	-webkit-appearance: none;
	padding: 12px 40px 12px 16px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background-color: var(--surface);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 14px;
	color: var(--text);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
	outline: none;
}

.filter-select:hover {
	border-color: var(--brand);
}

.filter-select:focus {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}

/* ═══════════════════════════════════
   EVENT GRID
   ═══════════════════════════════════ */
.event-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, 1fr);
}

.category-group-title {
	grid-column: 1 / -1;
	margin: 16px 0 8px;
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--brand);
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
}

.event-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.event-cover {
	position: relative;
	height: 160px;
	background-color: #e2e8f0;
	background-size: cover;
	background-position: center;
}

.event-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	height: calc(100% - 160px);
}

.event-title {
	margin: 0 0 8px;
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
}

.event-category-tag {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	color: var(--brand);
	background: rgba(29, 78, 216, 0.08);
	padding: 4px 10px;
	border-radius: 6px;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.event-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
	flex-grow: 1;
}

.event-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--muted);
	font-size: 0.85rem;
}

.event-meta svg {
	color: var(--accent);
	flex-shrink: 0;
}

.event-price {
	font-family: "Sora", "Segoe UI", sans-serif;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--brand);
	margin-bottom: 14px;
}

.event-btn {
	border: none;
	border-radius: 8px;
	padding: 12px;
	background: #2d3a6e;
	color: #fff;
	font-weight: 700;
	font-family: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.2s, transform 0.15s;
	width: 100%;
	letter-spacing: 0.02em;
}

.event-btn:hover {
	background: #222e5a;
	transform: translateY(-1px);
}

.empty-state {
	margin-top: 20px;
	text-align: center;
	color: var(--muted);
	font-weight: 600;
}

.explore-all-wrap {
	text-align: center;
	margin-top: 40px;
}

.explore-all-btn {
	display: inline-flex;
	align-items: center;
	background: var(--brand);
	color: #fff;
	padding: 12px 32px;
	border-radius: 8px;
	border: none;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
}

.explore-all-btn:hover {
	background: var(--brand-hover);
}

/* ═══════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════ */
.organizer-banner {
	background: #111827;
	color: #fff;
	border-radius: 16px;
	padding: 64px 32px;
	text-align: center;
}

.organizer-banner h2 {
	font-family: "Sora", sans-serif;
	font-size: 2rem;
	margin: 0 0 16px;
	font-weight: 700;
}

.organizer-banner p {
	color: #9ca3af;
	font-size: 1.1rem;
	margin: 0 0 32px;
	line-height: 1.6;
}

.apply-organizer-btn {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	padding: 14px 36px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	font-size: 1.05rem;
	transition: background 0.2s;
}

.apply-organizer-btn:hover {
	background: var(--accent-hover);
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.footer {
	background: #ffffff;
	padding: 64px 40px 24px;
	border-top: 1px solid var(--line);
}

.footer-container {
	max-width: 700px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 48px;
	text-align: center;
}

.footer-brand {
	font-family: "Sora", sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--brand);
	display: block;
	margin-bottom: 24px;
}

.footer-col p {
	color: var(--muted);
	font-size: 0.95rem;
	margin: 0 0 8px;
}

.footer-col h4 {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--brand);
}

.footer-col a {
	display: block;
	color: var(--muted);
	text-decoration: none;
	margin-bottom: 12px;
	font-size: 0.95rem;
	transition: color 0.2s;
}

.footer-col a:hover {
	color: var(--brand);
}

.footer-bottom {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
	border-top: 1px solid var(--line);
	padding-top: 24px;
	color: var(--muted);
	font-size: 0.9rem;
}

/* ═══════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════ */
@media (max-width: 1080px) {
	.event-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.topbar {
		padding: 14px 20px;
	}

	.main-nav {
		display: none;
	}

	.event-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.footer-container {
		grid-template-columns: 1fr;
	}
}

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

	.hero h1 {
		font-size: 1.8rem;
	}

	.search-bar {
		flex-direction: column;
		border-radius: 12px;
		background: transparent;
		box-shadow: none;
		gap: 12px;
	}

	.search-bar input {
		background: #fff;
		border-radius: 8px;
	}

	.search-submit {
		border-radius: 8px;
	}
}