/* All PDF Template Styles */
.ap-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ap-header {
	text-align: center;
	margin-bottom: 30px;
}

.ap-header h1 {
	color: #333;
	font-size: 2.5rem;
	font-weight: 600;
	margin: 0;
}

.ap-controls {
	margin-bottom: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.ap-filters {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.ap-filters label {
	font-weight: 500;
	color: #555;
}

.ap-filters select {
	padding: 8px 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	min-width: 150px;
	background: white;
}

.ap-btn {
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ap-btn-outline {
	background: transparent;
	border: 2px solid #007cba;
	color: #007cba;
}

.ap-btn-outline:hover {
	background: #007cba;
	color: white;
}

.ap-no-categories {
	color: #666;
	font-style: italic;
	margin: 0;
	padding: 10px;
	text-align: center;
}

.ap-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 25px;
	margin-top: 20px;
}

.ap-pdf-card {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	transition: all 0.3s ease;
	position: relative;
	cursor: pointer;
}

.ap-pdf-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ap-pdf-card:hover::after {
	content: 'Click to open PDF';
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 12px;
	z-index: 10;
}

.ap-pdf-wrapper {
	position: relative;
}

.ap-pdf-preview {
	background: linear-gradient(135deg, #ff6b6b, #ee5a24);
	height: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
	text-align: center;
	padding: 20px;
}

.ap-pdf-preview .dashicons-pdf {
	font-size: 4rem;
	margin-bottom: 15px;
}

.ap-pdf-preview .ap-pdf-title {
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.4;
}

.ap-pdf-info {
	padding: 20px;
}

.ap-pdf-info .ap-pdf-title {
	margin: 0 0 10px 0;
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
	line-height: 1.3;
}

.ap-pdf-description {
	color: #666;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 15px 0;
}

.ap-pdf-category {
	display: inline-block;
	background: #e3f2fd;
	color: #1976d2;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
}

.ap-pdf-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.ap-pdf-card:hover .ap-pdf-overlay {
	opacity: 1;
}

.ap-overlay-btn {
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.ap-overlay-btn:hover {
	background: white;
	transform: scale(1.1);
}

.ap-overlay-btn .dashicons {
	font-size: 20px;
	color: #333;
}

.ap-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #666;
}

.ap-empty-state .dashicons {
	font-size: 4rem;
	color: #ddd;
	margin-bottom: 20px;
}

.ap-empty-state h3 {
	margin: 0 0 10px 0;
	font-size: 1.5rem;
	color: #999;
}

.ap-empty-state p {
	margin: 0;
	font-size: 1rem;
}

/* Modal Styles */
.ap-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ap-modal-content {
	background: white;
	border-radius: 12px;
	position: relative;
	z-index: 10000;
	max-width: 90%;
	max-height: 90%;
	overflow: hidden;
}

.ap-modal-large {
	width: 800px;
	height: 600px;
}

.ap-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: rgba(0, 0, 0, 0.5);
	color: white;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	font-size: 24px;
	cursor: pointer;
	z-index: 10001;
	transition: background 0.3s ease;
}

.ap-modal-close:hover {
	background: rgba(0, 0, 0, 0.7);
}

.ap-view-body {
	padding: 20px;
	height: 100%;
}

.ap-pdf-viewer {
	height: 100%;
}

.ap-pdf-iframe {
	border: none;
	border-radius: 8px;
}

.ap-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
	.ap-container {
		padding: 15px;
	}
	
	.ap-header h1 {
		font-size: 2rem;
	}
	
	.ap-controls {
		flex-direction: column;
		gap: 15px;
	}
	
	.ap-filters {
		flex-direction: column;
		align-items: stretch;
	}
	
	.ap-gallery {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.ap-modal-large {
		width: 95%;
		height: 80%;
	}
}

@media (max-width: 480px) {
	.ap-header h1 {
		font-size: 1.8rem;
	}
	
	.ap-pdf-info {
		padding: 15px;
	}
	
	.ap-pdf-preview {
		height: 150px;
	}
}
