/*
Theme Name: Essential Circuit
Theme URI: https://essentialcircuit.com
Author: Leon Davis
Author URI: https://essentialcircuit.com
Description: AI-powered personalized news and lifestyle platform.
Version: 8.0.0
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: ec-theme
*/

:root {
	--ec-orange: #ff7a00;
	--ec-orange-hover: #e56d00;
	--ec-dark: #111111;
	--ec-white: #ffffff;
	--ec-light-gray: #f5f7fa;
	--ec-border: #e5e7eb;
	--ec-text: #1f2937;
	--ec-text-muted: #6b7280;
	--ec-success: #22c55e;
	--ec-warning: #f59e0b;
	--ec-error: #ef4444;
	--ec-content-width: 1440px;
	--ec-content-gutter: 48px;
	--ec-content-gutter-mobile: 32px;
	--ec-section-space: clamp(30px, 4vw, 52px);
	--ec-section-space-medium: clamp(42px, 6vw, 78px);
	--ec-section-space-large: clamp(52px, 7vw, 88px);
	--ec-control-height: 44px;
	--ec-control-radius: 12px;
	--ec-card-radius: 18px;
	--ec-panel-radius: 20px;
	--ec-card-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
	--ec-card-shadow-hover: 0 16px 36px rgba(17, 24, 39, 0.1);
	--ec-focus-ring: 0 0 0 3px rgba(255, 122, 0, 0.42);
	--ec-transition-fast: 160ms ease;
	--ec-transition-base: 180ms ease;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--ec-white);
	color: var(--ec-text);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}

button,
input {
	font: inherit;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	height: auto;
}

.ec-site-main {
	width: min(100% - var(--ec-content-gutter), var(--ec-content-width));
	min-height: 55vh;
	margin-inline: auto;
	padding-block: clamp(2.5rem, 6vw, 5rem);
}

.ec-loop-header {
	margin-bottom: 1.5rem;
}

.ec-loop-header h1,
.entry-title,
.ec-empty-state h1 {
	margin: 0;
	color: var(--ec-dark);
	font-family: Poppins, Inter, sans-serif;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

.ec-loop-header h1,
.ec-empty-state h1 {
	font-size: clamp(2rem, 4vw, 3.25rem);
}

.ec-entry-list {
	display: grid;
	gap: 1rem;
}

.ec-site-main article {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid var(--ec-border);
	border-radius: var(--ec-card-radius);
	background: var(--ec-white);
	box-shadow: var(--ec-card-shadow);
}

.entry-title {
	font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.entry-title a {
	text-decoration: none;
}

.entry-title a:hover {
	color: var(--ec-orange-hover);
}

.entry-summary,
.entry-content,
.ec-empty-state p {
	color: var(--ec-text-muted);
	line-height: 1.7;
}

.entry-content > :first-child,
.entry-summary > :first-child {
	margin-top: 1rem;
}

.ec-empty-state {
	max-width: 720px;
	padding: clamp(1.5rem, 4vw, 3rem);
	border: 1px solid var(--ec-border);
	border-radius: var(--ec-panel-radius);
	background: var(--ec-light-gray);
}

.ec-empty-state__action {
	display: inline-flex;
	min-height: var(--ec-control-height);
	align-items: center;
	justify-content: center;
	margin-top: 0.5rem;
	padding-inline: 1rem;
	border-radius: var(--ec-control-radius);
	background: var(--ec-orange);
	color: var(--ec-dark);
	font-weight: 700;
	text-decoration: none;
}

.ec-empty-state__action:hover {
	background: var(--ec-orange-hover);
}

.entry-title a:focus-visible,
.ec-empty-state__action:focus-visible {
	box-shadow: var(--ec-focus-ring);
	outline: 0;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 8px;
	left: 8px;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: var(--ec-white);
	color: var(--ec-dark);
}

@media (max-width: 782px) {
	.ec-site-main {
		width: min(100% - var(--ec-content-gutter-mobile), var(--ec-content-width));
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
