/*
Theme Name: CMS Plugin Site
Theme URI: https://cmsplugin.cz
Author: CMS Plugin
Description: Landing, katalog pluginu a stranka pro spravu. Lehe theme bez builderu.
Version: 1.0.4
License: GNU General Public License v2
Text Domain: cmsplugin-site
*/

:root {
	--bg: #0c1117;
	--surface: #141b24;
	--text: #e8edf3;
	--muted: #8b9aab;
	--accent: #3b82f6;
	--accent-hover: #2563eb;
	--border: #1f2a37;
	--radius: 12px;
	--max: 1100px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	font-size: 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-hover); }

.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.site-title a { color: var(--text); text-decoration: none; }
.site-title a:hover { color: var(--accent); }

.main-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-nav a {
	color: var(--muted);
	font-size: 0.95rem;
}
.main-nav a:hover { color: var(--text); }

.site-main {
	max-width: var(--max);
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

/* Landing hero */
.hero {
	padding: 3rem 0 4rem;
	text-align: center;
}

.hero h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	margin: 0 0 1rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.hero p.lead {
	color: var(--muted);
	font-size: 1.1rem;
	max-width: 36rem;
	margin: 0 auto 1.75rem;
}

.btn {
	display: inline-block;
	padding: 0.65rem 1.35rem;
	background: var(--accent);
	color: #fff !important;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #fff !important; }
.btn--ghost {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text) !important;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent) !important; background: rgba(59, 130, 246, 0.1); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* Cards grid */
.grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	margin-top: 2rem;
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
}
.card h2, .card h3 { margin-top: 0; font-size: 1.15rem; }
.card .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.card .price { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* Titulka: vybrané pluginy — cena vpravo od názvu, výrazná */
.card--plugin-featured__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	margin-bottom: 0.75rem;
}
.card--plugin-featured__title {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 1.15rem;
	line-height: 1.35;
}
.card--plugin-featured__title a {
	color: var(--text);
	text-decoration: none;
}
.card--plugin-featured__title a:hover {
	color: var(--accent);
	text-decoration: none;
}
.card--plugin-featured__price {
	margin: 0;
	flex-shrink: 0;
	align-self: center;
	text-align: right;
}
.card--plugin-featured__price-inner {
	display: inline-block;
	font-size: clamp(1.15rem, 2.5vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	background: linear-gradient(160deg, rgba(59, 130, 246, 0.45) 0%, rgba(37, 99, 235, 0.35) 100%);
	border: 2px solid var(--accent);
	border-radius: 10px;
	padding: 0.4rem 0.75rem;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25), 0 4px 14px rgba(0, 0, 0, 0.35);
}
@media (max-width: 400px) {
	.card--plugin-featured__head {
		flex-wrap: wrap;
	}
	.card--plugin-featured__price {
		width: 100%;
		text-align: left;
		align-self: flex-start;
	}
	.card--plugin-featured__price-inner {
		white-space: normal;
	}
}

/* Page title */
.page-header { margin-bottom: 2rem; }
.page-header h1 { margin: 0 0 0.5rem; font-size: 1.75rem; }
.page-header p { color: var(--muted); margin: 0; }

/* Sprava / admin page */
.notice-box {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	margin: 1.5rem 0;
}
.notice-box h2 { margin-top: 0; font-size: 1.1rem; }

/* Footer */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 2rem 1.5rem;
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
}

/* WordPress block alignment in content */
.entry-content img { max-width: 100%; height: auto; }
.entry-content { max-width: 65ch; }
.entry-content.wide { max-width: none; }

section.section { margin-top: 3rem; }
section.section h2 { font-size: 1.35rem; margin-bottom: 0.75rem; }

@media (max-width: 600px) {
	.site-header__inner { flex-direction: column; align-items: flex-start; }
	.main-nav { width: 100%; }
}
