/**
 * Video Invita Premium AEO CSS
 *
 * Dedicated styling for semantic AEO (Answer Engine Optimization) components.
 * Loaded conditionally only when an AEO component is present on the page.
 *
 * @package Video_Invita
 */

/* ==========================================
   1. SUMMARY BOX (Resumen Rápido)
   ========================================== */
.aeo-summary-box {
	background-color: #fffef0;
	border-left: 5px solid #f1c40f;
	border-right: 1px solid #fdeea6;
	border-top: 1px solid #fdeea6;
	border-bottom: 1px solid #fdeea6;
	border-radius: 6px;
	padding: 20px;
	margin: 25px 0;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.aeo-summary-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	border-bottom: 1px dashed rgba(241, 196, 15, 0.3);
	padding-bottom: 8px;
}

.aeo-summary-icon {
	font-size: 1.3rem;
}

.aeo-summary-title {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 0;
	color: #7f8c8d;
}

.aeo-summary-content {
	font-size: 0.98rem;
	line-height: 1.6;
	color: #34495e;
}

.aeo-summary-content ul {
	margin: 10px 0 0 0;
	padding-left: 20px;
}

.aeo-summary-content ul li {
	margin-bottom: 6px;
}

/* ==========================================
   2. Q&A BOX (Pregunta + Respuesta Directa)
   ========================================== */
.aeo-qa-box {
	background-color: #f0f7ff;
	border-left: 5px solid #3498db;
	border-radius: 6px;
	padding: 20px;
	margin: 25px 0;
	border-top: 1px solid #d6eaff;
	border-right: 1px solid #d6eaff;
	border-bottom: 1px solid #d6eaff;
}

.aeo-qa-question {
	font-size: 1.2rem;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 10px 0;
}

.aeo-qa-answer {
	font-size: 1rem;
	line-height: 1.6;
	color: #2c3e50;
}

/* ==========================================
   3. DEFINITION BOX (Definiciones)
   ========================================== */
.aeo-definition-box {
	background-color: #faf5ff;
	border: 1px solid #e9d5ff;
	border-left: 5px solid #9061f9;
	border-radius: 6px;
	padding: 20px;
	margin: 25px 0;
}

.aeo-definition-term {
	font-size: 1.1rem;
	font-weight: 700;
	color: #581c87;
	margin: 0 0 8px 0;
}

.aeo-definition-term dfn {
	font-style: normal;
	text-decoration: underline dotted #a855f7;
}

.aeo-definition-desc {
	margin: 0 0 12px 0;
	font-size: 0.98rem;
	color: #4b5563;
}

.aeo-definition-examples {
	font-size: 0.9rem;
	background: #ffffff;
	border-radius: 4px;
	padding: 10px;
	border: 1px solid #f3e8ff;
	color: #6b7280;
}

/* ==========================================
   4. FAQ ACCORDION (details/summary Accordions)
   ========================================== */
.aeo-faq-accordion {
	margin: 30px 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	border: 1px solid #e2e8f0;
}

.aeo-faq-item {
	background: #ffffff;
	border-bottom: 1px solid #e2e8f0;
	transition: background 0.2s ease;
}

.aeo-faq-item:last-child {
	border-bottom: none;
}

.aeo-faq-question-title {
	padding: 18px 20px;
	font-weight: 700;
	font-size: 1.05rem;
	color: #1e293b;
	cursor: pointer;
	user-select: none;
	position: relative;
	list-style: none; /* Hide default arrow on Firefox/Chrome */
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.2s ease;
}

/* Custom interactive arrow */
.aeo-faq-question-title::after {
	content: '+';
	font-size: 1.3rem;
	color: #64748b;
	font-weight: 500;
	transition: transform 0.2s ease;
}

.aeo-faq-item[open] .aeo-faq-question-title {
	border-bottom: 1px solid #f1f5f9;
	color: #e67e22;
}

.aeo-faq-item[open] .aeo-faq-question-title::after {
	content: '-';
	transform: rotate(180deg);
	color: #e67e22;
}

/* Safari support for hiding details marker */
.aeo-faq-question-title::-webkit-details-marker {
	display: none;
}

.aeo-faq-answer-content {
	padding: 18px 20px;
	background: #f8fafc;
	font-size: 0.98rem;
	line-height: 1.6;
	color: #475569;
}

/* ==========================================
   5. HOW-TO STEPS (Procesos Paso a Paso)
   ========================================== */
.aeo-steps-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 25px;
	margin: 30px 0;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.aeo-steps-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #1e293b;
}

.aeo-steps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.aeo-step-item {
	display: flex;
	align-items: flex-start;
}

.aeo-step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: #e67e22;
	color: #ffffff;
	font-weight: 800;
	font-size: 0.85rem;
	border-radius: 50%;
	margin-right: 15px;
	flex-shrink: 0;
	margin-top: 2px;
}

.aeo-step-text {
	font-size: 1rem;
	color: #334155;
	line-height: 1.5;
}
