/* Estilos do MDI Gerenciador de Downloads que ainda não existem no tema. */

.download-cta-box {
	margin: 24px 0;
	padding: 20px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	text-align: center;
}

.mdi-dl-prepare-btn {
	border: 0;
	cursor: pointer;
	font: inherit;
}

.mdi-dl-wait-box {
	margin-top: 16px;
}

.mdi-dl-wait-text {
	margin-bottom: 12px;
	font-weight: 600;
}

.mdi-dl-progress {
	width: 100%;
	max-width: 320px;
	height: 8px;
	margin: 0 auto;
	background: rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	overflow: hidden;
}

.mdi-dl-progress-bar {
	width: 0;
	height: 100%;
	background: currentColor;
	transition: width 1s linear;
}

/* :not([hidden]) evita que esta regra sobrescreva o display:none nativo do
   atributo [hidden] enquanto o countdown nao termina (ver countdown.js). */
.mdi-dl-real-link:not([hidden]) {
	display: inline-block;
}

.mdi-dl-ad-slot {
	margin: 20px 0;
	text-align: center;
}

.mdi-dl-ad-slot--wait {
	margin-top: 20px;
}

.mdi-dl-ad-label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.6;
}

.mdi-dl-specs {
	margin-top: 24px;
}

.mdi-dl-related-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.mdi-dl-related-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 6px;
	border-radius: 10px;
	color: inherit;
	text-decoration: none;
	transition: background 0.2s;
}

.mdi-dl-related-item:hover {
	background: rgba(0, 0, 0, 0.04);
}

.mdi-dl-related-icon {
	flex: 0 0 auto;
	display: flex;
}

.mdi-dl-related-icon .download-icon,
.mdi-dl-related-icon .download-logo {
	width: 40px;
	height: 40px;
	margin-bottom: 0;
	font-size: 0.62rem;
}

.mdi-dl-related-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.mdi-dl-related-info strong {
	font-size: 0.92rem;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mdi-dl-related-info small {
	font-size: 0.76rem;
	line-height: 1.35;
	opacity: 0.65;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Ficha do programa: imagem de destaque como icone ao lado do nome. */
.mdi-dl-single-head {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 24px;
}

.mdi-dl-single-icon {
	flex: 0 0 auto;
}

.mdi-dl-single-icon .mdi-dl-single-logo,
.mdi-dl-single-icon .download-icon {
	display: grid;
	place-items: center;
	width: 96px;
	height: 96px;
	margin: 0;
	padding: 0;
	border-radius: 22px;
	object-fit: contain;
	background: var(--card-bg, #fff);
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
	font-size: 1.3rem;
}

.mdi-dl-single-icon .mdi-dl-single-logo {
	padding: 10px;
	border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}

.mdi-dl-single-title {
	min-width: 0;
}

.mdi-dl-single-title .post-cat {
	margin: 0 0 4px;
}

.mdi-dl-single .mdi-dl-single-title h1 {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3.2vw, 2.4rem);
	line-height: 1.12;
	overflow-wrap: anywhere;
}

.mdi-dl-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mdi-dl-single-meta span {
	padding: 4px 11px;
	background: var(--search-bg, #f1f5f9);
	border-radius: 999px;
	color: var(--text-muted, #64748b);
	font-size: 0.8rem;
	font-weight: 600;
}

@media (max-width: 560px) {
	.mdi-dl-single-head {
		gap: 14px;
	}

	.mdi-dl-single-icon .mdi-dl-single-logo,
	.mdi-dl-single-icon .download-icon {
		width: 68px;
		height: 68px;
		border-radius: 16px;
	}

	.mdi-dl-single-icon .mdi-dl-single-logo {
		padding: 7px;
	}
}

/* Botao "Baixar agora" da ficha (leva a pagina de download com contagem). */
.download-cta-box .mdi-dl-gate-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 34px;
	background: var(--mc-gradient, linear-gradient(90deg, #2563eb 0%, #00c6ff 100%));
	border: 0;
	border-radius: 14px;
	box-shadow: 0 14px 30px rgba(37, 99, 235, 0.3);
	color: #fff !important;
	font-size: 1.08rem;
	font-weight: 900;
	text-decoration: none !important;
	transition: transform 0.2s, filter 0.2s;
}

.download-cta-box .mdi-dl-gate-link::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6V3Zm-7 15h16v2H4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v9.2l3.6-3.6 1.4 1.4-6 6-6-6 1.4-1.4 3.6 3.6V3Zm-7 15h16v2H4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.download-cta-box .mdi-dl-gate-link:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
}

/* Ficha tecnica e tutorial relacionado (1.7.0) */
.mdi-dl-ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 12px 0 0; border: 1px solid var(--border-color, #e5e7eb); border-radius: 14px; overflow: hidden; }
.mdi-dl-ficha > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border-color, #e5e7eb); }
.mdi-dl-ficha > div:nth-child(odd) { border-right: 1px solid var(--border-color, #e5e7eb); }
.mdi-dl-ficha dt { margin: 0; color: var(--text-muted, #64748b); font-size: .88rem; }
.mdi-dl-ficha dd { margin: 0; font-weight: 700; font-size: .9rem; text-align: right; }
@media (max-width: 640px) {
	.mdi-dl-ficha { grid-template-columns: minmax(0, 1fr); }
	.mdi-dl-ficha > div:nth-child(odd) { border-right: 0; }
}
.mdi-dl-tutorial { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding: 14px; border: 1px solid var(--border-color, #e5e7eb); border-radius: 16px; background: var(--card-bg, #fff); color: var(--text-main, #0f172a); text-decoration: none; transition: border-color .2s; }
.mdi-dl-tutorial:hover { border-color: var(--primary, #2563eb); }
.mdi-dl-tutorial-img { flex: 0 0 120px; width: 120px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; }
.mdi-dl-tutorial-img img { width: 100%; height: 100%; object-fit: cover; }
.mdi-dl-tutorial-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mdi-dl-tutorial-txt small { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--primary, #2563eb); }
.mdi-dl-tutorial-txt strong { line-height: 1.3; }
.mdi-dl-tutorial-txt span { font-size: .88rem; color: var(--primary, #2563eb); font-weight: 700; }
