/**
 * Sermon Manager Styles
 */

.kc-sermons-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

.kc-sermon-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.kc-sermon-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.kc-sermon-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.kc-sermon-link:hover {
	text-decoration: none;
	color: inherit;
}

.kc-sermon-thumbnail-wrapper {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 aspect ratio */
	overflow: hidden;
	background: #f0f0f0;
}

.kc-sermon-thumbnail {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kc-sermon-thumbnail-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
	color: #fff;
	font-size: 48px;
}

.kc-sermon-play-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.kc-sermon-card:hover .kc-sermon-play-overlay {
	opacity: 1;
}

.kc-play-icon {
	color: #fff;
	font-size: 64px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.kc-sermon-details {
	padding: 20px;
}

.kc-sermon-series-badge {
	display: inline-block;
	background: #1e3c72;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 10px;
	border-radius: 4px;
	margin-bottom: 8px;
}

.kc-sermon-title {
	margin: 0 0 10px 0;
	font-size: 20px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

.kc-sermon-preacher {
	margin: 8px 0;
	color: #666;
	font-size: 14px;
	font-weight: 500;
}

.kc-sermon-series {
	margin: 8px 0;
	color: #1e3c72;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.kc-sermon-passage {
	margin: 8px 0;
	color: #888;
	font-size: 13px;
	font-style: italic;
}

.kc-sermon-date {
	margin: 12px 0 0 0;
	color: #999;
	font-size: 12px;
}

.kc-sermon-media {
	display: none;
}

/* Modal Styles */
.kc-sermon-modal {
	position: fixed;
	z-index: 100000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
}

.kc-sermon-modal-content {
	position: relative;
	background-color: #fff;
	padding: 40px;
	border-radius: 12px;
	max-width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.kc-sermon-modal-close {
	position: absolute;
	top: 15px;
	right: 20px;
	color: #aaa;
	font-size: 32px;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	transition: color 0.3s ease;
}

.kc-sermon-modal-close:hover {
	color: #333;
}

#kc-sermon-modal-body {
	margin-top: 20px;
}

#kc-sermon-modal-body iframe {
	max-width: 100%;
	height: auto;
}

#kc-sermon-modal-body audio {
	margin-top: 20px;
}

/* Single Sermon Page Styles */
.kc-sermon-single-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.kc-video-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
	overflow: hidden;
	max-width: 100%;
	background: #000;
	margin-bottom: 20px;
	border-radius: 8px;
}

.kc-video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.kc-audio-container {
	margin-bottom: 30px;
}

.kc-sermon-meta-bar {
	display: flex;
	gap: 20px;
	background: #f8f9fa;
	padding: 15px;
	border-radius: 8px;
	margin-bottom: 30px;
	font-size: 0.9em;
	color: #555;
	flex-wrap: wrap;
}

.kc-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kc-meta-icon {
	font-size: 1.2em;
}

.kc-download-btn {
	display: inline-block;
	background: #333;
	color: white;
	padding: 10px 20px;
	text-decoration: none;
	border-radius: 5px;
	font-size: 14px;
	transition: background 0.3s ease;
}

.kc-download-btn:hover {
	background: #555;
	color: white;
	text-decoration: none;
}

.kc-sermon-notes {
	margin-top: 30px;
	line-height: 1.6;
}

.kc-sermon-notes h1,
.kc-sermon-notes h2,
.kc-sermon-notes h3 {
	margin-top: 30px;
	margin-bottom: 15px;
}

.kc-sermon-notes p {
	margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
	.kc-sermons-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.kc-sermon-modal-content {
		padding: 20px;
		max-width: 95%;
	}

	.kc-sermon-meta-bar {
		flex-direction: column;
		gap: 10px;
	}

	.kc-sermon-single-wrapper {
		padding: 15px;
	}
}
