/*
Theme Name: Movies Download Domain Theme
Theme URI: https://afternews9.com
Author: AHMAD RAZA
Author URI: https://afternews9.com
Description: Lightweight, high-conversion secondary domain download portal theme featuring secure access code verification, countdown handshake timers, responsive card grids, and advanced multi-slot ad manager settings.
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: movies-download-theme
Tags: dark, custom-colors, responsive-layout, custom-background, custom-menu, theme-options
*/

:root {
	--bg-main: #06040a;
	--bg-card: #0f071c;
	--accent-pink: #e11d48;
	--accent-purple: #9333ea;
	--accent-green: #10b981;
	--text-main: #f8fafc;
	--text-muted: #9ca3af;
	--font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-main);
	color: var(--text-main);
	font-family: var(--font-family);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

a {
	color: inherit;
	text-decoration: none;
}

.container {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Site Header */
.dl-site-header {
	background: rgba(15, 7, 28, 0.95);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding: 15px 0;
}

.dl-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.dl-site-logo {
	font-size: 22px;
	font-weight: 900;
	background: linear-gradient(135deg, #ff4fb2, #00b4db);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Main Container */
.dl-main-content {
	flex: 1;
	padding: 40px 0;
}

.dl-card {
	background: var(--bg-card);
	border: 1px solid rgba(147, 51, 234, 0.3);
	border-radius: 12px;
	padding: 30px 24px;
	margin-bottom: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dl-movie-title {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 15px;
	text-align: center;
	color: #ffffff;
}

/* Code Generator Box */
.dl-code-gen-box {
	background: rgba(0, 0, 0, 0.4);
	border: 1px dashed rgba(16, 185, 129, 0.5);
	border-radius: 10px;
	padding: 25px;
	text-align: center;
	margin: 25px 0;
}

.btn-generate-code {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background: linear-gradient(135deg, #10b981, #059669);
	color: #ffffff;
	font-size: 15px;
	font-weight: 800;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-generate-code:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.dl-code-display-wrap {
	display: none;
	margin-top: 20px;
	padding: 20px;
	background: rgba(147, 51, 234, 0.15);
	border: 1px solid #9333ea;
	border-radius: 8px;
}

.dl-code-badge {
	font-size: 28px;
	font-weight: 900;
	letter-spacing: 4px;
	color: #cbfc01;
	background: #000000;
	padding: 10px 24px;
	border-radius: 6px;
	display: inline-block;
	margin: 10px 0;
	user-select: all;
}

/* Download Table */
.dl-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.dl-table th,
.dl-table td {
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: left;
	font-size: 14px;
}

.dl-table th {
	background: rgba(147, 51, 234, 0.2);
	color: #ffffff;
	font-weight: 800;
}

.btn-dl-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: linear-gradient(135deg, #e11d48, #9333ea);
	color: #ffffff;
	font-weight: 700;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	transition: all 0.25s;
}

.btn-dl-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(225, 29, 72, 0.5);
}

/* Footer */
.dl-site-footer {
	background: rgba(10, 5, 20, 0.98);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0;
	text-align: center;
	font-size: 13px;
	color: var(--text-muted);
}

/* Responsive media queries */
@media (max-width: 768px) {
	.dl-main-content {
		padding: 20px 0;
	}
	.dl-card {
		padding: 20px 15px;
		margin-bottom: 20px;
	}
	.dl-movie-title {
		font-size: 19px;
	}
	.dl-code-gen-box {
		padding: 15px 10px;
	}
	#dlSiteCodeInput {
		width: 100% !important;
	}
	.dl-code-gen-box div[style*="display: flex"] {
		flex-direction: column !important;
		gap: 12px !important;
	}
	.dl-table,
	.dl-table thead,
	.dl-table tbody,
	.dl-table th,
	.dl-table td,
	.dl-table tr {
		display: block !important;
		width: 100% !important;
	}
	.dl-table thead {
		display: none !important;
	}
	.dl-table tr {
		margin-bottom: 12px !important;
		border: 1px solid rgba(255, 255, 255, 0.1) !important;
		border-radius: 8px !important;
		background: rgba(255, 255, 255, 0.02) !important;
		padding: 10px !important;
	}
	.dl-table td {
		border: none !important;
		padding: 8px 10px !important;
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		font-size: 13px !important;
		text-align: right !important;
	}
	.dl-table td::before {
		content: attr(data-label) !important;
		float: left !important;
		font-weight: 800 !important;
		color: var(--text-muted) !important;
		text-transform: uppercase !important;
	}
	.btn-dl-link {
		width: auto !important;
		display: inline-flex !important;
	}
	.dl-sidebar-ad {
		display: none !important;
	}
}

/* Layout Page flex grid & Sidebar positions */
.dl-page-layout-wrapper {
	display: flex;
	gap: 20px;
	justify-content: center;
	align-items: flex-start;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 15px;
	width: 100%;
}

.dl-sidebar-ad {
	flex: 0 0 160px;
	position: sticky;
	top: 20px;
	display: block;
	max-width: 160px;
	min-height: 600px;
}

.dl-main-card-column {
	flex: 0 1 1000px;
	width: 100%;
	margin: 0 auto;
}

/* Unified Ad wraps and responsive forced max-width scale */
.dl-ad-wrapper {
	text-align: center;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	max-width: 100%;
	margin: 15px auto;
}

.dl-ad-wrapper.top-ad-wrapper {
	margin-top: 20px;
}

.dl-ad-wrapper.footer-ad-wrapper {
	margin-bottom: 20px;
}

.dl-ad-wrapper iframe,
.dl-ad-wrapper ins,
.dl-ad-wrapper embed,
.dl-ad-wrapper object,
.dl-sidebar-ad iframe,
.dl-sidebar-ad ins,
.dl-sidebar-ad embed,
.dl-sidebar-ad object,
.interstitial-ad-body iframe,
.interstitial-ad-body ins {
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Fix spacing & wrap sidebars on smaller tablets */
@media (max-width: 1200px) {
	.dl-sidebar-ad {
		display: none !important;
	}
	.dl-main-card-column {
		max-width: 100% !important;
		width: 100% !important;
	}
}

@media (max-width: 768px) {
	.dl-page-layout-wrapper {
		flex-direction: column !important;
		padding: 0 10px !important;
	}
	.dl-card {
		padding: 20px 12px !important;
		border-radius: 8px !important;
	}
	.dl-movie-title {
		font-size: 20px !important;
		line-height: 1.3 !important;
	}
	.dl-ad-wrapper {
		margin: 10px auto !important;
	}
}
