/*
Theme Name:   Cloud Player
Theme URI:    https://bwpexperts.com
Author:       BWP Experts
Author URI:   https://bwpexperts.com
Description:  Companion theme for the Cloud Player Platform plugin - the same light, orange-accent branding for the blog, inner pages, search and the 404 page. The landing, activation and upload pages stay with the plugin.
Version:      1.0.7
License:      GPL-2.0+
Text Domain:  b1g
*/

:root {
	--bg: #ffffff;
	--bg2: #f6f8fb;
	--card: #ffffff;
	--line: #e7ebf1;
	--text: #10151f;
	--muted: #5a6676;
	--faint: #8b95a5;
	--accent: #ff8b06;
	--accent-d: #e67a00;
	--accent-soft: #fff3e4;
	--radius: 16px;
	--shadow: 0 6px 24px rgba(16, 21, 31, .06);
}

* { box-sizing: border-box; }
body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bg);
	color: var(--text);
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.5px; margin: 0 0 .5em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }

/* buttons */
.btn {
	display: inline-flex; align-items: center; gap: 9px;
	padding: 12px 26px; border-radius: 999px;
	font-weight: 700; font-size: 15px; border: 0; cursor: pointer;
	transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn-p { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 139, 6, .3); }
.btn-p:hover { background: var(--accent-d); transform: translateY(-1px); }
.btn-o { border: 2px solid var(--line); color: var(--text); background: #fff; }
.btn-o:hover { border-color: var(--accent); color: var(--accent-d); }

/* header */
.site-head {
	position: sticky; top: 0; z-index: 90;
	background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 62px; width: auto; display: block; }
.site-foot .logo img { height: 46px; }
@media (max-width: 480px) { .logo img { height: 48px; } }
.logo b { color: var(--accent); font-weight: 800; }
.site-nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 600; color: var(--muted); margin-left: auto; flex-wrap: wrap; }
.site-nav a:hover { color: var(--accent-d); }
.head-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; padding: 6px; color: var(--text); }
.nav-toggle svg { display: block; }

/* page shell */
.site-main { padding: 56px 0 80px; min-height: 55vh; }
.page-hero { background: linear-gradient(180deg, #fff 0%, #fff7ee 100%); border-bottom: 1px solid var(--line); padding: 54px 0 44px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; margin: 0; }
.page-hero p { color: var(--muted); margin: 10px 0 0; font-size: 16.5px; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 12px; font-weight: 800; letter-spacing: 1.8px;
	color: var(--accent-d); background: var(--accent-soft);
	padding: 8px 18px; border-radius: 999px; margin-bottom: 16px;
}

/* blog grid */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
	transition: transform .18s, box-shadow .18s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 21, 31, .1); }
.post-card .thumb { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent-soft), #ffe6c4); display: block; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2 { font-size: 18px; font-weight: 800; margin: 0; }
.post-card h2 a:hover { color: var(--accent-d); }
.post-meta { color: var(--faint); font-size: 12.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.post-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.read-more { margin-top: auto; padding-top: 10px; color: var(--accent-d); font-weight: 700; font-size: 14px; }

/* single post / page */
.entry h1.entry-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.entry .post-meta { margin-bottom: 26px; }
.entry-content { font-size: 16.5px; color: #2a3240; }
.entry-content h2 { font-size: 26px; margin-top: 1.6em; }
.entry-content h3 { font-size: 21px; margin-top: 1.4em; }
.entry-content a { color: var(--accent-d); font-weight: 600; }
.entry-content a:hover { text-decoration: underline; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote {
	margin: 1.4em 0; padding: 14px 22px;
	border-left: 4px solid var(--accent); background: var(--bg2); border-radius: 0 10px 10px 0;
	color: var(--muted);
}
.entry-content pre { background: #10151f; color: #e8ecf4; padding: 18px 20px; border-radius: 12px; overflow: auto; font-size: 14px; }
.entry-content code { background: var(--bg2); padding: 2px 7px; border-radius: 6px; font-size: .92em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.featured { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow); }
.featured img { display: block; width: 100%; }

/* pagination + nav */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination .page-numbers {
	display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
	padding: 0 14px; border: 1px solid var(--line); border-radius: 10px;
	font-weight: 700; font-size: 14px; color: var(--muted); background: #fff;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* search form */
.search-form { display: flex; gap: 10px; max-width: 460px; }
.search-form input[type="search"] {
	flex: 1; font-family: inherit; font-size: 15px; padding: 12px 16px;
	border: 1.5px solid var(--line); border-radius: 11px; background: #fbfcfe; outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--accent); }

/* 404 */
.error-404 { text-align: center; padding: 40px 0 20px; }
.error-404 .code {
	font-size: clamp(90px, 18vw, 170px); font-weight: 800; line-height: 1;
	background: linear-gradient(90deg, var(--accent), #ffb34d);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	letter-spacing: -4px;
}
.error-404 h1 { font-size: clamp(24px, 3.5vw, 34px); margin: 8px 0 10px; }
.error-404 p { color: var(--muted); max-width: 480px; margin: 0 auto 26px; }
.error-404 .search-form { margin: 0 auto 26px; }
.error-404 .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* empty / no results */
.nothing { text-align: center; color: var(--muted); padding: 50px 0; }

/* footer */
.site-foot { background: var(--bg2); border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--faint); font-size: 14px; margin-top: auto; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 26px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; color: var(--muted); }
.foot-links a:hover { color: var(--accent-d); }

/* responsive */
@media (max-width: 860px) {
	.site-nav {
		display: none; position: absolute; top: 72px; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		flex-direction: column; padding: 18px 22px; gap: 14px;
	}
	.site-head.open .site-nav { display: flex; }
	.head-cta { display: none; }
	.nav-toggle { display: inline-flex; }
	.site-main { padding: 40px 0 60px; }
}
