/*
Theme Name: Twenty Twenty-Four — DC Child
Theme URI: https://wp-test.dianaciobanu.com/
Description: Child theme pentru Twenty Twenty-Four, identitatea Skincare by Diana Ciobanu.
Author: Diana Ciobanu
Author URI: https://dianaciobanu.com/
Template: twentytwentyfour
Version: 0.7.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfour-dc
Tags: child-theme
*/

/* ====================================================================
   1. UTILITARE GLOBALE
   ==================================================================== */
html { scroll-behavior: smooth; }

.wp-block-site-logo img {
	border-radius: 50%;
	transition: opacity 0.2s ease;
}
.wp-block-site-logo a:hover img { opacity: 0.85; }

:focus-visible {
	outline: 2px solid var(--wp--preset--color--rose);
	outline-offset: 3px;
	border-radius: 4px;
}

::selection {
	background: var(--wp--preset--color--rose-soft);
	color: var(--wp--preset--color--contrast);
}

/* ====================================================================
   2. BUTOANE — transitions + variante
   ==================================================================== */
.wp-block-button__link,
.wp-element-button {
	transition: background-color 0.25s ease, border-color 0.25s ease,
				color 0.25s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(226, 167, 158, 0.35);
}

.dc-cta-dark .wp-block-button__link {
	background-color: var(--wp--preset--color--dark);
	border-color: var(--wp--preset--color--dark);
	color: #ffffff;
}
.dc-cta-dark .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--burgundy);
	border-color: var(--wp--preset--color--burgundy);
	color: #ffffff;
	box-shadow: 0 6px 18px rgba(142, 43, 62, 0.35);
}

.dc-cta-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}
.dc-cta-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--contrast);
	color: #ffffff;
	border-color: var(--wp--preset--color--contrast);
}

/* ====================================================================
   3. CARDURI homepage
   ==================================================================== */
.dc-card {
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: 28px 22px;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
	height: 100%;
}
.dc-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 32px rgba(44, 36, 33, 0.10);
	border-color: var(--wp--preset--color--rose);
}
.dc-card h3 { margin-top: 0; margin-bottom: 0.75rem; }
.dc-card p {
	color: var(--wp--preset--color--contrast-2);
	font-size: 14.5px;
	line-height: 1.6;
	margin-bottom: 0;
}

/* ====================================================================
   4. HERO PILL (titlu peste Cover)
   ==================================================================== */
.dc-hero-pill {
	background: rgba(255, 255, 255, 0.88);
	display: inline-block;
	padding: 14px 32px;
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
	letter-spacing: 0.3px;
	line-height: 1.2;
}

/* ====================================================================
   5. HEADER — sticky + layout
   ==================================================================== */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background-color: rgba(248, 237, 224, 0.92) !important;
}

/* ====================================================================
   6. NAVIGATION DESKTOP — hover underline pe meniul WP inline
   ==================================================================== */
.dc-header-right .wp-block-navigation .wp-block-navigation-item__content {
	position: relative;
	padding-bottom: 2px;
	transition: color 0.2s ease;
}
.dc-header-right .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--wp--preset--color--burgundy);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.25s ease;
}
.dc-header-right .wp-block-navigation .wp-block-navigation-item__content:hover::after,
.dc-header-right .wp-block-navigation .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* ====================================================================
   7. HAMBURGER BUTTON (custom, doar pe mobil)
   ==================================================================== */
.dc-burger {
	display: none;  /* default = ascuns; afisat doar pe mobil prin @media */
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 6px;
	padding: 6px 9px;
	cursor: pointer;
	color: var(--wp--preset--color--contrast);
	line-height: 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.dc-burger:hover {
	background-color: var(--wp--preset--color--rose-soft);
}
.dc-burger svg {
	width: 22px;
	height: 22px;
	stroke: currentColor;
}

/* ====================================================================
   8. SIDEBAR MOBIL CUSTOM (drawer din dreapta)
   Default: ascuns pe toate viewport-urile prin display:none.
   Afisat doar pe mobil (display:block prin @media).
   Deschis: clasa .is-open adaugata de JS.
   ==================================================================== */
.dc-sidebar,
.dc-sidebar-overlay {
	display: none;  /* default ascuns pe desktop */
}

/* Body blocheaza scroll cand sidebar deschis */
body.dc-sidebar-open {
	overflow: hidden;
}

/* ====================================================================
   9. MOBILE (<= 781px) — toggle layout responsive
   ==================================================================== */
@media (max-width: 781px) {

	/* --- Header compact --- */
	.dc-header {
		padding-top: 8px !important;
		padding-bottom: 8px !important;
	}
	.dc-header .wp-block-site-logo img {
		width: 44px !important;
		height: 44px !important;
	}
	.dc-header .wp-block-site-title {
		font-size: 14px !important;
		line-height: 1.1 !important;
	}
	.dc-header .wp-block-site-tagline {
		display: none !important;
	}

	/* --- Linie decorativa subtile sub nume (mobile only, ca pe live) --- */
	.dc-header .dc-header-name::after {
		content: "";
		display: block;
		width: 60px;
		height: 1px;
		background: var(--wp--preset--color--contrast);
		opacity: 0.3;
		margin-top: 4px;
	}

	/* --- ASCUND WP nav + buton CTA dark din header pe mobil --- */
	.dc-header-right {
		display: none !important;
	}

	/* --- AFISEZ hamburger pe mobil --- */
	.dc-burger {
		display: inline-flex;
	}

	/* --- AFISEZ sidebar + overlay (default hidden, deschise prin JS .is-open) --- */
	.dc-sidebar,
	.dc-sidebar-overlay {
		display: block;
	}

	/* --- Overlay fundal --- */
	.dc-sidebar-overlay {
		position: fixed;
		top: 0; bottom: 0; left: 0; right: 0;
		background: rgba(0, 0, 0, 0.45);
		z-index: 100000;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0s linear 0.3s;
	}
	.dc-sidebar-overlay.is-open {
		opacity: 1;
		visibility: visible;
		transition: opacity 0.3s ease, visibility 0s linear 0s;
	}

	/* --- Drawer din dreapta --- */
	.dc-sidebar {
		position: fixed;
		top: 0;
		bottom: 0;
		right: 0;
		width: min(86vw, 340px);
		max-width: 340px;
		background: var(--wp--preset--color--base);
		z-index: 100001;
		padding: 22px 22px 30px;
		box-shadow: -4px 0 28px rgba(0, 0, 0, 0.18);
		transform: translateX(100%);
		transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
		overflow-y: auto;
		visibility: hidden;
	}
	.dc-sidebar.is-open {
		transform: translateX(0);
		visibility: visible;
	}

	/* --- Header sidebar: titlu + X --- */
	.dc-sidebar-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-bottom: 18px;
		border-bottom: 1px solid var(--wp--preset--color--border);
		margin-bottom: 12px;
	}
	.dc-sidebar-title {
		font-family: var(--wp--preset--font-family--heading);
		font-size: 18px;
		font-weight: 700;
		color: var(--wp--preset--color--burgundy);
		letter-spacing: 0.3px;
	}
	.dc-sidebar-close {
		background: transparent;
		border: none;
		padding: 4px;
		cursor: pointer;
		color: var(--wp--preset--color--burgundy);
		line-height: 0;
		transition: color 0.2s ease, transform 0.2s ease;
	}
	.dc-sidebar-close:hover {
		color: var(--wp--preset--color--contrast);
		transform: scale(1.05);
	}
	.dc-sidebar-close svg {
		stroke: currentColor;
		width: 26px;
		height: 26px;
	}

	/* --- Lista linkuri verticala --- */
	.dc-sidebar-nav ul {
		list-style: none;
		padding: 0;
		margin: 0;
	}
	.dc-sidebar-nav li {
		border-bottom: 1px solid var(--wp--preset--color--border);
	}
	.dc-sidebar-nav li:last-child {
		border-bottom: none;
	}
	.dc-sidebar-nav a {
		display: block;
		padding: 14px 8px;
		font-family: var(--wp--preset--font-family--body);
		font-size: 16px;
		font-weight: 600;
		color: var(--wp--preset--color--contrast);
		text-decoration: none;
		transition: color 0.2s ease, padding-left 0.2s ease;
	}
	.dc-sidebar-nav a:hover {
		color: var(--wp--preset--color--burgundy);
		padding-left: 12px;
	}

	/* --- Card homepage padding redus pe mobil --- */
	.dc-card { padding: 20px 18px; }
	.dc-hero-pill {
		padding: 10px 20px;
		font-size: clamp(18px, 5vw, 26px);
	}
}

/* Sfarsit CSS */
