/* FFE Connect Plugin Styles */

.ffe-courses-container {
	max-width: 100%;
	margin: 0 auto;
}

/* Filtros */
.ffe-filters {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: end;
}

.ffe-filter-group {
	display: flex;
	flex-direction: column;
	min-width: 200px;
}

.ffe-filter-group label {
	font-weight: 600;
	margin-bottom: 5px;
	color: #333;
}

.ffe-filter-group select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.ffe-btn {
	background: #0073aa;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background-color 0.3s;
}

.ffe-btn:hover {
	background: #005a87;
}

.ffe-btn-secondary {
	background: #6c757d;
}

.ffe-btn-secondary:hover {
	background: #545b62;
}

/* Loading */
.ffe-loading {
	text-align: center;
	padding: 40px;
	font-style: italic;
	color: #666;
}

/* Resumen */
.ffe-summary {
	background: #e7f3ff;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 20px;
	border-left: 4px solid #0073aa;
}

.ffe-summary p {
	margin: 0;
	font-weight: 600;
	color: #0073aa;
}

/* Planes */
.ffe-plan {
	background: white;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ffe-plan-title {
	background: #f1f3f4;
	padding: 15px 20px;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	border-bottom: 1px solid #e0e0e0;
}

.ffe-plan-code {
	font-size: 14px;
	font-weight: normal;
	color: #666;
}

/* Cursos */
.ffe-course {
	padding: 20px;
	border-bottom: 1px solid #f0f0f0;
}

.ffe-course:last-child {
	border-bottom: none;
}

.ffe-course-title {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
}

.ffe-course-code {
	font-size: 13px;
	font-weight: normal;
	color: #7f8c8d;
}

.ffe-course-details {
	display: flex;
	gap: 20px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.ffe-detail {
	background: #f8f9fa;
	padding: 5px 10px;
	border-radius: 15px;
	font-size: 13px;
	color: #495057;
	border: 1px solid #e9ecef;
}

/* Toggle de contenidos */
.ffe-content-toggle {
	margin: 15px 0;
}

.ffe-toggle-btn {
	background: #17a2b8;
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	margin-bottom: 10px;
}

.ffe-toggle-btn:hover {
	background: #138496;
}

.ffe-content-details {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 15px;
}

.ffe-content-item {
	margin-bottom: 20px;
}

.ffe-content-item:last-child {
	margin-bottom: 0;
}

.ffe-content-item h5 {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
}

.ffe-content-text {
	font-size: 13px;
	line-height: 1.5;
	color: #495057;
}

/* Ediciones */
.ffe-editions {
	margin-top: 15px;
}

.ffe-editions h5 {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: #2c3e50;
}

.ffe-edition {
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 6px;
	padding: 12px;
	margin-bottom: 10px;
}

.ffe-edition:last-child {
	margin-bottom: 0;
}

.ffe-edition-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.ffe-edition-name {
	font-weight: 600;
	color: #2c3e50;
}

.ffe-edition-status {
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.status-active {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.status-finished {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.ffe-edition-details {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	font-size: 13px;
	color: #6c757d;
}

.ffe-edition-details span {
	white-space: nowrap;
}

/* Estilos para ediciones abiertas en el shortcode - DESHABILITADOS */
/* Los estilos especiales han sido eliminados, se usan los estilos estándar */

/* Mensajes */
.ffe-error {
	background: #f8d7da;
	color: #721c24;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #f5c6cb;
	margin: 20px 0;
}

.ffe-no-results,
.ffe-no-courses {
	text-align: center;
	padding: 40px 20px;
	color: #6c757d;
	font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
	.ffe-filters {
		flex-direction: column;
		align-items: stretch;
	}

	.ffe-filter-group {
		min-width: auto;
	}

	.ffe-course-details {
		flex-direction: column;
		gap: 10px;
	}

	.ffe-edition-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.ffe-edition-details {
		flex-direction: column;
		gap: 5px;
	}
}

@media (max-width: 480px) {
	.ffe-plan-title {
		padding: 12px 15px;
		font-size: 16px;
	}

	.ffe-course {
		padding: 15px;
	}

	.ffe-course-title {
		font-size: 15px;
	}
}
