/* Energy CRM theme — front-end styling.
 * Identity continues the plugin's navy structure + amber accent. The landing
 * hero is the one bold moment; everything else stays quiet. */

:root {
	--ect-navy: #0a1f3d;
	--ect-navy-soft: #1e3a5f;
	--ect-amber: #f59e0b;
	--ect-amber-bright: #fbbf24;
	--ect-ink: #0f172a;
	--ect-muted: #64748b;
	--ect-bg: #f1f5f9;
	--ect-surface: #ffffff;
	--ect-line: #e2e8f0;
}

/* ============================================================
   Full-screen CRM template
   ============================================================ */
body.ect-app-body {
	margin: 0;
	background: var(--ect-bg);
}
/* Απλό κουτί, όχι flex. Το flex ήταν που έσπασε το shell: το flex-basis: 0%
   νικούσε το ύψος του .ecrm-app και η εφαρμογή μάζευε. Το πλάτος και το ύψος
   τα ορίζει το ίδιο το plugin (.ecrm-app), εδώ δεν έχουμε δουλειά. */
.ect-app-screen {
	min-height: 100vh;
	min-height: 100dvh;
}

/* ============================================================
   Site header / footer (normal pages)
   ============================================================ */
.ect-siteheader {
	display: flex; align-items: center; justify-content: space-between;
	padding: 16px 28px; background: var(--ect-surface); border-bottom: 1px solid var(--ect-line);
	position: sticky; top: 0; z-index: 50;
}
.ect-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ect-navy); font-weight: 800; font-size: 18px; }
.ect-logo__mark { color: var(--ect-amber); }
.ect-sitenav { display: flex; align-items: center; gap: 18px; }
.ect-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.ect-menu a { text-decoration: none; color: var(--ect-muted); font-weight: 600; font-size: 14px; }
.ect-menu a:hover { color: var(--ect-navy); }
.ect-cta {
	background: linear-gradient(135deg, var(--ect-amber), var(--ect-amber-bright));
	color: var(--ect-navy); text-decoration: none; font-weight: 700; font-size: 14px;
	padding: 9px 16px; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(245,158,11,.5);
}
.ect-cta:hover { filter: brightness(1.04); }
.ect-link { color: var(--ect-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.ect-link:hover { color: var(--ect-navy); }

.ect-main { min-height: 50vh; }
.ect-sitefooter {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px 28px; color: var(--ect-muted); font-size: 13px;
	border-top: 1px solid var(--ect-line); background: var(--ect-surface);
}
.ect-sitefooter__powered { font-weight: 600; }

/* ============================================================
   Landing hero
   ============================================================ */
.ect-hero {
	position: relative; overflow: hidden; color: #f4f7fb;
	background:
		radial-gradient(ellipse at 15% 10%, rgba(245,158,11,.18), transparent 45%),
		radial-gradient(ellipse at 90% 90%, rgba(6,182,212,.14), transparent 45%),
		linear-gradient(160deg, #061429, var(--ect-navy) 45%, #14304f);
	padding: 92px 24px 104px;
}
.ect-hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
	background-size: 56px 56px;
}
.ect-hero__inner { position: relative; max-width: 880px; margin: 0 auto; }
.ect-hero__eyebrow {
	display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ect-amber-bright); padding: 6px 12px; border: 1px solid rgba(251,191,36,.3);
	border-radius: 999px; margin-bottom: 22px; background: rgba(245,158,11,.08);
}
.ect-hero__title { font-size: 46px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 0 0 18px; color: #fff; }
.ect-hero__title span { color: var(--ect-amber-bright); }
.ect-hero__sub { font-size: 17px; line-height: 1.6; color: #cdd6e4; max-width: 620px; margin: 0 0 30px; }
.ect-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.ect-btn {
	display: inline-flex; align-items: center; text-decoration: none; font-weight: 700; font-size: 15px;
	padding: 13px 22px; border-radius: 12px; transition: transform .12s, filter .15s, background .15s;
}
.ect-btn--amber { background: linear-gradient(135deg, var(--ect-amber), var(--ect-amber-bright)); color: var(--ect-navy); box-shadow: 0 14px 30px -12px rgba(245,158,11,.7); }
.ect-btn--amber:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ect-btn--ghost { background: rgba(255,255,255,.07); color: #f4f7fb; border: 1px solid rgba(255,255,255,.14); }
.ect-btn--ghost:hover { background: rgba(255,255,255,.12); }

.ect-hero__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ect-mini {
	background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
	border-radius: 14px; padding: 18px; backdrop-filter: blur(10px);
}
.ect-mini__k { display: block; font-weight: 800; font-size: 15px; color: #fff; margin-bottom: 6px; }
.ect-mini__v { display: block; font-size: 13px; color: #cdd6e4; line-height: 1.5; }

/* ============================================================
   Generic page / posts
   ============================================================ */
.ect-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 64px; }
.ect-page__title { font-size: 32px; font-weight: 800; color: var(--ect-navy); letter-spacing: -.02em; margin: 0 0 20px; }
.ect-page__content { font-size: 16px; line-height: 1.7; color: var(--ect-ink); }
.ect-entry { padding: 20px 0; border-bottom: 1px solid var(--ect-line); }
.ect-entry__title a { color: var(--ect-navy); text-decoration: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
	.ect-hero { padding: 64px 20px 72px; }
	.ect-hero__title { font-size: 34px; }
	.ect-hero__cards { grid-template-columns: 1fr; }
	.ect-siteheader { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
	.ect-sitefooter { flex-direction: column; gap: 6px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
