﻿/* modern-media-gallery.css */
.modern-media-gallery {
	background: white;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	margin-bottom: 20px;
}

.gallery-header {
	background: #1e293b;
	padding: 12px 16px;
	color: white;
	border-radius: 16px 16px 0 0;
}

	.gallery-header h5 {
		margin: 0;
		font-size: 1rem;
	}

.upload-dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	cursor: pointer;
	margin: 16px;
	background: #f8fafc;
	transition: all 0.2s;
}

	.upload-dropzone.dragover {
		border-color: #fbbf24;
		background: #fffbeb;
	}

.upload-icon {
	font-size: 40px;
	color: #fbbf24;
	margin-bottom: 8px;
}

.upload-text {
	font-weight: 500;
	color: #1e293b;
}

.upload-hint {
	font-size: 0.7rem;
	color: #64748b;
	margin-top: 4px;
}

.media-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px;
	min-height: 150px;
	border-top: 1px solid #e2e8f0;
}

.media-card {
	width: 120px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: white;
	transition: all 0.2s;
}

	.media-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	}

.media-preview {
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8fafc;
	position: relative;
}

	.media-preview img {
		max-width: 100%;
		max-height: 100%;
		object-fit: cover;
	}

.media-type-badge {
	position: absolute;
	bottom: 4px;
	right: 4px;
	background: rgba(0,0,0,0.6);
	color: white;
	border-radius: 20px;
	padding: 2px 6px;
	font-size: 0.6rem;
}

.media-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 10px;
	background: #f1f5f9;
	border-top: 1px solid #e2e8f0;
}

.media-index {
	background: #1e293b;
	color: white;
	border-radius: 20px;
	padding: 2px 8px;
	font-size: 0.7rem;
}

.btn-media-delete {
	background: none;
	border: none;
	color: #ef4444;
	cursor: pointer;
	font-size: 0.7rem;
}

	.btn-media-delete:hover {
		color: #dc2626;
	}

.empty-media {
	width: 100%;
	text-align: center;
	padding: 40px;
	color: #94a3b8;
}

	.empty-media i {
		font-size: 48px;
		margin-bottom: 12px;
	}

.upload-loader {
	margin-top: 12px;
	color: #fbbf24;
}
