/* ShowImage Page Styles */
.si-container {
	width: 100%;
	margin: 0;
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}



/* Header */
.si-header {
	text-align: left;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e5e7eb;
}

.si-header h1 {
	font-size: 1.8rem;
	color: #1f2937;
	margin: 0;
	font-weight: 600;
	letter-spacing: -0.025em;
}

/* Controls */
.si-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 25px;
	flex-wrap: wrap;
	gap: 15px;
}



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

.si-filters label {
	font-weight: 600;
	color: #374151;
	font-size: 0.9rem;
}

.si-filters select {
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: white;
	font-size: 0.9rem;
	min-width: 120px;
}

.si-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Buttons */
.si-btn {
	padding: 10px 16px;
	border: none;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	text-decoration: none;
}

.si-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.si-btn-primary {
	background: #3b82f6;
	color: white;
}

.si-btn-primary:hover {
	background: #2563eb;
}

.si-btn-secondary {
	background: #6b7280;
	color: white;
}

.si-btn-secondary:hover {
	background: #4b5563;
}

.si-btn-outline {
	background: transparent;
	color: #6b7280;
	border: 1px solid #d1d5db;
}

.si-btn-outline:hover {
	background: #f9fafb;
	color: #374151;
}

.si-btn-danger {
	background: #ef4444;
	color: white;
}

.si-btn-danger:hover {
	background: #dc2626;
}



/* Gallery */
.si-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}

.si-image-card {
	background: white;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border: 1px solid #e5e7eb;
}

.si-image-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.si-image-wrapper {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16/9;
}

.si-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.si-image-card:hover .si-image {
	transform: scale(1.05);
}

.si-image-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: 10px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.si-image-card:hover .si-image-overlay {
	opacity: 1;
}

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

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

.si-overlay-btn .dashicons {
	font-size: 18px;
	color: #374151;
}



/* Media Type Previews */
.si-pdf-preview,
.si-youtube-preview,
.si-no-image {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: #f8fafc;
	border: 2px dashed #d1d5db;
	color: #6b7280;
	font-size: 0.9rem;
	font-weight: 500;
}

.si-pdf-preview .dashicons,
.si-youtube-preview .dashicons {
	font-size: 3rem;
	margin-bottom: 10px;
	color: #ef4444;
}

.si-youtube-preview .dashicons {
	color: #dc2626;
}

.si-no-image {
	color: #9ca3af;
	font-style: italic;
}

/* Empty State */
.si-empty-state {
	text-align: center;
	padding: 60px 20px;
	grid-column: 1 / -1;
}

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

.si-empty-state h3 {
	margin: 0 0 10px 0;
	color: #6b7280;
	font-weight: 600;
}

.si-empty-state p {
	margin: 0;
	color: #9ca3af;
}

/* Modals */
.si-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.si-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.si-modal-content {
	background: white;
	border-radius: 12px;
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
	position: relative;
	z-index: 1001;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.si-modal-large {
	width: 90vw;
	max-width: 1200px;
}

.si-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #6b7280;
	z-index: 1002;
}

.si-modal-close:hover {
	color: #374151;
}

.si-view-body {
	padding: 30px;
}

/* Full Image View */
.si-full-image-container {
	text-align: center;
	margin-bottom: 20px;
}

.si-full-image {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}









@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}



/* Modal open state */
body.si-modal-open {
	overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
	.si-container {
		padding: 15px;
	}
	
	.si-header h1 {
		font-size: 1.5rem;
	}
	
	.si-controls {
		flex-direction: column;
		align-items: stretch;
	}
	
	.si-filters {
		justify-content: center;
	}
	
	.si-actions {
		justify-content: center;
	}
	
	.si-gallery {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
		gap: 15px;
	}
	
	.si-modal-content {
		margin: 20px;
		max-width: calc(100vw - 40px);
	}
	
	.si-view-body {
		padding: 20px;
	}
	
	.si-full-image-actions {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.si-gallery {
		grid-template-columns: 1fr;
	}
	
	.si-filters {
		flex-direction: column;
		align-items: stretch;
	}
	
	.si-filters select {
		min-width: auto;
	}
}
