/*
Theme Name:  ToolNest Theme
Theme URI:   https://example.com/toolnest-theme
Author:      ToolNest
Author URI:  https://example.com
Description: Companion theme for the ToolNest plugin — a clean, fast, professional look for a 60-tool online utilities site. Sticky header, responsive layout, polished typography and footer. Activate together with the ToolNest plugin and the site is ready.
Version:     1.0.0
License:     GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toolnest-theme
Tags:        one-column, custom-logo, custom-menu
*/

:root {
	--nest-primary: #5b5bd6;
	--nest-primary-dark: #4646b8;
	--nest-ink: #15192b;
	--nest-ink-soft: #555d7a;
	--nest-line: #e4e7f2;
	--nest-bg: #f6f7fb;
	--nest-card: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.65;
	color: var(--nest-ink);
	background: var(--nest-bg);
}

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

a { color: var(--nest-primary); }

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

.nest-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--nest-line);
}

.nest-header__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 64px;
}

.nest-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--nest-ink);
	text-decoration: none;
	white-space: nowrap;
}

.nest-logo__mark {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--nest-primary), #9333ea);
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
}

.nest-logo span.accent { color: var(--nest-primary); }

.nest-nav { display: flex; align-items: center; }

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

.nest-nav a {
	display: inline-block;
	padding: 8px 13px;
	border-radius: 8px;
	font-size: .92rem;
	font-weight: 600;
	color: var(--nest-ink-soft);
	text-decoration: none;
	transition: color .15s, background .15s;
}

.nest-nav a:hover,
.nest-nav .current-menu-item > a,
.nest-nav .current_page_item > a {
	color: var(--nest-primary);
	background: #eeeefc;
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */

.nest-main { min-height: 60vh; }

.nest-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 36px 20px 64px;
}

/* Standard page (About, Contact, Privacy…) */
.nest-page {
	max-width: 780px;
	margin: 0 auto;
	background: var(--nest-card);
	border: 1px solid var(--nest-line);
	border-radius: 14px;
	padding: 40px;
}

.nest-page h1.entry-title {
	margin: 0 0 18px;
	font-size: 2rem;
	letter-spacing: -.02em;
}

.nest-page h2 { font-size: 1.4rem; margin: 1.5em 0 .5em; }
.nest-page p { margin: 0 0 1em; }
.nest-page li { margin-bottom: 6px; }

/* Posts list (index fallback) */
.nest-post-card {
	background: var(--nest-card);
	border: 1px solid var(--nest-line);
	border-radius: 14px;
	padding: 28px;
	margin-bottom: 18px;
}

.nest-post-card h2 { margin: 0 0 8px; font-size: 1.3rem; }
.nest-post-card h2 a { color: var(--nest-ink); text-decoration: none; }
.nest-post-card h2 a:hover { color: var(--nest-primary); }
.nest-post-card .meta { font-size: .82rem; color: var(--nest-ink-soft); margin-bottom: 10px; }

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

.nest-footer {
	background: #14172b;
	color: #aab2d0;
	margin-top: 56px;
}

.nest-footer__inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 48px 20px 28px;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 36px;
}

.nest-footer h3 {
	color: #fff;
	font-size: .95rem;
	margin: 0 0 14px;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.nest-footer p { font-size: .9rem; line-height: 1.7; margin: 0; }

.nest-footer ul { list-style: none; margin: 0; padding: 0; }
.nest-footer li { margin-bottom: 9px; }

.nest-footer a {
	color: #aab2d0;
	text-decoration: none;
	font-size: .9rem;
	transition: color .15s;
}

.nest-footer a:hover { color: #fff; }

.nest-footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 800;
	font-size: 1.15rem;
	margin-bottom: 14px;
}

.nest-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	margin-top: 10px;
}

.nest-footer__bottom-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	font-size: .82rem;
	color: #7c85a8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 760px) {
	.nest-header__inner { flex-direction: column; padding: 12px 20px; gap: 8px; }
	.nest-nav ul { justify-content: center; }
	.nest-footer__inner { grid-template-columns: 1fr; gap: 28px; }
	.nest-page { padding: 24px; }
}
