/*
Theme Name: Activități Altfel
Theme URI: https://activitati.artadidactica.ro
Author: Arta Didactică
Description: Temă Gutenberg prietenoasă pentru catalogul Activități Altfel. Pagina principală, antetul și subsolul rămân editabile vizual.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: activitati-altfel-theme
*/

:root {
	--ada-ink: #073b4c;
	--ada-forest: #087f5b;
	--ada-forest-dark: #056447;
	--ada-coral: #e35d3f;
	--ada-sun: #ffd166;
	--ada-mint: #e9f7f1;
	--ada-paper: #f7fbfa;
	--ada-white: #ffffff;
	--ada-muted: #557078;
	--ada-line: #d8e7e3;
	--ada-shadow: 0 16px 48px rgba(7, 59, 76, 0.10);
	--ada-radius: 22px;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--ada-paper);
	color: var(--ada-ink);
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: 0.18em;
}

.wp-site-blocks {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.ada-site-main {
	flex: 1;
}

.ada-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(247, 251, 250, 0.94);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(7, 59, 76, 0.09);
}

.admin-bar .ada-site-header {
	top: 32px;
}

.ada-header-inner {
	min-height: 76px;
}

.ada-brand .wp-block-site-title {
	font-weight: 850;
	letter-spacing: -0.035em;
}

.ada-brand .wp-block-site-title a {
	text-decoration: none;
}

.ada-site-header .wp-block-navigation {
	font-size: 0.96rem;
	font-weight: 700;
}

.ada-site-header .wp-block-navigation-item__content {
	text-decoration: none;
}

.ada-nav-cta a {
	background: var(--ada-coral);
	border-radius: 999px;
	color: white !important;
	padding: 0.72rem 1rem !important;
}

.ada-hero-editorial {
	position: relative;
	overflow: hidden;
	padding: clamp(4.6rem, 10vw, 8rem) var(--wp--preset--spacing--40);
	background:
		radial-gradient(circle at 84% 18%, rgba(255, 209, 102, 0.72) 0 8%, transparent 8.4%),
		radial-gradient(circle at 92% 64%, rgba(227, 93, 63, 0.15) 0 17%, transparent 17.4%),
		linear-gradient(130deg, #e8f8f1 0%, #f7fbfa 55%, #fff6df 100%);
	border-bottom: 1px solid var(--ada-line);
}

.ada-hero-editorial::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -110px;
	width: 320px;
	height: 320px;
	border: 42px solid rgba(8, 127, 91, 0.11);
	border-radius: 42% 58% 60% 40%;
	transform: rotate(14deg);
	pointer-events: none;
}

.ada-hero-editorial > * {
	position: relative;
	z-index: 1;
}

.ada-hero-editorial h1 {
	max-width: 830px;
	margin-top: 0.7rem;
	margin-bottom: 1.2rem;
	font-size: clamp(2.8rem, 7vw, 5.7rem);
	line-height: 0.97;
	letter-spacing: -0.055em;
}

.ada-hero-editorial > p:not(.ada-eyebrow) {
	max-width: 750px;
	color: #315965;
	line-height: 1.65;
}

.ada-eyebrow {
	margin: 0;
	color: var(--ada-forest);
	font-size: 0.78rem;
	font-weight: 850;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.wp-block-button__link {
	font-weight: 780;
	transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(7, 59, 76, 0.16);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: rgba(255, 255, 255, 0.66);
}

.ada-editorial-section,
.ada-page-intro {
	padding-top: clamp(3.5rem, 8vw, 6.5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}

.ada-editorial-section > h2 {
	max-width: 720px;
	font-size: clamp(2rem, 4vw, 3.25rem);
	letter-spacing: -0.035em;
}

.ada-editorial-section .wp-block-column {
	padding: clamp(1.4rem, 3vw, 2.1rem);
	background: white;
	border: 1px solid var(--ada-line);
	border-radius: var(--ada-radius);
	box-shadow: 0 8px 32px rgba(7, 59, 76, 0.05);
}

.ada-editorial-section .wp-block-column h3 {
	color: var(--ada-forest);
}

.ada-page-intro {
	padding-bottom: 2rem;
}

.ada-page-intro h1,
.ada-standard-page h1,
.ada-archive-header h1 {
	font-size: clamp(2.5rem, 6vw, 4.8rem);
	line-height: 1;
	letter-spacing: -0.05em;
}

.ada-standard-page {
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.ada-standard-page .wp-block-post-content {
	line-height: 1.75;
}

.ada-standard-page .ada-page-intro {
	padding-top: 0.5rem;
	padding-bottom: 1.5rem;
}

.ada-archive-header {
	padding-top: 4rem;
}

.ada-archive-grid .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
}

.ada-archive-grid .wp-block-post {
	padding: 1.5rem;
	background: white;
	border: 1px solid var(--ada-line);
	border-radius: var(--ada-radius);
}

.ada-site-footer {
	margin-top: auto;
	background: var(--ada-ink);
	color: #e8f4f1;
}

.ada-site-footer a {
	color: white;
}

.ada-footer-inner {
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.ada-footer-note {
	color: #b9d4d2;
}

@media (max-width: 900px) {
	.ada-archive-grid .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .ada-site-header {
		top: 46px;
	}

	.ada-header-inner {
		min-height: 66px;
	}

	.ada-nav-cta {
		display: none !important;
	}
}

@media (max-width: 600px) {
	.ada-hero-editorial {
		padding-top: 4rem;
		padding-bottom: 4.5rem;
	}

	.ada-hero-editorial h1 {
		font-size: clamp(2.65rem, 14vw, 4.2rem);
	}

	.ada-archive-grid .wp-block-post-template {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}
