/*
Theme Name:   stane1983
Theme URI:    https://stane1983.com
Description:  Modern dark child theme of Twenty Sixteen for stane1983.com — classic blog layout with sidebar, polished look.
Author:       stane1983
Template:     twentysixteen
Version:      1.0.0
Text Domain:  stane1983
*/

/* ------------------------------------------------------------------ tokens */
:root {
	--bg: #0b0e14;
	--bg-2: #0f1420;
	--card: rgba(20, 26, 40, 0.72);
	--card-solid: #141a28;
	--border: rgba(140, 160, 210, 0.14);
	--text: #d7deea;
	--muted: #8b96ab;
	--heading: #f3f6fb;
	--accent: #39d0ff;
	--accent-2: #8b5cf6;
	--accent-3: #22e3a0;
	--radius: 16px;
	--shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------------ base */
html { background: var(--bg); }

body,
body:not(.custom-background-image) {
	background:
		radial-gradient(1200px 600px at 10% -10%, rgba(57, 208, 255, 0.12), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(139, 92, 246, 0.14), transparent 60%),
		radial-gradient(800px 600px at 50% 110%, rgba(34, 227, 160, 0.07), transparent 60%),
		var(--bg);
	background-attachment: fixed;
	color: var(--text);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
}

/* remove Twenty Sixteen's white page frame */
body:not(.custom-background-image):before,
body:not(.custom-background-image):after { display: none; }

body,
button,
input,
select,
textarea { font-family: var(--font-sans); color: var(--text); }

.site {
	background: transparent;
	margin: 0 auto;
	max-width: 1240px;
}

.site-inner { max-width: 1240px; }

a { color: var(--accent); transition: color .2s ease; }
a:hover, a:focus { color: #9be8ff; }

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .widget-title, .comments-title, .comment-reply-title {
	color: var(--heading);
	font-family: var(--font-sans);
	letter-spacing: -0.01em;
}

hr { background-color: var(--border); }

code, kbd, pre, tt, var { font-family: var(--font-mono); }

pre {
	background: #070a10;
	border: 1px solid var(--border);
	border-radius: 12px;
	color: #c9f1ff;
}

code {
	background: rgba(57, 208, 255, 0.1);
	border-radius: 6px;
	padding: .1em .35em;
	color: #9be8ff;
}
pre code { background: none; padding: 0; }

::selection { background: rgba(57, 208, 255, 0.35); color: #fff; }

/* ------------------------------------------------------------------ header */
.site-header {
	padding-top: 2.5em;
	padding-bottom: 2em;
	border-bottom: 1px solid var(--border);
	margin-bottom: 2.5em;
}

.site-title {
	font-family: var(--font-mono);
	font-weight: 700;
	font-size: 2rem;
	letter-spacing: -0.03em;
}

.site-title a {
	background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.site-title a:hover { filter: brightness(1.15); color: transparent; }

.site-title a:before {
	content: "~/";
	color: var(--muted);
	-webkit-text-fill-color: var(--muted);
	font-weight: 400;
	margin-right: 2px;
}

.site-description {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: .85rem;
}
.site-description:after {
	content: "_";
	color: var(--accent);
	animation: blink 1.1s steps(1) infinite;
	margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

/* menu */
.main-navigation a {
	color: var(--text);
	font-weight: 500;
	border-radius: 10px;
	padding: .55em .9em;
}
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: #fff;
	background: rgba(57, 208, 255, 0.1);
}
.main-navigation ul ul {
	background: var(--card-solid);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: var(--shadow);
}
.main-navigation ul ul li { border-color: var(--border); }
.main-navigation ul ul:before,
.main-navigation ul ul:after { display: none; }

.menu-toggle {
	border-color: var(--border);
	color: var(--text);
	border-radius: 10px;
}
.menu-toggle:hover, .menu-toggle:focus { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------------ cards */
.site-main > article,
.comments-area,
.post-navigation,
.pagination,
.page-header,
.no-results {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	padding: 2em 2.25em;
	margin-bottom: 2em;
	transition: transform .25s ease, border-color .25s ease;
}

.site-main > article:hover { border-color: rgba(57, 208, 255, 0.35); }

.site-main > article .entry-header,
.site-main > article .entry-content,
.site-main > article .entry-summary,
.site-main > article .entry-footer,
.site-main > article .post-thumbnail {
	margin-left: 0;
	margin-right: 0;
	width: auto;
	float: none;
}

.post-thumbnail img { border-radius: 12px; }

.entry-title { font-weight: 800; }
.entry-title a { color: var(--heading); }
.entry-title a:hover { color: var(--accent); }

.entry-content, .entry-summary { color: var(--text); }

.entry-content a,
.entry-summary a,
.comment-content a {
	box-shadow: 0 1px 0 0 rgba(57, 208, 255, .45);
}
.entry-content a:hover,
.comment-content a:hover { box-shadow: 0 1px 0 0 var(--accent); }

.entry-footer,
.entry-footer a,
.posted-on, .byline, .cat-links, .tags-links, .comments-link, .edit-link {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: .78rem;
}
.entry-footer a:hover { color: var(--accent); }

.sticky-post {
	background: linear-gradient(92deg, var(--accent), var(--accent-2));
	color: #05070b;
	border-radius: 999px;
	padding: .2em .8em;
	font-weight: 700;
}

blockquote {
	border-left-color: var(--accent-2);
	color: var(--muted);
}

/* ------------------------------------------------------------------ sidebar */
.widget-area .widget {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.4em 1.5em;
	margin-bottom: 1.5em;
	box-shadow: var(--shadow);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--border);
}

.widget .widget-title {
	font-family: var(--font-mono);
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--muted);
	margin-bottom: 1em;
}

.widget ul li { border-color: var(--border); }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent); }

/* Firmware download button (Custom HTML widget) */
.widget_custom_html { padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }

a.firmware-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	padding: 1em 1.2em;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: .01em;
	color: #05070b !important;
	background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent-3) 120%);
	background-size: 200% 100%;
	box-shadow: 0 8px 30px rgba(57, 208, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, .35);
	text-decoration: none;
	transition: background-position .5s ease, transform .2s ease, box-shadow .2s ease;
}
a.firmware-link:hover,
a.firmware-link:focus {
	background-position: 100% 0;
	transform: translateY(-2px);
	box-shadow: 0 12px 36px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, .35);
	color: #05070b !important;
}
a.firmware-link .fw-icon { font-size: 1.15em; }

/* ------------------------------------------------------------------ forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], textarea {
	background: rgba(7, 10, 16, .7);
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
}
input:focus, textarea:focus {
	background: rgba(7, 10, 16, .9);
	border-color: var(--accent);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(57, 208, 255, .15);
	color: #fff;
}

button, button[disabled]:hover, button[disabled]:focus,
input[type="button"], input[type="reset"], input[type="submit"] {
	background: linear-gradient(92deg, var(--accent), var(--accent-2));
	color: #05070b;
	border-radius: 10px;
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: none;
}
button:hover, button:focus,
input[type="button"]:hover, input[type="submit"]:hover,
input[type="button"]:focus, input[type="submit"]:focus {
	background: linear-gradient(92deg, #7ee3ff, #a98bff);
	color: #05070b;
}

.search-form .search-submit { border-radius: 0 10px 10px 0; }

/* ------------------------------------------------------------------ comments */
.comment-list article,
.comment-list .pingback,
.comment-list .trackback {
	border-top-color: var(--border);
}
.comment-author { color: var(--heading); }
.comment-author .avatar { border-radius: 50%; box-shadow: 0 0 0 2px var(--border); }
.comment-metadata, .pingback .edit-link,
.comment-metadata a, .comment-awaiting-moderation { color: var(--muted); font-family: var(--font-mono); font-size: .75rem; }
.bypostauthor > article .fn:after {
	content: "author";
	font-family: var(--font-mono);
	font-size: .65rem;
	background: rgba(57, 208, 255, .15);
	color: var(--accent);
	border-radius: 999px;
	padding: .15em .6em;
	margin-left: .5em;
	vertical-align: middle;
}
.comment-reply-link {
	border-color: var(--border);
	border-radius: 8px;
	color: var(--accent);
}
.comment-reply-link:hover { border-color: var(--accent); color: var(--accent); }

/* commenter email — rendered only for admins/moderators */
.stane-admin-email {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: .72rem;
	color: var(--accent-3);
	background: rgba(34, 227, 160, .08);
	border: 1px dashed rgba(34, 227, 160, .35);
	border-radius: 6px;
	padding: .15em .55em;
	margin: 0 0 .8em;
}

/* ------------------------------------------------------------------ nav/pagination */
.post-navigation, .pagination { padding: 1.25em 1.75em; }
.post-navigation a, .pagination a { color: var(--text); }
.post-navigation .post-title, .pagination .page-numbers { color: var(--heading); }
.post-navigation a:hover .post-title, .pagination a:hover { color: var(--accent); }
.post-navigation div + div { border-top-color: var(--border); }
.pagination:before, .pagination:after { display: none; }
.pagination .prev, .pagination .next { background: rgba(57, 208, 255, .12); color: var(--accent); border-radius: 10px; }
.pagination .current { color: var(--accent); }

/* ------------------------------------------------------------------ footer */
.site-footer {
	border-top: 1px solid var(--border);
	margin-top: 2em;
	padding-top: 2em;
	padding-bottom: 3em;
}
.site-info, .site-info a { color: var(--muted); font-family: var(--font-mono); font-size: .75rem; }
.site-info a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ layout tweaks */
@media screen and (min-width: 56.875em) {
	.site-header,
	.site-content,
	.site-footer { padding-left: 4%; padding-right: 4%; }

	.content-area { width: 68%; margin-right: -100%; }
	.sidebar { width: 28%; margin-left: 72%; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
