/* ==========================================================================
   SwitchROMs — Homepage (Google-style)
   ========================================================================== */

.srh-home {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding: 0;
	background: #fff;
}

/* HERO */
.srh-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 80px 20px 40px;
	min-height: 72vh;
}

/* Logo */
.srh-logo {
	display: block;
	margin-bottom: 8px;
	text-decoration: none;
	max-width: 340px;
	width: 100%;
}
.srh-logo svg { width: 100%; height: auto; }

/* Tagline */
.srh-tagline {
	font-size: 1rem;
	color: #5f6368;
	margin: 0 0 36px;
	text-align: center;
	letter-spacing: 0.01em;
}

/* Search Wrapper */
.srh-search-wrap {
	width: 100%;
	max-width: 620px;
	position: relative;
}
.srh-search-form { width: 100%; }

/* Search Box */
.srh-search-box {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #dfe1e5;
	border-radius: 28px;
	padding: 0 16px;
	height: 54px;
	gap: 10px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.srh-search-box:hover,
.srh-search-box:focus-within {
	box-shadow: 0 4px 20px rgba(0,0,0,0.12);
	border-color: transparent;
}

.srh-search-icon { flex-shrink: 0; display: flex; align-items: center; color: #9aa0a6; }
.srh-search-icon svg { width: 20px; height: 20px; }

.srh-search-input {
	flex: 1;
	border: none;
	outline: none;
	font-size: 1rem;
	color: #202124;
	background: transparent;
	padding: 0;
	font-family: inherit;
}
.srh-search-input::placeholder { color: #9aa0a6; }
.srh-search-input::-webkit-search-cancel-button { display: none; }
.srh-search-input::-ms-clear { display: none; }

.srh-clear-btn {
	flex-shrink: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: #70757a;
	font-size: 1.3rem;
	padding: 0 4px;
	display: flex;
	align-items: center;
	transition: color 0.15s;
}
.srh-clear-btn:hover { color: #202124; }

/* Live Results Dropdown */
.srh-live-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.14);
	border: 1px solid #e8eaed;
	overflow: hidden;
	z-index: 1000;
}
.srh-live-results[hidden] { display: none; }

.srh-result-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 18px;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	transition: background 0.12s ease;
	border-bottom: 1px solid #f1f3f4;
}
.srh-result-item:last-child { border-bottom: none; }
.srh-result-item:hover,
.srh-result-item.is-active { background: #f8f9fa; }

.srh-result-thumb {
	width: 44px;
	height: 60px;
	object-fit: cover;
	border-radius: 5px;
	flex-shrink: 0;
	background: #f1f3f4;
}
.srh-result-thumb--placeholder {
	width: 44px;
	height: 60px;
	border-radius: 5px;
	flex-shrink: 0;
	background: #f1f3f4;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #bdc1c6;
	font-size: 1.3rem;
}

.srh-result-info { flex: 1; min-width: 0; }

.srh-result-title {
	font-size: 0.92rem;
	font-weight: 600;
	color: #202124;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
}

.srh-result-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
}

.srh-result-cat {
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff;
	background: #4285F4;
	padding: 2px 8px;
	border-radius: 20px;
	letter-spacing: 0.03em;
}

.srh-result-size {
	font-size: 0.75rem;
	color: #70757a;
}

.srh-result-status {
	padding: 16px 20px;
	font-size: 0.88rem;
	color: #70757a;
	text-align: center;
}

.srh-result-viewall {
	display: block;
	text-align: center;
	padding: 12px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #4285F4;
	background: #f8f9fa;
	text-decoration: none;
	border-top: 1px solid #e8eaed;
	transition: background 0.12s;
}
.srh-result-viewall:hover { background: #e8f0fe; color: #4285F4; }

/* Action Buttons */
.srh-btn-row {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.srh-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 24px;
	border-radius: 24px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: box-shadow 0.2s ease, background 0.15s ease;
	border: 1px solid transparent;
	font-family: inherit;
	letter-spacing: 0.01em;
}
.srh-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.srh-btn--primary {
	background: #4285F4;
	color: #fff;
	border-color: #4285F4;
}
.srh-btn--primary:hover {
	background: #1a73e8;
	border-color: #1a73e8;
	box-shadow: 0 4px 14px rgba(66,133,244,0.4);
	color: #fff;
	text-decoration: none;
}

.srh-btn--outline {
	background: #fff;
	color: #3c4043;
	border-color: #dadce0;
}
.srh-btn--outline:hover {
	background: #f8f9fa;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
	color: #3c4043;
	text-decoration: none;
}

/* QUICK CATEGORIES */
.srh-categories {
	width: 100%;
	max-width: 700px;
	padding: 0 20px 60px;
}
.srh-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}
.srh-cat-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 16px;
	border-radius: 20px;
	background: #f1f3f4;
	color: #3c4043;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
	border: 1px solid #e8eaed;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}
.srh-cat-chip:hover {
	background: #e8f0fe;
	color: #4285F4;
	border-color: #c5d8fc;
	box-shadow: 0 2px 8px rgba(66,133,244,0.15);
	text-decoration: none;
}
.srh-cat-count {
	font-size: 0.75rem;
	background: #dadce0;
	color: #5f6368;
	padding: 1px 7px;
	border-radius: 10px;
	font-weight: 700;
	transition: background 0.15s, color 0.15s;
}
.srh-cat-chip:hover .srh-cat-count {
	background: #c5d8fc;
	color: #4285F4;
}

/* RESPONSIVE */
@media (max-width: 600px) {
	.srh-hero { padding: 60px 16px 32px; min-height: 80vh; }
	.srh-logo { max-width: 260px; }
	.srh-tagline { font-size: 0.88rem; }
	.srh-search-wrap { max-width: 100%; }
	.srh-btn-row { flex-direction: column; align-items: center; }
	.srh-btn { width: 100%; max-width: 280px; justify-content: center; }
}