/**
 * Taxonomy Tecnología Page Styles - تصميم صفحة فئة التقنية
 * 
 * @package Really Simple
 */

/* ========================================
   HEADER DE LA TECNOLOGÍA - تصميم محسّن
   ======================================== */

.tecnologia-header {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	position: relative;
	overflow: hidden;
	padding: 0;
	margin-bottom: 3rem;
	border-radius: 0;
	border: none;
}

.tecnologia-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
	pointer-events: none;
}

[data-theme="dark"] .tecnologia-header {
	background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.tecnologia-header-content {
	position: relative;
	z-index: 1;
	padding: 4rem 2rem 3rem;
	max-width: 1400px;
	margin: 0 auto;
}

/* Wrapper للعنوان والأيقونة */
.tecnologia-title-wrapper {
	display: flex;
	align-items: center;
	gap: 2rem;
	margin-bottom: 1.5rem;
}

/* أيقونة التقنية - خلفية غامقة */
.tecnologia-icon-large {
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
	border-radius: 24px;
	border: 2px solid rgba(59, 130, 246, 0.3);
	flex-shrink: 0;
	position: relative;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.tecnologia-icon-large:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
	border-color: rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] .tecnologia-icon-large {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-color: rgba(59, 130, 246, 0.4);
}

.tecnologia-icon-large i {
	font-size: 4rem;
	z-index: 1;
	position: relative;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.tecnologia-icon-large i.colored {
	filter: brightness(1.15) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* عنوان الصفحة */
.tecnologia-header .page-title {
	font-size: 3rem;
	font-weight: 900;
	color: white;
	margin: 0;
	line-height: 1.1;
	letter-spacing: -0.03em;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

/* وصف التقنية */
.taxonomy-description {
	font-size: 1.125rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.95);
	max-width: 800px;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.taxonomy-description p {
	margin-bottom: 1rem;
}

.taxonomy-description p:last-child {
	margin-bottom: 0;
}

/* إحصائيات التقنية - تصميم جديد */
.tecnologia-stats {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-top: 2.5rem;
}

.stat-card {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.75rem;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 12px;
	border: 1px solid rgba(59, 130, 246, 0.3);
	transition: all 0.3s ease;
	min-width: 150px;
}

.stat-card:hover {
	transform: translateY(-2px);
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.25) 100%);
	box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
	border-color: rgba(59, 130, 246, 0.5);
}

[data-theme="dark"] .stat-card {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
	border-color: rgba(59, 130, 246, 0.25);
}

[data-theme="dark"] .stat-card:hover {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.2) 100%);
	border-color: rgba(59, 130, 246, 0.4);
}

.stat-card svg {
	width: 28px;
	height: 28px;
	color: #60a5fa;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.stat-content {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.stat-label {
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.stat-value {
	font-size: 1.75rem;
	font-weight: 800;
	color: white;
	line-height: 1;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Badge decorativo */
.tecnologia-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50px;
	font-size: 0.875rem;
	font-weight: 600;
	color: white;
	margin-top: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.tecnologia-badge svg {
	width: 16px;
	height: 16px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
	.tecnologia-header-content {
		padding: 3.5rem 1.5rem 2.5rem;
	}
	
	.tecnologia-title-wrapper {
		gap: 1.5rem;
	}
	
	.tecnologia-icon-large {
		width: 85px;
		height: 85px;
	}
	
	.tecnologia-icon-large i {
		font-size: 3.5rem;
	}
	
	.tecnologia-header .page-title {
		font-size: 2.5rem;
	}
	
	.taxonomy-description {
		font-size: 1rem;
	}
	
	.stat-value {
		font-size: 1.5rem;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.tecnologia-header-content {
		padding: 3rem 1.25rem 2rem;
	}
	
	.tecnologia-title-wrapper {
		gap: 1.25rem;
	}
	
	.tecnologia-icon-large {
		width: 70px;
		height: 70px;
		border-radius: 18px;
	}
	
	.tecnologia-icon-large i {
		font-size: 3rem;
	}
	
	.tecnologia-header .page-title {
		font-size: 2rem;
	}
	
	.taxonomy-description {
		font-size: 0.9375rem;
	}
	
	.tecnologia-stats {
		gap: 1rem;
		margin-top: 2rem;
	}
	
	.stat-card {
		padding: 1rem 1.25rem;
		min-width: calc(50% - 0.5rem);
	}
	
	.stat-card svg {
		width: 24px;
		height: 24px;
	}
	
	.stat-value {
		font-size: 1.375rem;
	}
	
	.stat-label {
		font-size: 0.75rem;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.tecnologia-header-content {
		padding: 2.5rem 1rem 1.75rem;
	}
	
	.tecnologia-title-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}
	
	.tecnologia-icon-large {
		width: 60px;
		height: 60px;
		border-radius: 16px;
	}
	
	.tecnologia-icon-large i {
		font-size: 2.5rem;
	}
	
	.tecnologia-header .page-title {
		font-size: 1.75rem;
	}
	
	.stat-card {
		min-width: 100%;
	}
	
	.tecnologia-badge {
		font-size: 0.8125rem;
		padding: 0.4rem 0.875rem;
	}
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.tecnologia-header {
	animation: fadeIn 0.6s ease-out;
}

.tecnologia-title-wrapper {
	animation: fadeInUp 0.7s ease-out 0.1s both;
}

.taxonomy-description {
	animation: fadeInUp 0.7s ease-out 0.2s both;
}

.tecnologia-stats {
	animation: fadeInUp 0.7s ease-out 0.3s both;
}

.stat-card {
	animation: fadeInUp 0.6s ease-out both;
}

.stat-card:nth-child(1) {
	animation-delay: 0.35s;
}

.stat-card:nth-child(2) {
	animation-delay: 0.4s;
}

.stat-card:nth-child(3) {
	animation-delay: 0.45s;
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */

@media (prefers-reduced-motion: reduce) {
	.tecnologia-header,
	.tecnologia-title-wrapper,
	.taxonomy-description,
	.tecnologia-stats,
	.stat-card {
		animation: none;
	}
	
	.stat-card,
	.tecnologia-icon-large {
		transition: none;
	}
}

