/*
Theme Name: AlmoraOnline
Theme URI: https://example.com/almoraonline
Author: AlmoraOnline
Author URI: https://example.com
Description: Minimal fast directory/classified theme for AlmoraOnline listings.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: almoraonline
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--ao-bg: #f6f7fb;
	--ao-surface: #ffffff;
	--ao-text: #121826;
	--ao-muted: #596173;
	--ao-border: #e2e6ef;
	--ao-primary: #0d4e7c;
	--ao-primary-hover: #0a3f64;
	--ao-accent: #f59f00;
	--ao-shadow: 0 10px 24px rgba(18, 24, 38, 0.06);
	--ao-radius: 14px;
}

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

html {
	font-size: 16px;
}

body {
	margin: 0;
	font-family: "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
	color: var(--ao-text);
	background: var(--ao-bg);
	line-height: 1.65;
}

a {
	color: var(--ao-primary);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--ao-primary-hover);
}

img {
	max-width: 100%;
	height: auto;
}

.container {
	width: min(1140px, 92vw);
	margin: 0 auto;
}

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

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.95rem 0;
}

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

.site-title a {
	color: inherit;
}

.site-tagline {
	margin: 0.2rem 0 0;
	color: var(--ao-muted);
	font-size: 0.88rem;
}

.header-actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.5rem;
}

.header-actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	border: 1px solid var(--ao-border);
	background: #fdfefe;
	color: var(--ao-text);
	font-weight: 600;
	font-size: 0.92rem;
	white-space: nowrap;
}

.header-actions a:hover,
.header-actions a:focus {
	border-color: var(--ao-primary);
	background: #eff7ff;
}

.site-main {
	padding: 1.6rem 0 2.6rem;
}

.home-hero {
	background: linear-gradient(130deg, #0f3f62 0%, #16679f 75%);
	color: #fff;
	border-radius: var(--ao-radius);
	box-shadow: var(--ao-shadow);
	padding: clamp(1.2rem, 2.2vw, 2rem);
	margin-bottom: 1.4rem;
}

.home-hero h1 {
	margin: 0 0 0.55rem;
	font-size: clamp(1.45rem, 3vw, 2.2rem);
	line-height: 1.22;
}

.home-hero p {
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	max-width: 65ch;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1rem;
}

.hero-actions a {
	background: #fff;
	color: #0f3f62;
	border-radius: 8px;
	padding: 0.55rem 0.9rem;
	font-weight: 700;
	font-size: 0.92rem;
}

.home-section {
	background: var(--ao-surface);
	border: 1px solid var(--ao-border);
	border-radius: var(--ao-radius);
	box-shadow: var(--ao-shadow);
	padding: 1.1rem;
	margin-bottom: 1rem;
}

.home-section h2 {
	margin: 0 0 0.8rem;
	font-size: 1.2rem;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.8rem;
}

.blog-card {
	background: #fbfcff;
	border: 1px solid var(--ao-border);
	border-radius: 10px;
	padding: 0.85rem;
}

.blog-card h3 {
	font-size: 1rem;
	margin: 0 0 0.45rem;
	line-height: 1.35;
}

.blog-card p {
	margin: 0;
	font-size: 0.93rem;
	color: var(--ao-muted);
}

.entry-card,
.entry-single {
	background: var(--ao-surface);
	border: 1px solid var(--ao-border);
	border-radius: var(--ao-radius);
	box-shadow: var(--ao-shadow);
	padding: clamp(1rem, 2.4vw, 1.5rem);
}

.entry-card + .entry-card {
	margin-top: 0.9rem;
}

.entry-title {
	margin: 0 0 0.45rem;
	font-size: clamp(1.16rem, 2.2vw, 1.55rem);
	line-height: 1.33;
}

.entry-meta {
	margin: 0 0 0.8rem;
	font-size: 0.88rem;
	color: var(--ao-muted);
}

.entry-content p:last-child {
	margin-bottom: 0;
}

.archive-head {
	margin-bottom: 0.9rem;
}

.pagination-wrap {
	margin-top: 1rem;
}

.site-footer {
	border-top: 1px solid var(--ao-border);
	background: #fff;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8rem;
	padding: 1rem 0;
	color: var(--ao-muted);
	font-size: 0.9rem;
}

.ao-plugin-missing {
	padding: 0.75rem;
	border-radius: 8px;
	background: #fff8e5;
	border: 1px solid #f8dea3;
	color: #7b5600;
}

@media (max-width: 900px) {
	.blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 780px) {
	.header-inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.header-actions {
		width: 100%;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
