﻿/*
Theme Name: Eparkeia Child
Theme URI: https://omke.gr/
Description: Child theme for the Eparkeia platform UI layer.
Template: astra
Version: 0.3.8
Text Domain: eparkeia-child
*/

body.eparkeia-phase-1-ready {
	background: #f6f8fb;
}

body.eparkeia-um-account-page {
	background: linear-gradient(180deg, #eef4f8 0%, #f7fafc 42%, #f3f6f9 100%);
	color: #243447;
}

body.eparkeia-workspace-page {
	background: linear-gradient(180deg, #eef4f8 0%, #f7fafc 42%, #f3f6f9 100%);
	color: #243447;
}

/* The portal shell supplies its own brand header on every signed-in page. */
body.eparkeia-portal-shell .site-header,
body.eparkeia-portal-shell #masthead {
	display: none !important;
}

body:not(.eparkeia-portal-shell):not(.eparkeia-auth-screen) .site-header .custom-logo,
body:not(.eparkeia-portal-shell):not(.eparkeia-auth-screen) .site-header .site-logo-img img {
	width: auto;
	height: auto;
	max-width: 80px;
	max-height: 80px;
	object-fit: contain;
}

body.eparkeia-legal-page {
	background: #f3f6f9;
}

body.eparkeia-legal-page .site-header,
body.eparkeia-legal-page #masthead {
	display: none !important;
}

.eparkeia-legal-brand {
	box-sizing: border-box;
	width: 100%;
	padding: 1rem 1rem 0;
}

.eparkeia-legal-brand a,
.eparkeia-legal-brand a:visited {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 560px;
	margin: 0 auto;
	color: #243447;
	text-align: center;
	text-decoration: none !important;
}

.eparkeia-legal-brand img {
	width: 124px;
	height: 124px;
	margin-bottom: 0.8rem;
	object-fit: contain;
}

.eparkeia-legal-brand strong {
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1.1;
}

.eparkeia-legal-brand small {
	margin-top: 0.45rem;
	color: #667085;
	font-size: 0.92rem;
	font-weight: 600;
}

body.eparkeia-legal-page .site-main > article {
	box-sizing: border-box;
	width: 100%;
	max-width: 1320px;
	margin: 1.5rem auto 2rem;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid #d9e3eb;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

body.eparkeia-legal-page .entry-content {
	overflow-wrap: anywhere;
}

@media (max-width: 640px) {
	.eparkeia-legal-brand img {
		width: 104px;
		height: 104px;
	}
}

body.eparkeia-um-account-page .site-header,
body.eparkeia-um-account-page .site-footer,
body.eparkeia-um-account-page #masthead,
body.eparkeia-um-account-page #colophon,
body.eparkeia-um-account-page .entry-header,
body.eparkeia-um-account-page .post-thumb-img-content,
body.eparkeia-workspace-page .site-header,
body.eparkeia-workspace-page .site-footer,
body.eparkeia-workspace-page #masthead,
body.eparkeia-workspace-page #colophon,
body.eparkeia-workspace-page .entry-header,
body.eparkeia-workspace-page .post-thumb-img-content {
	display: none !important;
}

body.eparkeia-um-account-page .site-content,
body.eparkeia-um-account-page .ast-container,
body.eparkeia-um-account-page .entry-content,
body.eparkeia-um-account-page .site-main,
body.eparkeia-workspace-page .site-content,
body.eparkeia-workspace-page .ast-container,
body.eparkeia-workspace-page .entry-content,
body.eparkeia-workspace-page .site-main {
	max-width: none;
	padding: 0;
	width: 100%;
}

body.eparkeia-um-account-page .entry-content,
body.eparkeia-workspace-page .entry-content {
	margin: 0;
}

body.eparkeia-admin-workspace-page .epik-competition {
	padding: 2rem 1rem 0;
}

body.eparkeia-auth-screen {
	background: #f3f6f9;
	color: #333c48;
}

body.eparkeia-auth-screen .wp-site-blocks > header,
body.eparkeia-auth-screen .wp-site-blocks > footer,
body.eparkeia-auth-screen .wp-block-template-part,
body.eparkeia-auth-screen .wp-block-post-title,
body.eparkeia-auth-screen .wp-block-query-title {
	display: none !important;
}

body.eparkeia-auth-screen .wp-site-blocks,
body.eparkeia-auth-screen main,
body.eparkeia-auth-screen .wp-block-post-content {
	margin: 0 !important;
	padding: 0 !important;
}

body.eparkeia-auth-screen .wp-block-group,
body.eparkeia-auth-screen .wp-block-post-content > * {
	max-width: none !important;
}

body.eparkeia-auth-screen .site-header,
body.eparkeia-auth-screen .site-footer,
body.eparkeia-auth-screen #masthead,
body.eparkeia-auth-screen #colophon,
body.eparkeia-auth-screen .ast-header-break-point .main-header-bar,
body.eparkeia-auth-screen .ast-mobile-header-wrap {
	display: none !important;
}

body.eparkeia-auth-screen .site-content,
body.eparkeia-auth-screen .ast-container,
body.eparkeia-auth-screen .entry-content,
body.eparkeia-auth-screen .site-main {
	max-width: none;
	padding: 0;
	width: 100%;
}

body.eparkeia-auth-screen .entry-header,
body.eparkeia-auth-screen .post-thumb-img-content {
	display: none !important;
}

body.eparkeia-auth-screen .entry-content {
	margin: 0;
}

body.eparkeia-has-legal-footer #page {
	min-height: 0;
}

body.eparkeia-has-legal-footer .site-footer,
body.eparkeia-has-legal-footer #colophon {
	display: none !important;
}

.eparkeia-auth-page {
	width: min(100%, 560px);
	margin: 0 auto;
	padding: 4.25rem 1rem 2rem;
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.eparkeia-auth-page,
.eparkeia-auth-page * {
	box-sizing: border-box;
}

.eparkeia-auth-register {
	width: min(100%, 640px);
	padding-top: 2.6rem;
}

.eparkeia-auth-logo {
	margin-bottom: 2rem;
	text-align: center;
	animation: eparkeia-auth-swing 0.85s ease both;
	transform-origin: top center;
}

.eparkeia-auth-logo a,
.eparkeia-auth-logo a:visited {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	color: #3d4b5f;
	text-decoration: none !important;
}

.eparkeia-auth-logo-image {
	display: block;
	width: 124px;
	height: 124px;
	margin-bottom: 0.8rem;
	object-fit: contain;
	filter: drop-shadow(0 7px 12px rgba(32, 51, 72, 0.12));
}

.eparkeia-auth-logo h1,
.eparkeia-auth-logo h2 {
	margin: 0;
	color: #3d4b5f;
	font-family: inherit;
	line-height: 1.1;
	text-decoration: none;
}

.eparkeia-auth-logo h1 {
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0;
}

.eparkeia-auth-logo h2 {
	margin-top: 0.45rem;
	font-size: 0.92rem;
	font-weight: 600;
}

.eparkeia-auth-card {
	padding: 2rem 2rem 2.15rem;
	background: #ffffff;
	border: 1px solid #e1e7ef;
	border-radius: 4px;
	box-shadow: 0 4px 18px rgba(30, 42, 58, 0.08);
	animation: eparkeia-auth-flip-in 0.7s ease both;
}

.eparkeia-auth-card-wide {
	padding-top: 1.65rem;
}

.eparkeia-auth-title {
	margin: 0 0 1.65rem;
	color: #2f3b4a;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	text-align: center;
}

.eparkeia-auth-title-spaced {
	margin-top: 1.9rem;
}

.eparkeia-auth-card form {
	margin: 0;
}

.eparkeia-auth-field {
	margin-bottom: 1rem;
}

.eparkeia-auth-input {
	width: 100%;
	min-height: 44px;
	padding: 0.74rem 0.95rem;
	color: #2f3b4a;
	background: #ffffff;
	border: 1px solid #d8e0ea;
	border-radius: 4px;
	box-shadow: none;
	font-size: 0.96rem;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.eparkeia-auth-card input[type="email"].eparkeia-auth-input,
.eparkeia-auth-card input[type="password"].eparkeia-auth-input,
.eparkeia-auth-card input[type="text"].eparkeia-auth-input {
	display: block;
	max-width: 100%;
}

.eparkeia-auth-input:focus {
	border-color: #188ae2;
	box-shadow: 0 0 0 3px rgba(24, 138, 226, 0.13);
	outline: none;
}

.eparkeia-auth-uppercase {
	text-transform: uppercase;
}

.eparkeia-auth-checkbox-row {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
	color: #596579;
	font-size: 0.92rem;
	line-height: 1.45;
}

.eparkeia-auth-checkbox-row input {
	margin-top: 0.15rem;
}

.eparkeia-auth-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 0.75rem 1rem;
	color: #ffffff;
	background: #188ae2;
	border: 1px solid #188ae2;
	border-radius: 4px;
	box-shadow: none;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.16s ease, border-color 0.16s ease;
}

.eparkeia-auth-button:hover,
.eparkeia-auth-button:focus {
	background: #0f76c2;
	border-color: #0f76c2;
}

.eparkeia-auth-footer {
	margin-top: 1.35rem;
	color: #7b8794;
	text-align: center;
}

.eparkeia-auth-footer p {
	margin: 0.3rem 0;
}

.eparkeia-auth-footer a,
.eparkeia-auth-footer a:visited {
	color: #188ae2;
	text-decoration: none;
	font-weight: 700;
}

.eparkeia-auth-footer a:hover,
.eparkeia-auth-footer a:focus {
	color: #0f76c2;
	text-decoration: underline;
}

.eparkeia-auth-terms-box {
	max-height: 280px;
	padding: 1rem;
	margin-bottom: 1rem;
	overflow: auto;
	color: #485568;
	background: #f8fafc;
	border: 1px solid #d8e0ea;
	border-radius: 4px;
	line-height: 1.65;
}

.eparkeia-auth-terms-box p {
	margin: 0 0 0.8rem;
}

.eparkeia-auth-error {
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	color: #b42318;
	background: #fef3f2;
	border-left: 4px solid #d92d20;
	font-weight: 700;
}

.eparkeia-auth-message {
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	border-left: 4px solid #188ae2;
	font-weight: 700;
	line-height: 1.5;
}

.eparkeia-auth-message-success {
	color: #067647;
	background: #ecfdf3;
	border-left-color: #12b76a;
}

.eparkeia-auth-message-error {
	color: #b42318;
	background: #fef3f2;
	border-left-color: #d92d20;
}

.eparkeia-legal-footer {
	width: 100%;
	margin-top: 1.5rem;
	padding: 1rem 1.25rem 1.15rem;
	border-top: 1px solid #d9e3eb;
	background: #f5f8fb;
	color: #52667a;
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 0.82rem;
	text-align: center;
}

.eparkeia-legal-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.35rem;
	justify-content: center;
	list-style: none;
	margin: 0 0 0.45rem;
	padding: 0;
}

.eparkeia-legal-footer__links a,
.eparkeia-legal-footer__links a:visited {
	color: #315d7d;
	font-weight: 700;
	text-decoration: none;
}

.eparkeia-legal-footer__links a:hover,
.eparkeia-legal-footer__links a:focus-visible {
	color: #096ba8;
	text-decoration: underline;
}

.eparkeia-legal-footer p {
	margin: 0;
}

@media print {
	.eparkeia-legal-footer {
		display: none !important;
	}
}

@media (max-width: 1024.9px) {
	#ast-desktop-header {
		display: none !important;
	}

	#ast-mobile-header {
		display: block !important;
	}
}

@keyframes eparkeia-auth-swing {
	20% {
		transform: rotate(8deg);
	}
	40% {
		transform: rotate(-6deg);
	}
	60% {
		transform: rotate(3deg);
	}
	80% {
		transform: rotate(-2deg);
	}
	100% {
		transform: rotate(0deg);
	}
}

@keyframes eparkeia-auth-flip-in {
	from {
		opacity: 0;
		transform: perspective(900px) rotateX(12deg) translateY(12px);
	}
	to {
		opacity: 1;
		transform: perspective(900px) rotateX(0deg) translateY(0);
	}
}

@media (max-width: 640px) {
	.eparkeia-auth-page,
	.eparkeia-auth-register {
		width: 100%;
		padding-top: 2rem;
	}

	.eparkeia-auth-card {
		padding: 1.5rem 1.25rem 1.65rem;
	}

	.eparkeia-auth-logo h1 {
		font-size: 1.2rem;
	}

	.eparkeia-auth-logo-image {
		width: 104px;
		height: 104px;
	}
}

@media (min-width: 1025px) {
	#ast-mobile-header {
		display: none !important;
	}
}
