/*
Theme Name: APK Play Theme
Theme URI: https://github.com/your-org/apk-play-theme
Author: Site Team
Author URI: 
Description: Standalone theme for APK download listing and detail pages. Requires apk-download-rating plugin (paired bundle v1.0.23). Do not use with schema-pastejson or other SEO/schema plugins on the same site.
Version: 1.0.23
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apk-play-theme
*/

/* Base styles – theme uses minimal global CSS; templates and assets/css carry layout */

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.5;
	color: #111;
	background: #fff;
}

/* Same grid for all pages: header, content, footer use .site width */
#page.site,
.site {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}

#content.site-content {
	width: 100%;
	box-sizing: border-box;
}

.site-main {
	width: 100%;
	max-width: 100%;
}

.entry-header,
.entry-content {
	margin-bottom: 1.5em;
}

/* Normal list bullets so no huge circle */
.entry-content ul,
.entry-content ol {
	padding-left: 1.5em;
	margin: 0.75em 0;
}
.entry-content ul {
	list-style-type: disc;
}
.entry-content ul ul {
	list-style-type: circle;
}
.entry-content ol {
	list-style-type: decimal;
}
.entry-content li {
	margin: 0.25em 0;
}

.entry-title {
	margin: 0 0 0.5em;
	font-size: 1.75rem;
}

a {
	color: #0ea5e9;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Footer trust links (Privacy, Terms, Disclaimer, Contact) */
.site-footer .site-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25em;
}
.site-footer .site-info .site-footer-sep {
	opacity: 0.6;
	margin: 0 0.2em;
}
.site-footer .site-info .adr-footer-nav-row,
.site-footer .site-info .adr-footer-extra-row,
.site-footer .site-info .adr-footer-meta-row,
.adrpd-mini-footer .adr-footer-nav-row,
.adrpd-mini-footer .adr-footer-extra-row,
.adrpd-mini-footer .adr-footer-meta-row,
.hw-site-footer .adr-footer-nav-row,
.hw-site-footer .adr-footer-extra-row,
.hw-site-footer .adr-footer-meta-row {
	display: block;
	width: 100%;
	text-align: center;
}
.site-footer .site-info .adr-footer-extra-row,
.adrpd-mini-footer .adr-footer-extra-row,
.hw-site-footer .adr-footer-extra-row {
	margin-top: 4px;
	color: #334155;
	font-size: 12px;
	font-weight: 500;
}
.site-footer .site-info .adr-footer-meta-row,
.adrpd-mini-footer .adr-footer-meta-row,
.hw-site-footer .adr-footer-meta-row {
	margin-top: 4px;
	color: #4b5563;
	font-size: 12px;
	font-weight: 400;
}
.site-footer .site-info .adr-footer-meta-row a,
.adrpd-mini-footer .adr-footer-meta-row a,
.hw-site-footer .adr-footer-meta-row a {
	color: #4b5563;
}
.site-footer .site-info .adr-footer-extra-row a,
.adrpd-mini-footer .adr-footer-extra-row a,
.hw-site-footer .adr-footer-extra-row a {
	color: #334155;
}
/* Drawer trust links on list page */
.gpplay-trust-links {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
}
.gpplay-trust-links a {
	font-size: 0.9em;
	color: rgba(255,255,255,0.85);
	text-decoration: none;
}
.gpplay-trust-links a:hover {
	text-decoration: underline;
	color: #fff;
}

/* Huawei-style market header (tabs + search), shared with /apps/ and sitewide header.php */
:root {
	--hw-bg: #f5f6f8;
	--hw-text: #111827;
	--hw-muted: #4b5563;
	--hw-blue: #1d4ed8;
	--hw-line: #e5e7eb;
}

body.apk-hw-market {
	background: var(--hw-bg);
}

.apk-apps-market-top.hw-market-top-bar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--hw-bg);
	padding: 8px 14px 10px;
}

.apk-apps-market-top .hw-tabs {
	display: flex;
	gap: 14px;
	white-space: nowrap;
	overflow: auto;
	padding: 2px 0 10px;
}

.apk-apps-market-top .hw-tabs a {
	color: var(--hw-muted);
	text-decoration: none;
	font-size: 16px;
}

.apk-apps-market-top .hw-tabs a.is-on {
	color: var(--hw-text);
	font-weight: 700;
}

.apk-apps-market-top .hw-search {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #e5e7eb;
	border-radius: 16px;
	padding: 8px 12px;
	color: #4b5563;
}

.apk-apps-market-top .hw-search input::placeholder {
	color: #52525b;
	opacity: 1;
}

.apk-apps-market-top .hw-search svg {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.apk-apps-market-top .hw-search input {
	border: 0;
	background: transparent;
	outline: 0;
	flex: 1;
	font-size: 15px;
	color: var(--hw-text);
}

/* Unified mobile top/bottom markers used across custom pages. */
.hw-top {
	position: relative;
	z-index: 20;
}

.hw-topbar {
	position: sticky;
	top: 0;
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
}

.hw-topbar-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	max-width: 980px;
	margin: 0 auto;
}

.hw-topbar-brand {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
	text-decoration: none;
}

.hw-topbar-title {
	font-size: 14px;
	color: #4b5563;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hw-main {
	padding-bottom: 78px;
}

div.hw-bottom,
nav.hw-bottom {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	display: flex;
	justify-content: space-around;
	padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.hw-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: #9ca3af;
	font-size: 11px;
	text-decoration: none;
}

.hw-nav svg {
	width: 21px;
	height: 21px;
}

.hw-nav.is-on {
	color: #2563eb;
}
