/**
 * Spreaker Podcast Player Styling
 * 
 * Minimal, clean design for podcast player wrapper and iframe
 * Responsive on desktop, tablet, and mobile
 * 
 * @since 4.4.0
 */

/* ─────────────────────────────────────────────────────────────────── */
/* Podcast Player Wrapper */
/* ─────────────────────────────────────────────────────────────────── */

.gp-child-podcast-player-wrapper {
	margin: 14px 0 18px;
	padding: 12px;
	border: 1px solid #d7e2f0;
	border-radius: 8px;
	background: linear-gradient(180deg, #f9fbff 0%, #f1f6ff 100%);
	transition: all 0.3s ease-out;
}

/* Soft hover effect on wrapper */
@media (hover: hover) {
	.gp-child-podcast-player-wrapper:hover {
		border-color: #c6d7ee;
		box-shadow: 0 4px 12px rgba(7, 32, 73, 0.06);
	}
}

/* Reduce motion support */
@media (prefers-reduced-motion: reduce) {
	.gp-child-podcast-player-wrapper {
		transition: none;
	}
}

/* ─────────────────────────────────────────────────────────────────── */
/* CTA Text */
/* ─────────────────────────────────────────────────────────────────── */

.gp-child-podcast-cta-text {
	font-size: 13px;
	font-weight: 600;
	color: #1a3559;
	margin: 0 0 8px 0;
	line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────────── */
/* iFrame Container */
/* ─────────────────────────────────────────────────────────────────── */

.gp-child-podcast-iframe-container {
	width: 100%;
	line-height: 0; /* Remove spacing below iframe */
}

.gp-child-podcast-iframe-container iframe {
	width: 100%;
	height: 132px;
	display: block;
	border: 1px solid #d2deed;
	border-radius: 6px;
	background-color: #fff;
}

/* ─────────────────────────────────────────────────────────────────── */
/* Responsive: Tablet */
/* ─────────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
	.gp-child-podcast-player-wrapper {
		margin: 12px 0 16px;
		padding: 10px;
	}

	.gp-child-podcast-cta-text {
		font-size: 12px;
		margin-bottom: 8px;
	}

	.gp-child-podcast-iframe-container iframe {
		height: 120px;
	}
}

/* ─────────────────────────────────────────────────────────────────── */
/* Responsive: Mobile */
/* ─────────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
	.gp-child-podcast-player-wrapper {
		margin: 10px 0 14px;
		padding: 8px;
		border-radius: 6px;
	}

	.gp-child-podcast-cta-text {
		font-size: 11px;
		margin-bottom: 6px;
	}

	.gp-child-podcast-iframe-container iframe {
		height: 112px;
	}
}

/* ─────────────────────────────────────────────────────────────────── */
/* Accessibility: Focus Visible */
/* ─────────────────────────────────────────────────────────────────── */

.gp-child-podcast-iframe-container iframe:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────────── */
/* Dark Mode Support */
/* ─────────────────────────────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
	.gp-child-podcast-player-wrapper {
		background: linear-gradient(180deg, #1a2533 0%, #111a26 100%);
		border-color: #30445f;
	}

	@media (hover: hover) {
		.gp-child-podcast-player-wrapper:hover {
			border-color: #42628b;
			box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
		}
	}

	.gp-child-podcast-cta-text {
		color: #d9e8ff;
	}

	.gp-child-podcast-iframe-container iframe {
		border-color: #30445f;
	}
}
