/* nature-nest/assets/css/components.css — shared UI components v1.0.1 */

/* ============================================================
   BUTTONS
   ============================================================ */
.nn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 9px 18px;
	height: 42px;
	border-radius: var(--radius-sm);
	font-family: var(--font-bn);
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: -0.1px;
	transition: background var(--duration-micro) var(--ease-out),
	            color var(--duration-micro) var(--ease-out),
	            border-color var(--duration-micro) var(--ease-out),
	            transform var(--duration-micro) var(--ease-out),
	            box-shadow var(--duration-standard) var(--ease-out);
	white-space: nowrap;
	border: 1.5px solid transparent;
	cursor: pointer;
}
.nn-btn:hover { transform: translateY(-1px); }
.nn-btn:active { transform: translateY(0); }
.nn-btn-block { display: flex; width: 100%; }

.nn-btn-dark {
	background: var(--ink);
	color: #fff;
}
.nn-btn-dark:hover {
	background: var(--brand);
	box-shadow: var(--shadow-glow);
}

.nn-btn-brand {
	background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
	color: #fff;
}
.nn-btn-brand:hover { box-shadow: var(--shadow-glow); }

.nn-btn-ghost {
	background: transparent;
	border: 1.5px solid var(--border);
	color: var(--text);
}
.nn-btn-ghost:hover {
	border-color: var(--brand);
	color: var(--brand);
}

.nn-btn-saffron {
	background: linear-gradient(135deg, var(--saffron), var(--saffron-2));
	color: #fff;
	box-shadow: 0 4px 14px var(--saffron-glow);
}
.nn-btn-saffron:hover { box-shadow: 0 8px 22px var(--saffron-glow); }

.nn-btn-forest {
	background: linear-gradient(135deg, var(--forest), var(--forest-2));
	color: #fff;
}
.nn-btn-forest:hover { box-shadow: 0 0 0 3px var(--forest-glow); }

.nn-btn-lg { height: 52px; padding: 0 26px; font-size: 15px; }
.nn-btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }

/* ============================================================
   CARDS
   ============================================================ */
.nn-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	transition: transform var(--duration-standard) var(--ease-spring),
	            box-shadow var(--duration-standard) var(--ease-spring),
	            border-color var(--duration-standard) var(--ease-spring);
}
.nn-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: var(--brand);
}

/* ============================================================
   BADGES & CHIPS
   ============================================================ */
.nn-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 11px;
	border-radius: var(--radius-full);
	letter-spacing: 0.02em;
}
.nn-badge-saffron {
	background: linear-gradient(135deg, var(--saffron), var(--saffron-2));
	color: #fff;
	box-shadow: 0 2px 8px var(--saffron-glow);
}
.nn-badge-forest {
	background: linear-gradient(135deg, var(--forest), var(--forest-2));
	color: #fff;
}
.nn-badge-brand {
	background: var(--brand-soft);
	color: var(--brand);
}
.nn-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	background: #fff;
	color: var(--text);
	padding: 5px 11px;
	border-radius: var(--radius-full);
	font-weight: 500;
	border: 1px solid var(--border);
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.nn-announcement {
	background: linear-gradient(90deg, var(--bg-deeper) 0%, var(--bg-deep) 50%, #0F1730 100%);
	color: #fff;
	padding: 10px 24px;
	text-align: center;
	font-size: 13.5px;
	font-family: var(--font-bn);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	position: relative;
	z-index: var(--z-ann);
}
.nn-announcement-dot {
	width: 7px;
	height: 7px;
	background: var(--saffron);
	border-radius: 50%;
	animation: nnPulse 1.8s ease infinite;
	flex-shrink: 0;
}
@keyframes nnPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.6; transform: scale(1.3); }
}
.nn-announcement-link {
	color: var(--saffron);
	font-weight: 600;
	margin-left: 6px;
	transition: opacity var(--duration-micro) var(--ease-out);
}
.nn-announcement-link:hover { opacity: 0.8; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nn-site-header { position: sticky; top: 0; z-index: var(--z-sticky); }
.nn-nav {
	height: var(--nav-height);
	background: rgba(250, 251, 253, 0.72);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	transition: background var(--duration-standard) var(--ease-out),
	            box-shadow var(--duration-standard) var(--ease-out);
}
.nn-nav.scrolled {
	background: rgba(250, 251, 253, 0.92);
	box-shadow: 0 1px 0 var(--border), 0 6px 18px rgba(10,15,31,.04);
}
.nn-nav-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 var(--section-pad-x);
}
.nn-nav-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 17px;
	color: var(--ink);
	letter-spacing: -0.3px;
	flex-shrink: 0;
}
.nn-logo-mark {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--brand), var(--accent));
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: -0.5px;
}
.nn-logo-mark-dark {
	background: linear-gradient(135deg, #fff, #d8dcef);
	color: var(--ink);
}
.nn-logo-text {
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 400;
	font-size: 22px;
	letter-spacing: -0.3px;
	color: var(--ink);
	line-height: 1;
}
.nn-footer-brand .nn-footer-logo .nn-logo-text { color: #fff; }
.nn-nav-logo .custom-logo { height: 36px; width: auto; }

.nn-nav-links {
	display: flex;
	flex: 1;
	justify-content: center;
}
.nn-nav-list,
.nn-nav-fallback {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.nn-nav-list li a,
.nn-nav-fallback li a {
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
	padding: 7px 13px;
	border-radius: var(--radius-sm);
	font-family: var(--font-bn);
	transition: background var(--duration-micro) var(--ease-out),
	            color var(--duration-micro) var(--ease-out);
	display: inline-block;
}
.nn-nav-list li a:hover,
.nn-nav-fallback li a:hover,
.nn-nav-list li.current-menu-item a {
	background: var(--bg-alt);
	color: var(--ink);
}

.nn-nav-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}
.nn-nav-burger {
	display: none;
	width: 40px;
	height: 40px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.nn-nav-burger span {
	width: 18px;
	height: 1.8px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform var(--duration-micro) var(--ease-out),
	            opacity var(--duration-micro) var(--ease-out);
}
.nn-nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nn-nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nn-nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
	.nn-nav-links { display: none; }
	.nn-nav-burger { display: flex; }
	.nn-nav-right .nn-btn-ghost { display: none; }
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.nn-mobile-nav {
	position: fixed;
	inset: 0;
	z-index: var(--z-overlay);
	pointer-events: none;
	opacity: 0;
	transition: opacity var(--duration-standard) var(--ease-out);
}
.nn-mobile-nav.open {
	pointer-events: auto;
	opacity: 1;
}
.nn-mobile-nav-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 15, 31, 0.55);
	backdrop-filter: blur(6px);
}
.nn-mobile-nav-panel {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: min(360px, 88vw);
	background: var(--surface);
	box-shadow: var(--shadow-xl);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform var(--duration-large) var(--ease-spring);
}
.nn-mobile-nav.open .nn-mobile-nav-panel { transform: translateX(0); }

.nn-mobile-nav-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--border);
}
.nn-mobile-nav-title {
	font-family: var(--font-bn);
	font-size: 18px;
	font-weight: 600;
	color: var(--ink);
}
.nn-mobile-nav-close {
	width: 38px;
	height: 38px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--border);
	background: var(--surface);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
}
.nn-mobile-nav-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 16px;
}
.nn-mobile-nav-list,
.nn-mobile-nav-body .nn-nav-fallback {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.nn-mobile-nav-list li a,
.nn-mobile-nav-body .nn-nav-fallback li a {
	display: block;
	padding: 14px 16px;
	font-family: var(--font-bn);
	font-size: 16px;
	font-weight: 500;
	color: var(--ink-2);
	border-radius: var(--radius-sm);
}
.nn-mobile-nav-list li a:hover { background: var(--bg-alt); }
.nn-mobile-nav-foot {
	padding: 16px 24px 24px;
	border-top: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.nn-trust {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 18px var(--section-pad-x);
}
.nn-trust-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 32px;
	justify-content: center;
	flex-wrap: wrap;
}
.nn-trust-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--faint);
	font-family: var(--font-mono);
	flex-shrink: 0;
}
.nn-trust-items {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	justify-content: center;
}
.nn-trust-item {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
}
.nn-trust-item svg { color: var(--forest); }
.nn-trust-sep { width: 1px; height: 18px; background: var(--border); }

@media (max-width: 768px) {
	.nn-trust-label { display: none; }
	.nn-trust-sep { display: none; }
	.nn-trust-items { gap: 18px; }
	.nn-trust-item { font-size: 12px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.nn-site-footer {
	background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deeper) 100%);
	color: rgba(255, 255, 255, 0.72);
	margin-top: 80px;
	position: relative;
	overflow: hidden;
}
.nn-site-footer::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
	background-size: 28px 28px;
	pointer-events: none;
	opacity: 0.6;
}
.nn-footer-cols { padding: 72px var(--section-pad-x) 48px; position: relative; z-index: 1; }
.nn-footer-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
	gap: 40px;
}
.nn-footer-brand .nn-footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 16px;
}
.nn-footer-brand .nn-footer-logo .nn-logo-text { color: #fff; }
.nn-footer-tagline {
	font-size: 14px;
	line-height: 1.75;
	color: rgba(255,255,255,.55);
	margin-bottom: 24px;
	max-width: 280px;
}
.nn-footer-social {
	display: flex;
	gap: 8px;
}
.nn-footer-social a {
	width: 36px;
	height: 36px;
	border-radius: var(--radius-sm);
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.08);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,.7);
	transition: all var(--duration-micro) var(--ease-out);
}
.nn-footer-social a:hover {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
	transform: translateY(-2px);
}

.nn-footer-heading {
	font-family: var(--font-bn);
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 16px;
	letter-spacing: 0.02em;
}
.nn-footer-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.nn-footer-list li a {
	font-family: var(--font-bn);
	font-size: 13.5px;
	color: rgba(255,255,255,.6);
	transition: color var(--duration-micro) var(--ease-out);
}
.nn-footer-list li a:hover { color: #fff; }

.nn-footer-newsletter-text {
	font-size: 13.5px;
	line-height: 1.6;
	color: rgba(255,255,255,.55);
	margin-bottom: 14px;
}
.nn-footer-newsletter {
	display: flex;
	gap: 6px;
	margin-bottom: 22px;
}
.nn-footer-newsletter input {
	flex: 1;
	height: 40px;
	padding: 0 14px;
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: var(--radius-sm);
	color: #fff;
	font-size: 13px;
	font-family: var(--font-sans);
}
.nn-footer-newsletter input::placeholder { color: rgba(255,255,255,.4); }
.nn-footer-newsletter input:focus { border-color: var(--brand); background: rgba(255,255,255,.08); }
.nn-footer-newsletter .nn-btn { height: 40px; padding: 0 16px; }

.nn-footer-payments-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255,255,255,.4);
	font-family: var(--font-mono);
	margin-bottom: 10px;
}
.nn-footer-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.nn-pay {
	font-size: 11px;
	font-weight: 600;
	color: rgba(255,255,255,.6);
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.08);
	padding: 5px 10px;
	border-radius: 6px;
	font-family: var(--font-mono);
}

.nn-footer-bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 22px var(--section-pad-x);
	position: relative;
	z-index: 1;
}
.nn-footer-bottom-inner {
	max-width: var(--content-max);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}
.nn-copy {
	font-size: 13px;
	color: rgba(255,255,255,.45);
	margin: 0;
	font-family: var(--font-bn);
}
.nn-footer-legal {
	list-style: none;
	display: flex;
	gap: 22px;
	padding: 0;
	margin: 0;
}
.nn-footer-legal li a {
	font-size: 12.5px;
	color: rgba(255,255,255,.5);
	font-family: var(--font-bn);
	transition: color var(--duration-micro) var(--ease-out);
}
.nn-footer-legal li a:hover { color: #fff; }
.nn-built-by {
	font-size: 12px;
	color: rgba(255,255,255,.4);
	margin: 0;
	font-family: var(--font-mono);
}

@media (max-width: 1024px) {
	.nn-footer-inner {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 32px;
	}
	.nn-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.nn-footer-inner {
		grid-template-columns: 1fr 1fr;
	}
	.nn-footer-brand { grid-column: 1 / -1; }
	.nn-footer-bottom-inner { justify-content: center; text-align: center; }
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.nn-searchform {
	display: flex;
	gap: 6px;
	background: var(--surface);
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	padding: 6px;
	max-width: 520px;
	margin: 0 auto;
	transition: border-color var(--duration-micro) var(--ease-out),
	            box-shadow var(--duration-micro) var(--ease-out);
}
.nn-searchform:focus-within {
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-glow);
}
.nn-searchform-input {
	flex: 1;
	border: 0;
	padding: 0 14px;
	font-family: var(--font-bn);
	font-size: 14px;
	background: transparent;
	color: var(--ink);
}
.nn-searchform-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	background: var(--ink);
	color: #fff;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 600;
	font-family: var(--font-bn);
	transition: background var(--duration-micro) var(--ease-out);
}
.nn-searchform-btn:hover { background: var(--brand); }

/* ============================================================
   POST CARD (used in archive/index/search)
   ============================================================ */
.nn-post-card { background: var(--surface); }
.nn-post-card-link { display: block; height: 100%; }
.nn-post-card-thumb {
	height: 220px;
	overflow: hidden;
	background: var(--bg-alt);
}
.nn-post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--duration-large) var(--ease-spring);
}
.nn-post-card:hover .nn-post-card-thumb img { transform: scale(1.04); }
.nn-post-card-body { padding: 18px 20px 22px; }
.nn-post-card-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	color: var(--forest);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-family: var(--font-mono);
	margin-bottom: 8px;
}
.nn-post-card-title {
	font-family: var(--font-bn);
	font-size: 18px;
	font-weight: 700;
	color: var(--ink);
	line-height: 1.4;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nn-post-card-excerpt {
	font-size: 13.5px;
	color: var(--muted);
	margin-bottom: 14px;
	line-height: 1.7;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.nn-post-card-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--faint);
	font-family: var(--font-mono);
}
.nn-dot { color: var(--faint); }
