/*
Theme Name: UZWay Addons
Theme URI: https://addons.uzway.com/
Author: UZWay
Description: Static addon marketplace mockup for UZWay Browser.
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: uzway-addons
*/

:root {
	--bg: #f7f8ff;
	--panel: #ffffff;
	--panel-soft: #f2f4ff;
	--line: #e7eafb;
	--text: #101322;
	--muted: #68708a;
	--muted-2: #939ab1;
	--primary: #4058ff;
	--primary-2: #7847f4;
	--green: #29b773;
	--blue: #4b83ff;
	--orange: #ff9a3d;
	--pink: #f05eb8;
	--shadow: 0 18px 45px rgba(42, 49, 102, 0.08);
	--shadow-strong: 0 26px 70px rgba(65, 80, 170, 0.18);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	background: var(--bg);
	color: var(--text);
	letter-spacing: 0;
}

body {
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(circle at 58% 13%, rgba(116, 86, 255, 0.14), transparent 34%),
		linear-gradient(180deg, #fbfcff 0%, #f7f8ff 100%);
	color: var(--text);
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

.addon-shell {
	display: grid;
	grid-template-columns: 246px minmax(0, 1fr);
	min-height: 100vh;
}

.sidebar {
	position: sticky;
	top: 0;
	display: flex;
	flex-direction: column;
	height: 100vh;
	padding: 31px 24px 24px;
	border-right: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(22px);
}

.brand {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 43px;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	box-shadow: 0 12px 24px rgba(69, 82, 255, 0.28);
	color: #fff;
}

.brand-text strong {
	display: block;
	font-size: 15px;
	line-height: 1.1;
}

.brand-text span {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
}

.nav-group {
	display: grid;
	gap: 8px;
	padding-bottom: 26px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--line);
}

.nav-group.secondary {
	border-bottom: 0;
}

.nav-item {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 44px;
	padding: 0 13px;
	border-radius: 8px;
	color: #697189;
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.nav-item svg {
	width: 18px;
	height: 18px;
}

.nav-item.active,
.nav-item:hover {
	background: #f0f2ff;
	color: var(--primary);
}

.publish-card {
	margin-top: auto;
	padding: 21px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: linear-gradient(180deg, #ffffff 0%, #f4f5ff 100%);
	box-shadow: var(--shadow);
}

.publish-card strong {
	display: block;
	margin-bottom: 11px;
	font-size: 15px;
	line-height: 1.35;
}

.publish-card p {
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.65;
}

.ghost-button,
.primary-button,
.install-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 42px;
	border-radius: 8px;
	border: 0;
	font-weight: 750;
	text-decoration: none;
	white-space: nowrap;
}

.ghost-button {
	width: 100%;
	padding: 0 14px;
	border: 1px solid #d8ddff;
	background: #fff;
	color: var(--primary);
	font-size: 13px;
}

.theme-switch {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 43px;
	margin-top: 22px;
	padding: 0 15px;
	border: 1px solid var(--line);
	border-radius: 8px;
	color: #68708a;
	font-size: 13px;
}

.legal {
	margin-top: 35px;
	color: #a0a6b8;
	font-size: 12px;
	line-height: 1.9;
}

.main {
	min-width: 0;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: grid;
	grid-template-columns: minmax(280px, 540px) 1fr auto auto;
	align-items: center;
	gap: 24px;
	min-height: 88px;
	padding: 0 40px;
	border-bottom: 1px solid rgba(231, 234, 251, 0.75);
	background: rgba(255, 255, 255, 0.76);
	backdrop-filter: blur(22px);
}

.search {
	position: relative;
}

.search svg {
	position: absolute;
	top: 50%;
	left: 18px;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: #8790ab;
}

.search input {
	width: 100%;
	height: 48px;
	padding: 0 58px 0 50px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.9);
	color: var(--text);
	outline: none;
}

.search kbd {
	position: absolute;
	top: 50%;
	right: 14px;
	padding: 3px 8px;
	border: 1px solid #d9def2;
	border-radius: 7px;
	background: #f8f9ff;
	color: #7a829b;
	font-size: 12px;
	transform: translateY(-50%);
}

.login-link {
	color: var(--primary);
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}

.primary-button {
	min-width: 190px;
	padding: 0 22px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: #fff;
	box-shadow: 0 16px 32px rgba(64, 88, 255, 0.25);
	font-size: 14px;
}

.content {
	width: min(100%, 980px);
	margin: 0 auto;
	padding: 62px 36px 70px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 430px;
	gap: 54px;
	align-items: center;
	min-height: 300px;
}

.hero-copy h1 {
	max-width: 560px;
	margin: 0 0 22px;
	font-size: clamp(42px, 5vw, 58px);
	line-height: 0.97;
	font-weight: 870;
	letter-spacing: 0;
}

.hero-copy h1 span {
	display: block;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-copy p {
	max-width: 470px;
	margin: 0 0 28px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.7;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.hero-actions .primary-button {
	min-width: 190px;
}

.secondary-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 42px;
	padding: 0 20px;
	border: 1px solid #dfe3f8;
	border-radius: 8px;
	background: #fff;
	color: #23283b;
	font-size: 14px;
	font-weight: 760;
	text-decoration: none;
}

.hero-art {
	position: relative;
	min-height: 318px;
}

.browser-card {
	position: absolute;
	inset: 36px 28px 34px 60px;
	border: 1px solid rgba(126, 132, 220, 0.15);
	border-radius: 26px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(240, 238, 255, 0.82)),
		linear-gradient(135deg, #fff, #eef1ff);
	box-shadow: var(--shadow-strong);
	transform: rotate(8deg);
}

.browser-top {
	display: flex;
	gap: 8px;
	height: 48px;
	padding: 19px 22px;
	border-bottom: 1px solid #e7e7fb;
}

.browser-dot {
	width: 8px;
	height: 8px;
	border-radius: 99px;
	background: #a7a1ff;
}

.browser-body {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 22px;
	padding: 30px;
}

.puzzle-large {
	display: grid;
	place-items: center;
	width: 110px;
	height: 110px;
	border-radius: 24px;
	background: linear-gradient(135deg, var(--primary), var(--primary-2));
	color: #fff;
	box-shadow: 0 24px 45px rgba(64, 88, 255, 0.3);
}

.browser-lines {
	display: grid;
	gap: 13px;
	padding-top: 10px;
}

.browser-lines span {
	display: block;
	height: 13px;
	border-radius: 99px;
	background: #dee3ff;
}

.browser-lines span:nth-child(2) {
	width: 76%;
}

.browser-lines span:nth-child(3) {
	width: 62%;
}

.float-icon {
	position: absolute;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	color: #fff;
	box-shadow: 0 18px 36px rgba(44, 58, 127, 0.16);
}

.float-icon.green {
	top: 96px;
	left: 30px;
	background: linear-gradient(135deg, #52dfb4, #2dbb77);
}

.float-icon.yellow {
	bottom: 56px;
	left: 78px;
	background: linear-gradient(135deg, #ffd955, #ffa731);
}

.float-icon.blue {
	right: 14px;
	bottom: 84px;
	background: linear-gradient(135deg, #6aa8ff, #346fff);
}

.float-icon.pink {
	top: 56px;
	right: 54px;
	background: linear-gradient(135deg, #ff80c7, #f24a9e);
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 18px;
}

.section-head h2 {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
}

.section-head a {
	color: var(--primary);
	font-size: 14px;
	font-weight: 760;
	text-decoration: none;
}

.category-row {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 42px;
}

.category-card {
	min-height: 132px;
	padding: 24px 22px 18px;
	border: 0;
	border-radius: 9px;
	color: #fff;
	box-shadow: 0 18px 36px rgba(44, 58, 127, 0.16);
}

.category-card:nth-child(1) {
	background: linear-gradient(135deg, #5168ff, #7648f2);
}

.category-card:nth-child(2) {
	background: linear-gradient(135deg, #51ce8d, #188a61);
}

.category-card:nth-child(3) {
	background: linear-gradient(135deg, #5f9cff, #3865ef);
}

.category-card:nth-child(4) {
	background: linear-gradient(135deg, #ffc15a, #ff7d3e);
}

.category-card:nth-child(5) {
	background: linear-gradient(135deg, #c05cff, #693ef0);
}

.category-icon {
	display: block;
	width: 34px;
	height: 34px;
	margin-bottom: 20px;
	font-size: 32px;
	line-height: 34px;
}

.category-card strong {
	display: block;
	min-height: 39px;
	font-size: 15px;
	line-height: 1.32;
}

.category-card span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 13px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 12px;
}

.category-arrow {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-size: 11px;
}

.addons-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.addon-card {
	min-width: 0;
	padding: 21px 16px 17px;
	border: 1px solid var(--line);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.94);
	box-shadow: var(--shadow);
}

.addon-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 17px;
	border-radius: 13px;
	color: #fff;
}

.addon-icon.red {
	background: linear-gradient(135deg, #ff625d, #d82929);
}

.addon-icon.blue {
	background: linear-gradient(135deg, #68a5ff, #2f80ed);
}

.addon-icon.green {
	background: linear-gradient(135deg, #52ce8d, #188a61);
}

.addon-icon.orange {
	background: linear-gradient(135deg, #ffc15a, #f2994a);
}

.addon-icon.dark {
	background: linear-gradient(135deg, #355171, #1c2740);
}

.addon-icon.purple {
	background: linear-gradient(135deg, #9b6dff, #6745e6);
}

.addon-icon.cyan {
	background: linear-gradient(135deg, #6cd9e9, #2f9bc0);
}

.addon-icon.navy {
	background: linear-gradient(135deg, #5776b9, #1f3462);
}

.addon-card h3 {
	min-height: 40px;
	margin: 0 0 13px;
	font-size: 15px;
	line-height: 1.35;
}

.rating {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 17px;
	color: #6c748c;
	font-size: 12px;
}

.rating svg {
	width: 14px;
	height: 14px;
	color: #ffb41f;
}

.install-button {
	width: 100%;
	min-height: 38px;
	border: 1px solid #dfe4ff;
	background: #fff;
	color: var(--primary);
	font-size: 12px;
}

.mobile-header,
.bottom-tabs {
	display: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 1160px) {
	.addon-shell {
		grid-template-columns: 212px minmax(0, 1fr);
	}

	.content {
		padding-inline: 28px;
	}

	.hero {
		grid-template-columns: minmax(0, 1fr) 360px;
		gap: 24px;
	}

	.category-row,
	.addons-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	body {
		background: #fbfcff;
	}

	.addon-shell {
		display: block;
		min-height: 100vh;
		padding-bottom: 78px;
	}

	.sidebar,
	.topbar {
		display: none;
	}

	.mobile-header {
		position: sticky;
		top: 0;
		z-index: 20;
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		align-items: center;
		gap: 8px;
		min-height: 82px;
		padding: 15px 18px;
		border-bottom: 1px solid var(--line);
		background: rgba(255, 255, 255, 0.88);
		backdrop-filter: blur(18px);
	}

	.icon-button {
		display: grid;
		place-items: center;
		width: 44px;
		height: 44px;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: #fff;
		color: var(--text);
	}

	.mobile-header .brand {
		justify-self: start;
		margin: 0;
		gap: 10px;
	}

	.mobile-header .brand-mark {
		display: none;
	}

	.mobile-header .brand-text strong {
		font-size: 14px;
	}

	.mobile-header .brand-text span {
		font-size: 11px;
	}

	.content {
		width: 100%;
		padding: 30px 18px 22px;
	}

	.hero {
		display: block;
		min-height: 0;
	}

	.hero-art {
		display: none;
	}

	.hero-copy h1 {
		margin-bottom: 15px;
		font-size: 31px;
		line-height: 1.1;
	}

	.hero-copy p {
		margin-bottom: 22px;
		font-size: 14px;
		line-height: 1.65;
	}

	.hero-actions .primary-button {
		width: 100%;
		min-height: 54px;
	}

	.secondary-button {
		display: none;
	}

	.section-head {
		margin-bottom: 14px;
	}

	.section-head h2 {
		font-size: 20px;
	}

	.section-head a {
		font-size: 12px;
	}

	.category-row {
		display: flex;
		gap: 12px;
		margin: 0 -18px 29px;
		padding: 0 18px 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.category-card {
		flex: 0 0 143px;
		min-height: 128px;
		padding: 18px 16px 14px;
		scroll-snap-align: start;
	}

	.category-icon {
		width: 29px;
		height: 29px;
		margin-bottom: 15px;
		font-size: 27px;
		line-height: 29px;
	}

	.category-card strong {
		font-size: 13px;
	}

	.addons-grid {
		display: grid;
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.addon-card {
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr) auto;
		align-items: center;
		gap: 12px;
		min-height: 67px;
		padding: 10px 12px;
		border-radius: 10px;
	}

	.addon-icon {
		width: 44px;
		height: 44px;
		margin: 0;
	}

	.addon-card h3 {
		min-height: 0;
		margin: 0 0 5px;
		font-size: 13px;
	}

	.rating {
		margin: 0;
		font-size: 11px;
	}

	.install-button {
		width: auto;
		min-width: 86px;
		min-height: 36px;
		padding: 0 12px;
	}

	.bottom-tabs {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		min-height: 72px;
		padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
		border-top: 1px solid var(--line);
		background: rgba(255, 255, 255, 0.92);
		backdrop-filter: blur(20px);
		box-shadow: 0 -18px 38px rgba(42, 49, 102, 0.08);
	}

	.tab-item {
		display: grid;
		justify-items: center;
		align-content: center;
		gap: 4px;
		color: #697189;
		font-size: 10px;
		font-weight: 720;
		text-decoration: none;
	}

	.tab-item svg {
		width: 21px;
		height: 21px;
	}

	.tab-item.active {
		color: var(--primary);
	}
}

@media (max-width: 390px) {
	.content {
		padding-inline: 15px;
	}

	.hero-copy h1 {
		font-size: 28px;
	}

	.install-button {
		min-width: 76px;
		font-size: 11px;
	}
}
