/* =================================================================
   Page Carousel Block — Frontend Styles (Raw Content Mode)
   ================================================================= */

:root {
	--pcb-transition: 0.55s cubic-bezier(0.65, 0, 0.35, 1);
	--pcb-slide-height: auto;
	--pcb-nav-size: 52px;
}

/* -----------------------------------------------------------------
   Wrapper
   ----------------------------------------------------------------- */
.pcb-carousel-wrapper {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	outline: none;
}

/* WP Alignment support */
.pcb-carousel-wrapper.alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: none;
}

.pcb-carousel-wrapper.alignwide {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto;
	margin-right: auto;
}

/* -----------------------------------------------------------------
   Track
   ----------------------------------------------------------------- */
.pcb-track-container {
	position: relative;
	width: 100%;
}

.pcb-track {
	position: relative;
	width: 100%;
	display: grid;
	grid-template-areas: "slide";
}

/* -----------------------------------------------------------------
   Slides
   ----------------------------------------------------------------- */
.pcb-slide {
	grid-area: slide;
	width: 100%;
	position: relative;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--pcb-transition);
	z-index: 1;
}

.pcb-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
}

/* -----------------------------------------------------------------
   Admin Tools
   ----------------------------------------------------------------- */
.pcb-slide-admin-tools {
	position: absolute;
	top: 20px;
	right: 20px;
	display: flex;
	gap: 8px;
	z-index: 100;
}

.pcb-admin-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.9);
	color: #1e1e1e;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	transition: all 0.2s;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	text-decoration: none !important;
}

.pcb-admin-btn:hover {
	background: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.pcb-admin-btn--trash:hover {
	color: #cc1818;
	border-color: #cc1818;
}

.pcb-admin-btn svg {
	width: 18px;
	height: 18px;
}

/* -----------------------------------------------------------------
   Slide Content (Raw)
   ----------------------------------------------------------------- */
.pcb-slide-content-full {
	width: 100%;
	margin: 0;
	padding: 0;
}

/* -----------------------------------------------------------------
   Navigation Arrows
   ----------------------------------------------------------------- */
.pcb-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: var(--pcb-nav-size);
	height: var(--pcb-nav-size);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.8);
	color: #000;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease, transform 0.2s ease;
}

.pcb-nav:hover {
	background: #fff;
	transform: translateY(-50%) scale(1.05);
}

.pcb-nav--prev { left: 20px; }
.pcb-nav--next { right: 20px; }

.pcb-nav svg {
	width: 20px;
	height: 20px;
}

/* -----------------------------------------------------------------
   Dot Indicators
   ----------------------------------------------------------------- */
.pcb-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 8px;
	align-items: center;
}

.pcb-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: rgba(255, 255, 255, 0.5);
	cursor: pointer;
	padding: 0;
	transition: all 0.3s ease;
}

.pcb-dot.is-active {
	background: #000;
	width: 20px;
	border-radius: 4px;
	border-color: #000;
}

/* -----------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------- */
@media (max-width: 640px) {
	.pcb-nav { display: none; }
}
