/*
Theme Name: Party Organizer
Theme URI: https://example.com
Author: Party Organizer
Description: A minimal, clean theme built to match the Party Organizer plugin's public pages (homepage directory, ticket confirmation, ordering). Simple header/footer, no page builder, no bloat — designed for shared hosting.
Version: 1.2.0
Requires at least: 5.8
Requires PHP: 7.4
Text Domain: party-organizer-theme
*/

:root {
	--po-brand: #ea580c;
	--po-brand-dark: #c2410c;
	--po-brand-light: #fff7ed;
	--po-accent: #0f766e;
	--po-bg: #faf9f7;
	--po-surface: #ffffff;
	--po-ink: #1c1917;
	--po-muted: #78716c;
	--po-line: #e7e5e4;
	--po-radius: 14px;
	--po-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 10px 26px -10px rgba(28, 25, 23, .12);
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--po-bg);
	color: var(--po-ink);
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--po-brand); text-decoration: none; }
a:hover { color: var(--po-brand-dark); }

img { max-width: 100%; }

/* ---------- Header ---------- */

.site-header {
	background: var(--po-surface);
	border-bottom: 1px solid var(--po-line);
	padding: 12px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	position: sticky;
	top: 0;
	z-index: 50;
}

.site-branding { display: flex; align-items: center; min-width: 0; }

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.po-logo-mark { flex: none; display: block; }

.site-logo .site-title {
	color: var(--po-ink);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-header__right {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.site-nav ul {
	list-style: none;
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.site-nav a {
	display: inline-block;
	color: var(--po-muted);
	font-size: 14px;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 999px;
	transition: background-color .15s ease, color .15s ease;
}

.site-nav a:hover {
	background: var(--po-brand-light);
	color: var(--po-brand-dark);
}

.site-nav .current_page_item > a,
.site-nav .current-menu-item > a {
	background: var(--po-brand-light);
	color: var(--po-brand-dark);
}

.site-account {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-account__btn {
	background: var(--po-brand);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 999px;
	transition: background-color .15s ease;
}

.site-account__btn:hover { background: var(--po-brand-dark); color: #fff; }

.site-account__logout {
	color: var(--po-muted);
	font-size: 13px;
	font-weight: 600;
}

.site-account__logout:hover { color: var(--po-ink); }

/* ---------- Main ---------- */

.site-main {
	max-width: 960px;
	margin: 36px auto;
	padding: 0 20px;
	min-height: 50vh;
}

.page-content, .entry-content {
	background: var(--po-surface);
	border: 1px solid var(--po-line);
	border-radius: var(--po-radius);
	padding: 32px;
	box-shadow: var(--po-shadow);
}

.page-content h1, .entry-content h1 {
	margin-top: 0;
	font-size: 26px;
	letter-spacing: -0.01em;
}

/* Keep the plugin's own [po_*] pages full-width and uncluttered — no card
   wrapper duplication, since the plugin already wraps its content in
   .po-app / .po-card (see the plugin's frontend.css). Both theme and
   plugin now share the same brand palette so the two never look bolted
   together. */
.page-content:has(.po-app), .entry-content:has(.po-app) {
	background: transparent;
	border: none;
	padding: 0;
	box-shadow: none;
}

/* ---------- Footer ---------- */

.site-footer {
	text-align: center;
	color: var(--po-muted);
	font-size: 13px;
	padding: 32px 20px 48px;
	margin-top: 24px;
	border-top: 1px solid var(--po-line);
}

.site-footer a { color: var(--po-muted); text-decoration: underline; }

@media (max-width: 640px) {
	.site-header { padding: 10px 16px; }
	.site-main { margin: 20px auto; padding: 0 14px; }
	.page-content, .entry-content { padding: 20px; border-radius: 10px; }
	.site-nav a { padding: 7px 11px; font-size: 13px; }
	.site-account__btn { padding: 7px 14px; font-size: 13px; }
}
