/**
 * استایل سیستم گالری رسانه MLM
 * نسخه 1.0.0
 * RTL Ready
 */

/* ========== FilePond سفارشی RTL ========== */
.filepond--root {
	direction: rtl;
	font-family: iranyekan, sans-serif;
}

.filepond--drop-label {
	font-family: iranyekan, sans-serif;
}

.filepond--label-action {
	text-decoration: none;
	color: #00b894;
	font-weight: 600;
}

.filepond--panel-root {
	border-radius: 12px;
	background-color: #f8f9fa;
	border: 2px dashed #dee2e6;
	transition: all 0.3s ease;
}

.filepond--panel-root:hover {
	border-color: #00b894;
	background-color: #e8f5e9;
}

.filepond--drip {
	background: rgba(0, 184, 148, 0.1);
}

/* ========== ویجت کوتا کاربر ========== */
.mlm-quota-widget {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 15px;
	padding: 20px;
	color: white;
	margin-bottom: 20px;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.mlm-quota-title {
	font-size: 14px;
	opacity: 0.9;
	margin-bottom: 10px;
}

.mlm-quota-bar {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	height: 12px;
	overflow: hidden;
	margin: 15px 0;
}

.mlm-quota-progress {
	height: 100%;
	background: linear-gradient(90deg, #00b894, #55efc4);
	transition: width 0.3s ease;
	border-radius: 10px;
}

.mlm-quota-info {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	opacity: 0.9;
}

/* ========== کارت‌های فایل ========== */
.mlm-file-card {
	background: white;
	border-radius: 12px;
	padding: 15px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	cursor: pointer;
}

.mlm-file-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mlm-file-thumbnail {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 10px;
}

.mlm-file-name {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mlm-file-meta {
	font-size: 12px;
	color: #6c757d;
	display: flex;
	justify-content: space-between;
}

.mlm-file-actions {
	margin-top: 10px;
	display: flex;
	gap: 5px;
}

.mlm-file-action-btn {
	flex: 1;
	padding: 6px 10px;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mlm-file-action-btn:hover {
	transform: scale(1.05);
}

.mlm-btn-preview {
	background: #3498db;
	color: white;
}

.mlm-btn-copy {
	background: #00b894;
	color: white;
}

.mlm-btn-delete {
	background: #e74c3c;
	color: white;
}

/* ========== Grid Layout ========== */
.mlm-files-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	padding: 20px 0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
	.mlm-files-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 15px;
	}
	
	.mlm-quota-widget {
		padding: 15px;
	}
}

/* ========== Modal پیش‌نمایش ========== */
.mlm-preview-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.mlm-preview-modal.active {
	display: flex;
}

.mlm-preview-content {
	max-width: 90%;
	max-height: 90%;
	position: relative;
}

.mlm-preview-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 20px;
	z-index: 10000;
}

/* ========== Animations ========== */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mlm-file-card {
	animation: fadeIn 0.3s ease;
}

