/**
 * Portal Devocão – Single post
 */

.pdv-single-wrap {
	--pdv-font: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--pdv-gold: #c5a059;
	--pdv-navy: #1a243e;
	margin: 0 auto;
	padding: 1rem 0 2rem;
	font-family: var(--pdv-font);
}

.pdv-single__card {
	background: #fffcf5;
    border-radius: 16px;
    box-shadow: 0 0 40px rgb(111 111 111 / 30%);
	font-family: var(--pdv-font);
	position: relative;
	overflow: hidden;
}

.pdv-single__banner-top {
	background-image: url('https://portaldadevocao.com.br/wp-content/plugins/portaldadevocao/assets/images/banner-top-post.webp');
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pdv-single__title {
	text-align: center;
	margin: 0 0 1.75rem;
	font-size: clamp(2.35rem, 3vw, 1.85rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--pdv-navy);
	font-family: var(--pdv-font);

}

.pdv-single__excerpt {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #5c6370;
	font-family: var(--pdv-font);
}

.pdv-single__thumb {
	margin: 0 0 1.5rem;
}

.pdv-single__thumb-img {
	max-width: 220px;
	width: 100%;
	height: auto;
	border-radius: 12px;
	object-fit: contain;
}

/* Separador */
.pdv-single__sep {
	position: relative;
	width: 100%;
	max-width: 520px;
	margin: 0 auto 1.75rem;
	min-height: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pdv-single__sep-line {
	display: block;
	width: 100%;
	height: 2px;
	min-height: 2px;
	max-height: 2px;
	object-fit: fill;
}

.pdv-single__sep-icon {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

/* Conteúdo */
.pdv-single__content {
	font-size: 1rem;
	line-height: 1.85;
	color: #3d4450;
	font-family: var(--pdv-font);
	margin-bottom: 2rem;
}

.pdv-single__content p {
	margin: 0 0 1rem;
}

.pdv-single__content p:last-child {
	margin-bottom: 0;
}

/* Versículo */
.pdv-single__verse {
	max-width: 520px;
	margin: 0 auto 2rem;
	padding: 1.5rem 1.75rem;
	border: 1px solid rgba(197, 160, 89, 0.55);
	border-radius: 14px;
	background: rgb(255 248 231);
	text-align: center;
	font-family: var(--pdv-font);
}

.pdv-single__verse-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.pdv-single__verse-icon {
	width: 50px;
	height: 50px;
	display: block;
}

.pdv-single__verse-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--pdv-gold);
	font-family: var(--pdv-font);
}

.pdv-single__verse-text {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
	line-height: 1.65;
	color: #3d4450;
	font-family: var(--pdv-font);
}

.pdv-single__verse-ref {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--pdv-gold);
	font-family: var(--pdv-font);
}

/* Ações (todos iguais) */
.pdv-single__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	font-family: var(--pdv-font);
}

.pdv-single__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.55rem 1.25rem;
	border: 1.5px solid var(--pdv-gold);
	border-radius: 8px;
	background: #fff;
	color: var(--pdv-wine);
	font-size: 0.88rem;
	font-weight: 600;
	font-family: var(--pdv-font);
	text-decoration: none !important;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
	box-sizing: border-box;
	white-space: nowrap;
	user-select: none;
}

.pdv-single__btn-menu {
	background: #c5a059a3;
}

.pdv-single__btn-menu:hover {
	color: #fff !important;
}

a.pdv-single__btn {
	color: var(--pdv-navy);
}

.pdv-single__btn:hover {
	border-color: var(--pdv-gold);
	color: var(--pdv-gold);
}

a.pdv-single__btn:hover {
	color: var(--pdv-gold);
}

.pdv-single__btn svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.pdv-single__btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
}

/* Player TTS (edge-tts) */
.pdv-tts {
	margin: 0 auto 1.5rem;
	max-width: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid rgba(197, 160, 89, 0.35);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.7);
	text-align: center;
}

.pdv-tts.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.pdv-tts__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 0.85rem;
}

.pdv-tts__control-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.3rem 0;
}

.pdv-tts__gender-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	border: 2px solid #ddd;
	border-radius: 50%;
	background: #fff;
	color: #999;
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.pdv-tts__gender-btn:hover:not(:disabled) {
	border-color: var(--pdv-gold);
	color: var(--pdv-gold);
}

.pdv-tts__gender-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pdv-tts__gender-btn svg {
	width: 20px;
	height: 20px;
}

.pdv-tts__gender-btn.is-active {
	background: var(--pdv-gold);
	border-color: var(--pdv-gold);
	color: #fff;
}

.pdv-tts__icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--pdv-gold);
}

.pdv-tts__label {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--pdv-navy);
	white-space: nowrap;
}

.pdv-tts__select {
	min-height: 36px;
	padding: 0.3rem 0.6rem;
	border: 1px solid #d7dbe3;
	border-radius: 8px;
	background: #fff;
	color: var(--pdv-navy);
	font-family: var(--pdv-font);
	font-size: 0.88rem;
	appearance: none;
	cursor: pointer;
	padding-right: 28px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a243e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px;
}

.pdv-tts__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 40px;
	padding: 0.45rem 1.1rem;
	border: 1.5px solid rgba(197, 160, 89, 0.4);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.8);
	color: var(--pdv-navy);
	font-size: 0.88rem;
	font-weight: 600;
	font-family: var(--pdv-font);
	cursor: pointer;
	user-select: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pdv-tts__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	background: var(--pdv-gold);
	border-radius: 50%;
	color: #fff;
}

.pdv-tts__btn-icon svg {
	width: 18px;
	height: 18px;
}

.pdv-tts__btn:hover:not(:disabled) {
	background: rgba(197, 160, 89, 0.15);
	border-color: var(--pdv-gold);
}

.pdv-tts__btn:active:not(:disabled) {
	transform: scale(0.98);
}

.pdv-tts__btn:disabled {
	border-color: #ddd;
	color: #999;
	cursor: not-allowed;
}

.pdv-tts__btn:disabled .pdv-tts__btn-icon {
	background: #ccc;
}

.pdv-tts__btn-label {
	display: inline;
	color: inherit;
}

.pdv-tts__status {
	margin: 0.75rem 0 0;
	font-size: 0.8rem;
	color: #7a8190;
}

/* Estado desabilitado */
.pdv-tts--disabled {
	opacity: 0.6;
	pointer-events: none;
}

.pdv-tts--disabled .pdv-tts__label,
.pdv-tts--disabled .pdv-tts__control-group {
	color: #ccc;
}

.pdv-tts--disabled .pdv-tts__icon {
	color: #ccc;
}

.pdv-tts--disabled .pdv-tts__select {
	background-color: #f5f5f5;
	color: #999;
	border-color: #ddd;
}

#pdv-tts-audio {
	display: none;
}

/* Esconde elementos duplicados do tema */
body.pdv-single-post .entry-header,
body.pdv-single-post .page-header,
body.pdv-single-post article.post > .entry-header,
body.pdv-single-post .post-thumbnail,
body.pdv-single-post .entry-meta,
body.pdv-single-post .entry-footer {
	display: none !important;
}

@media (max-width: 767px) {
	.pdv-single__actions {
		flex-direction: column;
		width: 100%;
	}

	.pdv-single__banner-top {
		height: 150px;
	}

	.pdv-single__btn {
		width: 100%;
	}
}

@media (min-width: 768px) {
	.pdv-single__actions {
		flex-wrap: nowrap;
	}
}

@media (max-width: 480px) {
	.pdv-single__banner-top-content {
		padding: 2rem 1rem;
	}
}

@media (min-width: 481px) {
	.pdv-single__banner-top-content {
		padding: 2rem 2rem;
	}
}