/*
Theme Name: Cliqsan Portal
Description: Clean, fast and secure theme for the Cliqsan Ad Hub client portal. No external requests, no jQuery, hardened headers.
Version: 1.0.0
Author: Cliqsan
Requires at least: 5.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: cliqsan-portal
*/

@font-face {
	font-family: 'Manrope';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url('assets/fonts/manrope-latin.woff2') format('woff2');
}

:root {
	--cq-purple: #8000ff;
	--cq-purple-dark: #6200c7;
	--cq-purple-soft: #f2e8ff;
	--cq-ink: #14101f;
	--cq-muted: #5f5a70;
	--cq-line: #e7e1f3;
	--cq-bg: #faf8ff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--cq-ink);
	background:
		radial-gradient(900px 420px at 85% -80px, rgba(128, 0, 255, .13), transparent 70%),
		radial-gradient(700px 380px at 5% 0, rgba(176, 102, 255, .12), transparent 70%),
		var(--cq-bg);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
a { color: var(--cq-purple); }
img { max-width: 100%; height: auto; }
.cq-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute; left: -9999px; }
.cq-skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.cq-skip:focus { left: 8px; }

/* header */
.cq-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--cq-line); }
.admin-bar .cq-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cq-header { top: 46px; } }
.cq-header .cq-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.cq-brand img { display: block; height: 34px; width: auto; }
.cq-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cq-nav a { text-decoration: none; color: var(--cq-ink); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.cq-nav a:hover { background: var(--cq-purple-soft); color: var(--cq-purple-dark); }
.cq-nav a.cq-cta { background: var(--cq-purple); color: #fff; }
.cq-nav a.cq-cta:hover { background: var(--cq-purple-dark); color: #fff; }

/* main */
.cq-main { flex: 1; padding: 36px 0 64px; }
.cq-page-title { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 20px; }
.cq-content { max-width: 760px; }
.cq-content.cq-wide { max-width: none; }
.cq-card { background: #fff; border: 1px solid var(--cq-line); border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px -18px rgba(60, 20, 120, .35); }

/* footer */
.cq-footer { border-top: 1px solid var(--cq-line); background: #fff; }
.cq-footer .cq-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; color: var(--cq-muted); font-size: 13px; }
.cq-footer img { height: 22px; width: auto; display: block; }
.cq-lock { display: inline-flex; align-items: center; gap: 6px; }

/* plugin pages inside the theme */
.cq-main .zah-app.zah-portal { --accent: #8000ff; --accent-soft: #f2e8ff; background: transparent; margin: 0 auto; padding: 8px 0 0; max-width: none; min-height: 0; }
.cq-main .zah-portal .zah-btn-primary, .cq-main .zah-portal summary.zah-btn-primary { background: var(--accent); border-color: var(--accent); }
.cq-main .zah-portal a.zah-btn-primary { color: #fff; }
.cq-main .zah-portal .zah-card { border-color: var(--cq-line); border-radius: 20px; }

/* home */
.cq-main .zah-home { --accent: #8000ff; --accent-soft: #f2e8ff; }
.cq-main .zah-home .zah-logo { display: none; }

/* login box */
.cq-main .zah-portal-login { max-width: 460px; }
.cq-main .zah-login-card { background: #fff; border: 1px solid var(--cq-line); border-radius: 22px; padding: 32px 28px; box-shadow: 0 18px 40px -24px rgba(100, 0, 200, .4); }
.cq-main .zah-login-card .zah-logo { height: 36px; width: auto; margin-bottom: 18px; }

@media (max-width: 600px) {
	.cq-wrap { padding: 0 16px; }
	.cq-nav a:not(.cq-cta) { display: none; }
	.cq-main { padding-top: 22px; }
	.cq-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.cq-main .zah-portal .zah-sub { border: 0; }

/* full-width login screen */
body { overflow-x: hidden; }
.cq-main:has(.zl-screen) { padding: 0; }
.cq-main:has(.zl-screen) .cq-wrap { max-width: none; padding: 0; }
.cq-main .zl-screen { width: 100%; min-height: calc(100vh - 68px - 66px); }
