/**
 * DLE Engine Styles - Lord Films 2025
 * System notifications, dialogs, and admin elements
 */

/* ========================================
   CSS Variables (inherited from styles.css)
======================================== */
:root {
	--primary: #8b5cf6;
	--primary-dark: #7c3aed;
	--accent: #ec4899;
	--bg-dark: #0a0a0f;
	--bg-card: rgba(15, 15, 25, 0.85);
	--bg-card-solid: #12121a;
	--text-primary: #ffffff;
	--text-secondary: rgba(255, 255, 255, 0.7);
	--text-muted: rgba(255, 255, 255, 0.5);
	--border-color: rgba(255, 255, 255, 0.1);
	--success: #22c55e;
	--error: #ef4444;
	--warning: #f59e0b;
	--info: #3b82f6;
	--radius-md: 12px;
	--radius-lg: 20px;
}

/* ========================================
   DLEPush Notifications
======================================== */
.DLEPush {
	position: fixed;
	z-index: 99999;
}

.DLEPush.top-right {
	top: 90px;
	right: 20px;
}

.DLEPush-notification.wrapper {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	background: var(--bg-card-solid);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-md);
	padding: 18px 50px 18px 18px;
	margin-bottom: 12px;
	min-width: 320px;
	max-width: 420px;
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
	from { 
		transform: translateX(100%); 
		opacity: 0; 
	}
	to { 
		transform: translateX(0); 
		opacity: 1; 
	}
}

.DLEPush-notification.push-error {
	border-color: var(--error);
	border-left-width: 3px;
}

.DLEPush-notification.push-error .DLEPush-icon {
	color: var(--error);
}

.DLEPush-notification.push-success {
	border-color: var(--success);
	border-left-width: 3px;
}

.DLEPush-notification.push-success .DLEPush-icon {
	color: var(--success);
}

.DLEPush-notification.push-info {
	border-color: var(--info);
	border-left-width: 3px;
}

.DLEPush-notification.push-info .DLEPush-icon {
	color: var(--info);
}

.DLEPush-notification.push-warning {
	border-color: var(--warning);
	border-left-width: 3px;
}

.DLEPush-notification.push-warning .DLEPush-icon {
	color: var(--warning);
}

.DLEPush-icon {
	flex-shrink: 0;
	color: var(--warning);
}

.DLEPush-icon svg {
	width: 26px;
	height: 26px;
}

.DLEPush-header {
	font-weight: 600;
	font-size: 15px;
	color: var(--text-primary);
	margin-bottom: 6px;
}

.DLEPush-header:empty {
	display: none;
}

.DLEPush-message {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.6;
}

.DLEPush-close,
.DLEPush-notification .DLEPush-close,
button.DLEPush-close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	transform: none !important;
	background: transparent !important;
	border: none !important;
	color: var(--text-muted) !important;
	font-size: 22px !important;
	font-weight: 300 !important;
	cursor: pointer !important;
	padding: 0 !important;
	line-height: 1 !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	box-shadow: none !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease !important;
}

.DLEPush-close:hover,
.DLEPush-notification .DLEPush-close:hover,
button.DLEPush-close:hover {
	color: var(--text-primary) !important;
	background: rgba(255, 255, 255, 0.1) !important;
}

/* ========================================
   Loading Overlay
======================================== */
#loading-layer {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

#loading-layer .loading-inner {
	background: var(--bg-card-solid);
	padding: 30px 50px;
	border-radius: var(--radius-lg);
	text-align: center;
	border: 1px solid var(--border-color);
}

#loading-layer .fa-spinner {
	font-size: 36px;
	color: var(--primary);
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* ========================================
   Dialog Boxes
======================================== */
.ui-widget-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 10000;
}

.ui-dialog {
	position: fixed !important;
	background: var(--bg-card-solid);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
	z-index: 10001;
	max-width: 90vw;
	overflow: hidden;
}

.ui-dialog-titlebar {
	background: rgba(255, 255, 255, 0.05);
	padding: 18px 24px;
	border-bottom: 1px solid var(--border-color);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.ui-dialog-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--text-primary);
}

.ui-dialog-titlebar-close {
	background: transparent !important;
	border: none !important;
	color: var(--text-muted) !important;
	font-size: 20px;
	cursor: pointer;
	padding: 5px !important;
	margin: 0 !important;
	box-shadow: none !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.ui-dialog-titlebar-close:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	color: var(--text-primary) !important;
}

.ui-dialog-content {
	padding: 24px;
	color: var(--text-secondary);
	font-size: 14px;
	line-height: 1.7;
	max-height: 60vh;
	overflow-y: auto;
}

.ui-dialog-buttonpane {
	padding: 16px 24px;
	background: rgba(255, 255, 255, 0.03);
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

.ui-dialog-buttonset button {
	margin: 0 !important;
}

/* ========================================
   Froala Editor Overrides
======================================== */
.fr-box {
	background: var(--bg-card) !important;
	border-radius: var(--radius-md) !important;
	border: 1px solid var(--border-color) !important;
	overflow: hidden;
}

.fr-toolbar {
	background: rgba(255, 255, 255, 0.05) !important;
	border: none !important;
	border-bottom: 1px solid var(--border-color) !important;
	padding: 8px !important;
}

.fr-wrapper {
	background: transparent !important;
}

.fr-element {
	background: transparent !important;
	color: var(--text-primary) !important;
	min-height: 120px !important;
	padding: 16px !important;
}

.fr-element::placeholder {
	color: var(--text-muted) !important;
}

.fr-btn-grp {
	margin: 0 6px !important;
}

.fr-btn {
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid var(--border-color) !important;
	border-radius: 6px !important;
	color: var(--text-secondary) !important;
	margin: 2px !important;
	transition: all 0.2s ease !important;
}

.fr-btn:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	color: var(--text-primary) !important;
}

.fr-btn.fr-active {
	background: var(--primary) !important;
	border-color: var(--primary) !important;
	color: #fff !important;
}

/* ========================================
   Search Suggestions
======================================== */
#searchsuggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--bg-card-solid);
	border: 1px solid var(--border-color);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
	z-index: 1000;
	max-height: 400px;
	overflow-y: auto;
}

#searchsuggestions a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	color: var(--text-secondary);
	border-bottom: 1px solid var(--border-color);
	transition: all 0.2s ease;
}

#searchsuggestions a:hover {
	background: rgba(139, 92, 246, 0.1);
	color: var(--text-primary);
}

#searchsuggestions a:last-child {
	border-bottom: none;
}

#searchsuggestions img {
	width: 45px;
	height: 65px;
	object-fit: cover;
	border-radius: 6px;
	flex-shrink: 0;
}

#searchsuggestions .searchheading {
	flex: 1;
}

#searchsuggestions .searchheading span {
	display: block;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 4px;
}

#searchsuggestions .searchheading small {
	color: var(--text-muted);
	font-size: 12px;
}

/* ========================================
   Complaint Form
======================================== */
.complaint-box {
	background: var(--bg-card-solid);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 24px;
}

.complaint-box label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: var(--text-primary);
}

.complaint-box textarea {
	width: 100%;
	min-height: 120px;
}

.complaint-box button {
	margin-top: 16px;
}

/* ========================================
   Form Elements Override
======================================== */
.form-item {
	margin-bottom: 20px;
}

.form-item label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 14px;
	color: var(--text-primary);
}

.form-secur {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.form-secur input {
	flex: 1;
	min-width: 200px;
}

.form-secur img {
	border-radius: 6px;
}

/* ========================================
   Tags & Categories
======================================== */
.full-taglist {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--border-color);
}

.full-taglist .fa {
	color: var(--primary);
	margin-right: 10px;
}

.full-taglist a {
	color: var(--primary);
	transition: opacity 0.2s ease;
}

.full-taglist a:hover {
	opacity: 0.8;
}

/* ========================================
   Attachments
======================================== */
.attach {
	background: rgba(255, 255, 255, 0.05);
	border-radius: var(--radius-md);
	padding: 16px;
	margin: 16px 0;
	display: flex;
	align-items: center;
	gap: 16px;
}

.attach-info {
	flex: 1;
	font-size: 13px;
	color: var(--text-muted);
}

.attach .download-link {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.attach .download-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

/* ========================================
   User Profile Popup
======================================== */
.upop {
	background: var(--bg-card-solid);
	border: 1px solid var(--border-color);
	border-radius: var(--radius-lg);
	padding: 24px;
	color: var(--text-primary);
}

.upop-left {
	text-align: center;
	margin-bottom: 20px;
}

.upop-left img {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--primary);
}

.upop-name {
	font-size: 18px;
	font-weight: 700;
	margin-top: 12px;
}

.upop-right {
	font-size: 14px;
	line-height: 1.8;
}

.upop-right strong {
	color: var(--text-primary);
}

/* ========================================
   Info Messages
======================================== */
.info {
	background: rgba(59, 130, 246, 0.1);
	border: 1px solid rgba(59, 130, 246, 0.3);
	border-radius: var(--radius-md);
	padding: 20px;
	margin: 20px 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--text-secondary);
}

.info h1, .info h2, .info h3 {
	color: var(--info);
	margin-bottom: 10px;
	font-size: 18px;
}

.info a {
	color: var(--info);
}

/* Error messages */
.berror, .error-box {
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.3);
	border-radius: var(--radius-md);
	padding: 20px;
	margin: 20px 0;
	font-size: 14px;
	color: var(--error);
}

/* Success messages */
.success-box {
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.3);
	border-radius: var(--radius-md);
	padding: 20px;
	margin: 20px 0;
	font-size: 14px;
	color: var(--success);
}

/* ========================================
   Scrollbar Styling
======================================== */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.15) rgba(255, 255, 255, 0.05);
}

/* ========================================
   Mobile Responsive Fixes
======================================== */
@media screen and (max-width: 768px) {
	.DLEPush.top-right {
		top: auto;
		bottom: 20px;
		right: 10px;
		left: 10px;
	}
	
	.DLEPush-notification.wrapper {
		min-width: 0;
		max-width: 100%;
	}
	
	.ui-dialog {
		left: 10px !important;
		right: 10px !important;
		width: auto !important;
	}
	
	.ui-dialog-content {
		max-height: 50vh;
	}
}

/* ========================================
   Selection Styling
======================================== */
::selection {
	background: var(--primary);
	color: #fff;
}

::-moz-selection {
	background: var(--primary);
	color: #fff;
}

/* ========================================
   Ignore Select (for video pages)
======================================== */
.ignore-select {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.ignore-select .fdesc,
.ignore-select .flist,
.ignore-select .comm-two,
.ignore-select .full-text {
	user-select: text;
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
}

/* ========================================
   BB Editor Buttons
======================================== */
.bb-editor {
	position: relative;
}

.bb-pnl {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
	border: 1px solid var(--border-color);
	border-bottom: none;
}

.bb-pnl button {
	width: 32px;
	height: 32px;
	min-width: 32px;
	padding: 0 !important;
	background: rgba(255, 255, 255, 0.08) !important;
	border: 1px solid var(--border-color) !important;
	border-radius: 6px !important;
	color: var(--text-secondary) !important;
	font-size: 14px !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}

.bb-pnl button:hover {
	background: var(--primary) !important;
	border-color: var(--primary) !important;
	color: #fff !important;
}

.bb-editor textarea {
	border-radius: 0 0 var(--radius-md) var(--radius-md) !important;
}
