/*
Theme Name: Blocksy Child
Template: blocksy
Description: Temă copil pentru abundenta.eu. Funcționalitatea stă în pluginul aip-core.
Version: 1.0.0
Text Domain: blocksy-child
*/

ul.ab-footer-links {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

ul.ab-footer-links li {
	margin: 0 0 6px;
}

ul.ab-footer-links a {
	text-decoration: none;
}

@media (min-width: 1000px) and (max-width: 1199.98px) {
	[data-device="desktop"] .site-title-container {
		display: none;
	}
}

#offcanvas .ct-social-box a {
	--theme-icon-color: var(--theme-palette-color-7);
	--theme-icon-hover-color: var(--theme-palette-color-6);
}

#offcanvas .ct-button {
	--theme-button-text-initial-color: var(--theme-palette-color-1);
	--theme-button-text-hover-color: var(--theme-palette-color-1);
	--theme-button-background-initial-color: var(--theme-palette-color-7);
	--theme-button-background-hover-color: var(--theme-palette-color-6);
}

.ab-serie,
.ab-similare {
	font-size: 15px;
	line-height: 1.4;
}

.ab-serie {
	padding: 22px;
	border-radius: 20px;
	background: var(--theme-palette-color-6);
}

.ab-serie-label {
	margin: 0 0 4px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #56596D;
}

.ab-serie-title,
.ab-similare-title {
	margin: 0 0 6px;
	font-size: 21px;
}

.ab-serie-progress {
	margin: 0 0 14px;
	color: #56596D;
}

.ab-serie-list {
	margin: 0 0 16px;
	padding-left: 20px;
}

.ab-serie-list li,
.ab-similare li {
	margin-bottom: 8px;
}

.ab-serie a,
.ab-similare a {
	text-decoration: none;
}

.ab-serie a:hover,
.ab-similare a:hover {
	text-decoration: underline;
}

.ab-serie-nav {
	display: grid;
	gap: 10px;
	padding-top: 14px;
	border-top: 1px solid var(--theme-palette-color-5);
}

.ab-serie-nav a {
	display: block;
	font-weight: 600;
}

.ab-serie-nav span {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #56596D;
}

.ab-similare ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ab-yt-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ab-yt-play,
.ab-yt-frame {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 20px;
	overflow: hidden;
}

.ab-yt-play {
	position: relative;
	padding: 0;
	background: none;
	cursor: pointer;
}

.ab-yt-play img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ab-yt-icon {
	position: absolute;
	inset: 50% auto auto 50%;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #4EAD7C;
	transform: translate(-50%, -50%);
}

.ab-yt-icon::after {
	content: "";
	position: absolute;
	inset: 18px auto auto 22px;
	border-style: solid;
	border-width: 10px 0 10px 16px;
	border-color: transparent transparent transparent #2A162C;
}

.ab-yt-title {
	display: block;
	text-decoration: none;
	margin-top: 12px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--theme-palette-color-4);
}

.ab-yt-date {
	display: block;
	margin-top: 4px;
	font-size: 14px;
}

/* Pictograma de categorie din cardurile „Articole noi”: blocul Post Terms nu are opțiune pentru icon. */
.ab-card-category a {
	text-decoration: none;
}

.ab-card-category::before {
	content: "";
	display: inline-block;
	width: 15px;
	height: 15px;
	margin-right: 6px;
	vertical-align: -2px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h4l3 3h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Seminarele de pe pagina Evenimente vin dintr-un shortcode, deci nu au setări de bloc. */
.ab-events {
	display: grid;
	gap: 20px;
	margin-block: 24px 48px;
}

.ab-event {
	padding: 24px;
	background: var(--theme-palette-color-8);
	border-radius: 20px;
}

.ab-event-meta {
	font-size: 15px;
}

.ab-event-price {
	font-weight: 600;
}

/* Numărul de locuri din rezumatul comenzii. */
.ab-seats {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}

.ab-seats-input {
	width: 80px !important;
}

/* Ancorele de pe homepage nu rămân sub headerul sticky. */
.wp-block-group[id] {
	scroll-margin-top: 90px;
}

/* „Citește tot” pe homepage: textele complete, pliate, la o lățime ușor de citit. */
.ab-more {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--theme-palette-color-5);
}

.ab-more summary {
	color: var(--theme-palette-color-1);
	font-size: 17px;
	font-weight: 500;
	cursor: pointer;
}

.ab-more > :not(summary) {
	max-width: 760px;
}

.ab-more[open] summary {
	margin-bottom: 24px;
}

.ab-more h3 {
	margin-top: 36px;
	font-size: 22px;
}

.ab-more h4 {
	margin-top: 24px;
	font-size: 18px;
}

.ab-more-dark {
	border-color: #56596d;
}

.ab-more-dark summary {
	color: #73c37a;
}

.ab-more-dark p,
.ab-more-dark li {
	color: #fff;
}

/* Fereastra suprapusă a planurilor de design: pagina rămâne vizibilă în spate, ușor umbrită. */
/* Pe tot site-ul. */
.wp-lightbox-overlay .scrim {
	background-color: rgba(0, 0, 0, .65) !important;
}

/* Butonul de închidere rămâne clar peste header. */
body .wp-lightbox-overlay .wp-lightbox-close-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border-radius: 50%;
	background: #fdf8ee !important;
	box-shadow: 0 1px 6px rgba(42, 22, 44, .35);
}

/* Taburi: etichete tip pastilă, ca butoanele. */
.wp-block-tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}

.wp-block-tab-list button {
	min-height: 44px;
	padding: 8px 24px;
	border: 1px solid var(--theme-palette-color-5);
	border-radius: 999px;
	background: transparent;
	color: var(--theme-palette-color-3);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

.wp-block-tab-list button[aria-selected="true"] {
	border-color: #4ead7c;
	background: #4ead7c;
	color: #2a162c;
}

.wp-block-tab-list button[aria-selected="true"]::before {
	display: none;
}

.wp-block-tab-list button:focus-visible,
.wp-block-accordion-heading__toggle:focus-visible {
	outline: 2px solid #27704b;
	outline-offset: 2px;
}

/* Acordeon: rânduri separate de o linie, cu tot rândul clicabil. */
.wp-block-accordion-item {
	border-bottom: 1px solid var(--theme-palette-color-5);
}

.wp-block-accordion-heading {
	margin: 0;
}

.wp-block-accordion-heading__toggle {
	width: 100%;
	min-height: 56px;
	padding: 14px 0;
	border: 0;
	background: transparent;
	color: #2a162c;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
}

.wp-block-accordion-panel > * {
	max-width: 75ch;
}

.wp-block-accordion-panel > :last-child {
	padding-bottom: 24px;
}

/* Diplomele se văd întregi, pe carduri egale; ultima nu se lățește pe telefon. */
.ab-diplome.wp-block-gallery.has-nested-images figure.wp-block-image {
	flex-grow: 0;
}

.ab-diplome .wp-block-image img {
	padding: 12px;
	border-radius: 16px;
	background: var(--theme-palette-color-8);
}

.ab-diplome figcaption {
	position: static !important;
	padding: 8px 4px 0 !important;
	background: none !important;
	color: var(--theme-palette-color-3) !important;
	text-shadow: none !important;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}

/* Câmpurile formularelor, la fel ca în restul site-ului. */
.fluentform .ff-el-form-control {
	border-color: var(--theme-palette-color-5);
	border-radius: 999px;
}

.fluentform textarea.ff-el-form-control {
	border-radius: 20px;
}

/* Mesajele formularelor Fluent Forms: contrast AA și culorile site-ului. */
.ff-message-success {
	padding: 16px 20px;
	border: 1px solid #a9d6b3;
	border-radius: 16px;
	background: #e1f2e4;
	color: #1f4f36;
	box-shadow: none;
}

.ff-el-is-error .text-danger,
.ff-errors-in-stack .error {
	color: #a3241a;
}

.ff-el-is-error .ff-el-form-control {
	border-color: #a3241a;
}

/* Imaginile cu dimensiune fixă (portretul din banner) nu se turtesc într-un rând îngust. */
.is-layout-flex > .wp-block-image.is-resized {
	flex-shrink: 0;
}

/* Lista de articole: rândul fiecărui articol are colțuri rotunjite și puțin aer (structura „Simple” nu are setarea). */
.entries[data-layout="simple"] > .entry-card {
	padding: 20px;
	border-radius: 22px;
}

/* Header: la hover, Facebook și YouTube iau culoarea lor; restul pictogramelor se fac verzi (setările Blocksy, setup-footer.php).
   Tranziție scurtă, ca schimbarea să se vadă ca un răspuns la mouse. */
#header .ct-header-socials a,
#header .ct-header-search,
#header .ct-header-account,
#header .ct-header-cart .ct-cart-item,
#offcanvas .ct-header-socials a {
	transition: color .15s ease, transform .15s ease;
}

#header .ct-header-socials a[data-network="facebook"],
#offcanvas .ct-header-socials a[data-network="facebook"] {
	--theme-icon-hover-color: #1877F2;
}

#header .ct-header-socials a[data-network="youtube"],
#offcanvas .ct-header-socials a[data-network="youtube"] {
	--theme-icon-hover-color: #FF0000;
}

#header .ct-header-socials a:hover,
#header .ct-header-search:hover,
#header .ct-header-account:hover,
#header .ct-header-cart .ct-cart-item:hover {
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	#header .ct-header-socials a:hover,
	#header .ct-header-search:hover,
	#header .ct-header-account:hover,
	#header .ct-header-cart .ct-cart-item:hover {
		transform: none;
	}
}
