/*
Theme Name: Apexartisithes
Theme URI: https://example.com/apexartisithes
Author: Apexartisithes
Description: Θέμα με header πλήρους πλάτους (ρυθμιζόμενο χρώμα και ύψος), λογότυπο αριστερά, μενού δεξιά και εικόνα πλήρους πλάτους κάτω από το header. Οι ρυθμίσεις βρίσκονται στο μενού «Apexartisithes» του wp-admin.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apexartisithes
*/

/* Οι τιμές των μεταβλητών έρχονται από τις ρυθμίσεις του θέματος (inline CSS). */
:root {
	--apex-header-bg: #1e1e1e;
	--apex-header-text: #ffffff;
	--apex-header-height: 90px;
	--apex-logo-height: 60px;
	--apex-container: 1200px;
	--apex-side-gap: 24px;
	--apex-hero-height: 480px;
	--apex-text: #222;
	--apex-muted: #666;
	--apex-accent: #c0392b;
}

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

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

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--apex-text);
	background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--apex-accent); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100000;
	width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: #fff; color: #000;
}

/* Κεντρικό «κουτί»: κρατά λογότυπο και μενού μακριά από τις άκρες. */
.apex-container {
	width: 100%;
	max-width: var(--apex-container);
	margin: 0 auto;
	padding-left: var(--apex-side-gap);
	padding-right: var(--apex-side-gap);
}

/* ---------- Header ---------- */
.site-header {
	width: 100%;
	background: var(--apex-header-bg);
	color: var(--apex-header-text);
	position: relative;
	z-index: 50;
}
.site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .site-header.is-sticky { top: 32px; }
@media (max-width: 782px) {
	.admin-bar .site-header.is-sticky { top: 46px; }
}

.header-inner {
	height: var(--apex-header-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-branding { display: flex; align-items: center; flex-shrink: 0; }
.site-branding a { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.site-branding img {
	max-height: min(var(--apex-logo-height), calc(var(--apex-header-height) - 16px));
	width: auto;
}
.site-title { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.2; }

/* Μενού */
.main-navigation { display: flex; align-items: center; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation > div > ul,
.main-navigation > ul { display: flex; align-items: center; gap: 4px; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 10px 14px;
	color: var(--apex-header-text);
	text-decoration: none;
	font-weight: 500;
	border-radius: 4px;
	transition: background .2s;
}
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a { background: rgba(255, 255, 255, .12); }

/* Υπομενού */
.main-navigation .sub-menu {
	position: absolute;
	top: 100%; right: 0;
	min-width: 210px;
	background: var(--apex-header-bg);
	padding: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
	opacity: 0; visibility: hidden;
	transform: translateY(6px);
	transition: all .2s;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu .sub-menu { top: 0; right: 100%; }

.menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid currentColor;
	color: var(--apex-header-text);
	border-radius: 4px;
	padding: 8px 12px;
	cursor: pointer;
	font: inherit;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
	display: inline-block; width: 22px; height: 2px;
	background: currentColor; position: relative; vertical-align: middle;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }

@media (max-width: 900px) {
	.menu-toggle { display: inline-block; }
	.main-navigation .menu-wrap {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--apex-header-bg);
		padding: 8px var(--apex-side-gap) 16px;
		box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
	}
	.main-navigation.toggled .menu-wrap { display: block; }
	.main-navigation .menu-wrap ul { display: block; }
	.main-navigation .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; padding: 0 0 0 16px; min-width: 0;
	}
}

/* ---------- Εικόνα πλήρους πλάτους ---------- */
.apex-hero { width: 100%; margin: 0; overflow: hidden; line-height: 0; }
.apex-hero img { width: 100%; height: auto; }
.apex-hero.has-fixed-height img {
	height: var(--apex-hero-height);
	object-fit: cover;
	object-position: center;
}
@media (max-width: 700px) {
	.apex-hero.has-fixed-height img { height: min(var(--apex-hero-height), 60vw); }
}

/* ---------- Περιεχόμενο ---------- */
.site-main { padding: 48px 0; }
.entry { margin-bottom: 56px; }
.entry-title { font-size: 2rem; line-height: 1.25; margin: 0 0 8px; }
.entry-title a { color: inherit; text-decoration: none; }
.entry-title a:hover { color: var(--apex-accent); }
.entry-meta { color: var(--apex-muted); font-size: .9rem; margin-bottom: 16px; }
.entry-thumbnail { margin-bottom: 20px; }
.entry-content > *:first-child { margin-top: 0; }
.alignwide { max-width: calc(var(--apex-container) + 200px); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

.pagination { display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; text-decoration: none; }
.pagination .current { background: var(--apex-header-bg); color: var(--apex-header-text); border-color: transparent; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--apex-header-bg);
	color: var(--apex-header-text);
	padding: 28px 0;
	font-size: .9rem;
}
.site-footer a { color: var(--apex-header-text); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-menu ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
