/* ===== المتغيرات والتنسيقات العامة ===== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Cairo', sans-serif;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	transition: background-color 0.3s, color 0.3s;
	background-color: var(--bg-color, #f0f2f5);
	color: var(--text-color, #2c3e50);
}

/* الثيمات */
body[data-theme="default"] {
	--primary-color: #2c3e50;
	--accent-color: #e67e22;
	--border-color: #f39c12;
	--bg-color: #f0f2f5;
	--text-color: #2c3e50;
	--light-bg: #ffffff;
	--hover-bg: #fef5e7;
}
body[data-theme="blue"] {
	--primary-color: #1e3c72;
	--accent-color: #3498db;
	--border-color: #2980b9;
	--bg-color: #e6f0fa;
	--text-color: #1e3c72;
	--light-bg: #ffffff;
	--hover-bg: #e6f7ff;
}
body[data-theme="green"] {
	--primary-color: #1d4e3d;
	--accent-color: #2ecc71;
	--border-color: #27ae60;
	--bg-color: #e8f5e9;
	--text-color: #1d4e3d;
	--light-bg: #ffffff;
	--hover-bg: #e8f8f0;
}
body[data-theme="purple"] {
	--primary-color: #4a235a;
	--accent-color: #9b59b6;
	--border-color: #8e44ad;
	--bg-color: #f3e5f5;
	--text-color: #4a235a;
	--light-bg: #ffffff;
	--hover-bg: #f3e6ff;
}

/* ===== أيقونة الفرشاة (في منتصف اليسار) ===== */
.theme-toggle {
	position: fixed;
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
	background: var(--light-bg, white);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	cursor: pointer;
	z-index: 100;
	border: 2px solid var(--accent-color, #e67e22);
	transition: transform 0.3s;
}

.theme-toggle i {
	font-size: 1.8rem;
	color: var(--accent-color, #e67e22);
}

.theme-toggle:hover {
	transform: translateY(-50%) rotate(30deg) scale(1.1);
}

/* ===== أيقونة المنصة الترفيهية (أسفل الفرشاة) ===== */
.media-toggle {
	position: fixed;
	top: calc(50% + 70px);
	left: 20px;
	transform: translateY(-50%);
	background: var(--light-bg, white);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	cursor: pointer;
	z-index: 100;
	border: 2px solid var(--accent-color, #e67e22);
	transition: transform 0.3s;
}

.media-toggle i {
	font-size: 1.8rem;
	color: var(--accent-color, #e67e22);
}

.media-toggle:hover {
	transform: translateY(-50%) scale(1.1);
}

/* قائمة الثيمات */
.theme-menu {
	position: fixed;
	top: 50%;
	left: 80px;
	transform: translateY(-50%);
	background: var(--light-bg, white);
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	padding: 10px;
	display: none;
	z-index: 99;
	border: 1px solid #ddd;
}

.theme-menu.show {
	display: block;
}

.theme-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 15px;
	cursor: pointer;
	border-radius: 8px;
	transition: background 0.2s;
	color: var(--text-color, #2c3e50);
}

.theme-option:hover {
	background-color: #eee;
}

.theme-option i {
	font-size: 1.2rem;
	width: 20px;
	color: var(--accent-color, #e67e22);
}

/* ===== الشريط المتحرك ===== */
.marquee {
	background-color: var(--primary-color, #2c3e50);
	color: white;
	padding: 6px 0;
	width: 100%;
	overflow: hidden;
	white-space: nowrap;
	border-bottom: 2px solid var(--border-color, #f39c12);
	font-size: 0.9rem;
	font-weight: bold;
}

.marquee-content {
	display: inline-block;
	animation: moveLeftToRight 15s linear infinite;
}

.marquee-content span {
	margin: 0 15px;
	color: var(--accent-color, #f1c40f);
}

@keyframes moveLeftToRight {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(100%); }
}

/* ===== قسم الأزرار ===== */
.buttons-section {
	padding: 25px 10px 10px;
	display: flex;
	justify-content: center;
}

.buttons-row {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
}

.mini-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 80px;
	background-color: var(--light-bg, white);
	border-radius: 12px;
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
	text-decoration: none;
	color: var(--text-color, #2c3e50);
	transition: transform 0.2s, box-shadow 0.2s;
	border: 1px solid #ddd;
	font-size: 0.7rem;
	text-align: center;
	padding: 5px;
	cursor: pointer;
}

.mini-box i {
	font-size: 1.8rem;
	margin-bottom: 5px;
	color: var(--accent-color, #e67e22);
}

.mini-box:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0,0,0,0.15);
	background-color: var(--hover-bg, #fef5e7);
}

.mini-box span {
	font-size: 0.6rem;
	font-weight: 600;
	line-height: 1.2;
}

/* ===== النوافذ المنبثقة (مودال) ===== */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
	align-items: center;
	justify-content: center;
}

.modal-content {
	background-color: var(--light-bg, white);
	padding: 25px 30px;
	border-radius: 20px;
	width: 90%;
	max-width: 400px;
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
	position: relative;
	text-align: center;
}

.modal-large {
	max-width: 560px;
}

.modal-content h2 {
	color: var(--accent-color, #e67e22);
	margin-bottom: 15px;
	font-size: 1.8rem;
}

.modal-content p {
	font-size: 1.2rem;
	color: var(--text-color, #2c3e50);
	line-height: 1.6;
}

.modal-content ul {
	list-style: none;
	margin-top: 10px;
}

.modal-content li {
	margin: 10px 0;
	font-size: 1.1rem;
}

.modal-content i {
	color: var(--accent-color, #e67e22);
	margin-left: 8px;
}

.close-btn {
	position: absolute;
	top: 10px;
	left: 15px;
	font-size: 1.8rem;
	font-weight: bold;
	color: #888;
	cursor: pointer;
	transition: color 0.2s;
}

.close-btn:hover {
	color: var(--accent-color, #e67e22);
}

/* ===== تبويبات المنصة الترفيهية ===== */
.media-tabs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin: 20px 0;
}

.tab-btn {
	padding: 10px 20px;
	border: none;
	background-color: #eee;
	color: #333;
	border-radius: 30px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s;
}

.tab-btn.active {
	background-color: var(--accent-color, #e67e22);
	color: white;
}

.tab-content {
	display: none;
	margin-top: 15px;
}

.tab-content.active {
	display: block;
}

.video-container {
	text-align: center;
}

.video-container iframe {
	border-radius: 10px;
	max-width: 100%;
}

.watch-link {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 16px;
	background-color: var(--accent-color, #e67e22);
	color: white;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.9rem;
}

.watch-link i {
	margin-left: 5px;
}

.reels-grid {
	display: flex;
	justify-content: center;
	gap: 15px;
	flex-wrap: wrap;
	margin: 15px 0;
}

.reel-item {
	width: 80px;
	height: 80px;
	background-color: #f0f0f0;
	border-radius: 15px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	color: var(--accent-color, #e67e22);
	font-size: 0.8rem;
}

.reel-item i {
	font-size: 2rem;
}

/* ===== تذييل الحقوق ===== */
.footer {
	margin-top: auto;
	text-align: center;
	padding: 15px;
	font-size: 1rem;
	font-weight: 700;
	background-color: var(--light-bg, #e9eef2);
	border-top: 1px solid #ccc;
}

.footer span {
	background: linear-gradient(45deg, var(--accent-color, #e67e22), #c0392b);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	font-weight: bold;
}

/* ===== للشاشات الصغيرة ===== */
@media (max-width: 480px) {
	.mini-box {
		width: 70px;
		height: 70px;
	}
	.mini-box i {
		font-size: 1.5rem;
	}
	.footer {
		font-size: 0.9rem;
	}
	.theme-toggle, .media-toggle {
		width: 40px;
		height: 40px;
		left: 10px;
	}
	.theme-toggle {
		top: 50%;
	}
	.media-toggle {
		top: calc(50% + 60px);
	}
	.theme-menu {
		left: 60px;
	}
	.reel-item {
		width: 70px;
		height: 70px;
	}
}