/*
Theme Name: DNHOST Blog
Theme URI: https://blog.dnhost.gr/
Description: Child theme του Twenty Twenty-Five με τη διάταξη του παλιού blog.dnhost.gr (μπάρα «Πρόσφατα», μενού κατηγοριών, λίστα άρθρων με πλαϊνή στήλη, footer με συνδέσμους υπηρεσιών).
Author: DNHOST
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
License: GNU General Public License v2 or later
Text Domain: dnhost-blog
*/

/* ---------- Base ---------- */
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6,
.wp-block-site-title,
.wp-block-navigation {
	font-family: var(--wp--preset--font-family--open-sans);
}

:root {
	--dn-accent: #08528b;
	--dn-dark: #1e1e1e;
	--dn-text: #494949;
	--dn-line: #eaeaea;
	--dn-muted: #8c8c8c;
}

/* Template main area: same breathing room as the old theme */
.dn-main {
	padding-top: 40px;
	padding-bottom: 60px;
}

/* ---------- Top bar ---------- */
.dn-topbar {
	background: #000;
	color: #ebebeb;
	font-size: 12px;
	padding-top: 8px;
	padding-bottom: 8px;
}
.dn-topbar p {
	margin: 0;
}
.dn-ticker {
	gap: 12px;
	min-width: 0;
}
.dn-ticker-label {
	background: var(--dn-accent);
	color: #fff;
	font-weight: 700;
	font-size: 10px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 2px;
	white-space: nowrap;
}
.dn-ticker-query,
.dn-ticker-query .wp-block-post-template,
.dn-ticker-query .wp-block-post {
	margin: 0;
}
.dn-ticker-title,
.dn-ticker-title a {
	color: #ebebeb;
	font-size: 12px;
	font-weight: 400;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dn-ticker-title a:hover {
	color: #fff;
}
.dn-social .wp-social-link {
	color: #ebebeb;
}

/* ---------- Main header ---------- */
.dn-mainhead {
	border-bottom: 1px solid var(--dn-line);
	padding-top: 18px;
	padding-bottom: 18px;
	background: #fff;
}
.dn-mainhead .wp-block-site-logo img {
	height: auto;
}
.dn-nav {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.035em;
	gap: 28px;
}
.dn-nav .wp-block-navigation-item__content {
	color: #383838;
	text-decoration: none;
}
.dn-nav .wp-block-navigation-item__content:hover,
.dn-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--dn-accent);
}
.dn-nav .wp-block-navigation__submenu-container {
	border: 1px solid var(--dn-line) !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
	padding: 8px 0;
	min-width: 240px !important;
}
.dn-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 18px;
	font-size: 12px;
}
.dn-header-right {
	gap: 24px;
}
.dn-header-right .wp-block-search .wp-block-search__button.wp-element-button {
	background: transparent;
	color: #000;
	border: 0;
	padding: 6px;
	min-width: 0;
	box-shadow: none;
}
.dn-header-right .wp-block-search .wp-block-search__button.wp-element-button:hover {
	color: var(--dn-accent);
	background: transparent;
}
.dn-header-right .wp-block-search__button svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}
.dn-header-right .wp-block-search__input {
	font-size: 14px;
	padding: 6px 10px;
}

/* ---------- Two column layout ---------- */
.dn-layout {
	gap: 50px;
}
.dn-sidebar-col {
	position: relative;
}
@media (min-width: 782px) {
	.dn-sidebar {
		position: sticky;
		top: 30px;
	}
}

/* ---------- Archive heading ---------- */
.dn-archive-head {
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--dn-line);
}
.dn-archive-head .wp-block-query-title {
	font-size: 28px;
	margin: 0 0 10px;
}
.dn-archive-head .wp-block-term-description h1 {
	font-size: 22px;
}

/* ---------- Post list ---------- */
.dn-list .wp-block-post {
	margin: 0 0 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid var(--dn-line);
}
.dn-item {
	gap: 30px;
	margin: 0;
	align-items: flex-start;
}
.dn-item-media .wp-block-post-featured-image {
	margin: 0;
}
.dn-item-media img {
	display: block;
	width: 100%;
	object-fit: cover;
}
.dn-meta {
	gap: 10px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}
.dn-meta .wp-block-post-date {
	color: var(--dn-muted);
}
.dn-meta .wp-block-post-terms a,
.dn-single-cats a {
	color: var(--dn-accent);
	font-weight: 600;
	text-decoration: none;
}
.dn-list .wp-block-post-title {
	font-size: 22px;
	line-height: 1.3;
	letter-spacing: -0.015em;
	margin: 0 0 12px;
}
.dn-list .wp-block-post-title a {
	color: #000;
	text-decoration: none;
}
.dn-list .wp-block-post-title a:hover {
	color: var(--dn-accent);
}
.dn-list .wp-block-post-excerpt {
	font-size: 14px;
	line-height: 1.75;
	color: var(--dn-text);
	margin: 0 0 18px;
}
.dn-list .wp-block-post-excerpt__excerpt {
	margin: 0;
}
.dn-readmore,
.wp-block-read-more.dn-readmore {
	display: inline-block;
	background: #000;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.075em;
	padding: 10px 18px;
	text-decoration: none;
	line-height: 1.2;
}
.dn-readmore:hover {
	background: var(--dn-accent);
}

/* First post of the list: large, like the old "overlay" lead post */
.dn-list .wp-block-post:first-child .dn-item {
	flex-direction: column;
	gap: 18px;
}
.dn-list .wp-block-post:first-child .dn-item > .wp-block-column {
	flex-basis: 100% !important;
	width: 100%;
}
.dn-list .wp-block-post:first-child .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9 !important;
}
.dn-list .wp-block-post:first-child .wp-block-post-title {
	font-size: 30px;
}

/* Pagination */
.dn-list .wp-block-query-pagination {
	font-size: 14px;
	font-weight: 600;
	gap: 6px;
}
.dn-list .wp-block-query-pagination a,
.dn-list .wp-block-query-pagination .current {
	display: inline-block;
	min-width: 34px;
	padding: 6px 10px;
	text-align: center;
	border: 1px solid var(--dn-line);
	text-decoration: none;
	color: #000;
}
.dn-list .wp-block-query-pagination .current {
	background: #000;
	color: #fff;
	border-color: #000;
}

/* ---------- Sidebar ---------- */
.dn-widget-title {
	background: var(--dn-dark);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	padding: 10px 12px;
	margin: 0 0 18px;
	letter-spacing: 0;
}
.dn-widget {
	list-style: none;
	padding: 0 0 0 4px;
	margin: 0 0 40px;
	font-size: 14px;
}
.dn-widget li {
	padding: 9px 0 9px 14px;
	border-bottom: 1px solid var(--dn-line);
	position: relative;
}
.dn-widget li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #bdbdbd;
}
.dn-widget li:last-child {
	border-bottom: 0;
}
.dn-widget a {
	color: #454545;
	text-decoration: none;
}
.dn-widget a:hover {
	color: var(--dn-accent);
}
.dn-widget .children {
	list-style: none;
	padding-left: 10px;
}

/* ---------- Single post ---------- */
.dn-single {
	padding-top: 50px;
	padding-bottom: 60px;
}
.dn-single-cats {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 12px;
}
.dn-single-title {
	font-size: clamp(26px, 3.4vw, 36px);
	line-height: 1.25;
	letter-spacing: -0.02em;
	margin: 0 0 14px;
}
.dn-single-meta {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--dn-muted);
	gap: 8px;
	margin-bottom: 30px;
}
.dn-single-meta a {
	color: #000;
	font-weight: 600;
	text-decoration: none;
}
.dn-single .wp-block-post-featured-image {
	margin-bottom: 30px;
}
.dn-single .wp-block-post-content {
	font-size: 15px;
	line-height: 1.85;
}
.dn-single .wp-block-post-content h2 {
	font-size: 26px;
	margin-top: 1.6em;
}
.dn-single .wp-block-post-content h3 {
	font-size: 21px;
	margin-top: 1.4em;
}
.dn-single .wp-block-post-content img {
	max-width: 100%;
	height: auto;
}
.dn-single .wp-block-post-content .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}
.dn-single .wp-block-post-content .alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}
.dn-single .wp-block-post-content .alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}
.dn-single-tags {
	font-size: 13px;
	margin-top: 30px;
}
.dn-postnav {
	border-top: 1px solid var(--dn-line);
	border-bottom: 1px solid var(--dn-line);
	padding: 20px 0;
	margin: 40px 0;
	font-size: 14px;
	font-weight: 600;
}
.dn-postnav a {
	color: #000;
	text-decoration: none;
}

/* ---------- Footer ---------- */
.dn-footer {
	background: #fff url("/wp-content/uploads/footerblacktransparentk.webp") center bottom / cover no-repeat;
	border-top: 1px solid var(--dn-line);
	padding-top: 40px;
	padding-bottom: 30px;
	font-size: 13px;
	margin-top: 0;
}
.dn-footer-social {
	margin-bottom: 40px;
}
.dn-footer-social .wp-social-link {
	color: #000;
}
.dn-footer-cols {
	gap: 40px;
	margin-bottom: 30px;
}
.dn-footer h5 {
	font-size: 16px;
	font-weight: 700;
	color: #000;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	margin: 0 0 14px;
}
.dn-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.dn-footer li {
	padding: 4px 0;
}
.dn-footer a {
	color: #454545;
	text-decoration: none;
}
.dn-footer a:hover {
	color: var(--dn-accent);
}
.dn-copyright {
	font-size: 12px;
	line-height: 1.8;
	color: #555;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	padding-top: 20px;
}
.dn-copyright p {
	margin: 0;
}

/* ---------- Boxes from the old CheerUp shortcodes ---------- */
.dnhost-box > *:last-child {
	margin-bottom: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.dn-topbar .dn-social {
		display: none;
	}
	.dn-layout {
		gap: 20px;
	}
	.dn-item {
		gap: 14px;
	}
	.dn-list .wp-block-post-title,
	.dn-list .wp-block-post:first-child .wp-block-post-title {
		font-size: 21px;
	}
	.dn-footer-cols {
		gap: 24px;
	}
}
