/* =========================================
   BLOG SIDEBAR (Estilo Card Moderno)
   ========================================= */

.sidebar-content-wrapper.space-y-8 > * + * {
	margin-top: 2rem;
}

.escs-sidebar-card {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
		0 2px 4px -1px rgba(0, 0, 0, 0.03);
	margin-bottom: 2rem;
}

.escs-card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.escs-accent-bar {
	width: 4px;
	height: 32px;
	background-color: var(--cor-primaria, #003366);
	border-radius: 9999px;
}

.escs-accent-bar.small {
	height: 24px;
}

.escs-card-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #111827;
	margin: 0;
	line-height: 1.2;
}

.escs-search-wrapper form {
	position: relative;
	width: 100%;
}

.escs-search-wrapper input[type="search"],
.escs-search-wrapper input[type="text"] {
	width: 100%;
	padding: 0.625rem 1rem 0.625rem 2.5rem;
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	color: #111827;
	transition: all 0.2s;
}

.escs-search-wrapper input:focus {
	border-color: var(--cor-primaria, #003366);
	background-color: #fff;
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.escs-search-wrapper input[type="search"] {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 12px center;
}

.escs-search-wrapper button[type="submit"] {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	font-size: 0;
	padding: 5px;
}

.escs-search-wrapper button[type="submit"]::before {
	content: "\F135";
	font-family: "bootstrap-icons";
	font-size: 1.2rem;
	display: block;
}

.escs-select-wrapper {
	position: relative;
	width: 100%;
}

.escs-select-wrapper select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	padding: 0.625rem 2.5rem 0.625rem 1rem;
	background-color: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	color: #4b5563;
	cursor: pointer;
	transition: all 0.2s;
}

.escs-select-wrapper select:focus {
	border-color: var(--cor-primaria, #003366);
	background-color: #fff;
	outline: none;
}

.escs-select-wrapper .select-icon {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
	font-size: 0.9rem;
}

.escs-info-content p {
	font-size: 0.95rem;
	color: #4b5563;
	line-height: 1.6;
	margin-bottom: 1rem;
}

.escs-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cor-primaria, #003366);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
	transition: gap 0.2s;
}

.escs-text-link:hover {
	gap: 12px;
	text-decoration: underline;
}

/* =========================================
   MOBILE TOGGLE BUTTON (Funcionalidade)
   ========================================= */

.sidebar-mobile-toggle {
	display: none;
	width: 100%;
	padding: 1rem;
	background-color: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	color: #111827;
	margin-bottom: 1.5rem;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
	.sidebar-mobile-toggle {
		display: flex;
	}

	.sidebar-content-wrapper {
		display: none;
	}

	.sidebar-content-wrapper.active {
		display: block;
		animation: slideDown 0.3s ease-out;
	}
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* =========================================
   WIDGET ARQUIVO (Lista Moderna)
   ========================================= */

.escs-archive-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.escs-archive-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
	cursor: pointer;
}

.escs-archive-item:hover {
	background-color: #f9fafb;
}

.escs-archive-item .archive-name {
	font-size: 0.875rem;
	color: #4b5563;
	font-weight: 500;
	transition: color 0.2s;
	text-transform: capitalize;
}

.escs-archive-item:hover .archive-name {
	color: var(--cor-primaria, #003366);
}

.escs-archive-item .archive-badge {
	font-size: 0.75rem;
	font-weight: 600;
	background-color: #f3f4f6;
	color: #6b7280;
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
}

.escs-archive-details {
	margin-top: 0.5rem;
}

.escs-archive-summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	cursor: pointer;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--cor-primaria, #003366);
	user-select: none;
	transition: background-color 0.2s;
}

.escs-archive-summary::-webkit-details-marker {
	display: none;
}

.escs-archive-summary:hover {
	background-color: #f9fafb;
	color: #002244;
}

.escs-archive-summary .summary-icon {
	font-size: 0.9rem;
	transition: transform 0.3s ease;
}

.escs-archive-details[open] .summary-icon {
	transform: rotate(180deg);
}

.escs-archive-hidden-content {
	margin-top: 0.5rem;
	margin-left: 0.75rem;
	padding-left: 0.75rem;
	border-left: 1px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	animation: fadeIn 0.3s ease-in-out;
}

.escs-archive-subitem {
	display: block;
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	color: #6b7280;
	text-decoration: none;
	border-radius: 0.375rem;
	transition: all 0.2s;
	text-transform: capitalize;
}

.escs-archive-subitem:hover {
	color: var(--cor-primaria, #003366);
	background-color: #f9fafb;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
