/**
 * PDF Flipbook Styles
 */

.pdf-flipbook-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 20px;
	background: #f5f5f5;
	border-radius: 8px;
}

.pdf-flipbook-container {
	display: flex;
	justify-content: center;
	width: 100%;
}

.pdf-flipbook {
	position: relative;
	min-height: 400px;
}

.pdf-flipbook__loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 16px;
	color: #666;
}

/* Page styles */
.flipbook-page {
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.flipbook-page__canvas {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Controls */
.pdf-flipbook-controls {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 10px 20px;
	background: #fff;
	border-radius: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.flipbook-control {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	background: transparent;
	color: #333;
	cursor: pointer;
	border-radius: 50%;
	transition: background-color 0.2s, color 0.2s;
}

.flipbook-control:hover {
	background: #f0f0f0;
	color: #eb1d00;
}

.flipbook-control:active {
	background: #e0e0e0;
}

.flipbook-control svg {
	width: 20px;
	height: 20px;
}

/* Page info */
.flipbook-page-info {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	color: #666;
	min-width: 60px;
	justify-content: center;
}

.flipbook-current-page,
.flipbook-total-pages {
	font-weight: 600;
	color: #333;
}

.flipbook-separator {
	color: #999;
}

/* Fullscreen styles */
.pdf-flipbook-wrapper.is-fullscreen {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	padding: 40px;
	background: rgba(0, 0, 0, 0.95);
	border-radius: 0;
}

.pdf-flipbook-wrapper.is-fullscreen .pdf-flipbook-container {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pdf-flipbook-wrapper.is-fullscreen .pdf-flipbook-controls {
	position: fixed;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
}

.pdf-flipbook-wrapper.is-fullscreen .flipbook-fullscreen svg {
	/* Change to exit fullscreen icon style */
	transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 768px) {
	.pdf-flipbook-wrapper {
		padding: 10px;
	}

	.pdf-flipbook {
		min-height: 300px;
	}

	.pdf-flipbook-controls {
		gap: 10px;
		padding: 8px 15px;
	}

	.flipbook-control {
		width: 36px;
		height: 36px;
	}

	.flipbook-control svg {
		width: 18px;
		height: 18px;
	}

	.flipbook-page-info {
		font-size: 13px;
	}
}

/* Page flip library overrides */
.stf__parent {
	margin: 0 auto;
}

.stf__wrapper {
	perspective: 2000px !important;
}

/* Shadow effects */
.stf__page {
	background: #fff;
}

.stf__page--hard {
	background: #fafafa;
}
