/**
 * Public Styles for Výukové Programy
 *
 * @package VyukoveProgramy
 */

/* ==========================================================================
   Program Card (Listing)
   ========================================================================== */

.vyp-program-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 30px;
	transition: box-shadow 0.3s ease;
}

.vyp-program-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vyp-card-thumbnail {
	overflow: hidden;
}

.vyp-card-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.3s ease;
}

.vyp-program-card:hover .vyp-card-thumbnail img {
	transform: scale(1.05);
}

.vyp-card-content {
	padding: 20px;
}

.vyp-card-title {
	margin: 0 0 15px;
	font-size: 24px;
	line-height: 1.3;
}

.vyp-card-title a {
	color: #333;
	text-decoration: none;
}

.vyp-card-title a:hover {
	color: #0073aa;
}

.vyp-card-excerpt {
	margin-bottom: 15px;
	color: #666;
	line-height: 1.6;
}

.vyp-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.vyp-card-meta span {
	color: #666;
	font-size: 14px;
}

.vyp-card-link {
	display: inline-block;
	padding: 10px 20px;
	background: #0073aa;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.3s ease;
}

.vyp-card-link:hover {
	background: #005a87;
	color: #fff;
}

/* ==========================================================================
   Program Full (Single)
   ========================================================================== */

.vyp-program-full {
	max-width: 900px;
	margin: 0 auto;
}

.vyp-program-header {
	margin-bottom: 30px;
}

.vyp-program-title {
	font-size: 36px;
	margin: 0 0 15px;
	line-height: 1.2;
}

.vyp-program-thumbnail {
	margin-bottom: 30px;
}

.vyp-program-thumbnail img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.vyp-program-excerpt {
	font-size: 18px;
	color: #666;
	margin-bottom: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-left: 4px solid #0073aa;
	line-height: 1.6;
}

.vyp-program-content {
	margin-bottom: 40px;
	line-height: 1.8;
}

/* ==========================================================================
   Categories
   ========================================================================== */

.vyp-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.vyp-category-link {
	display: inline-block;
	padding: 5px 15px;
	background: #f0f0f0;
	color: #333;
	text-decoration: none;
	border-radius: 20px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.vyp-category-link:hover {
	background: #0073aa;
	color: #fff;
}

/* ==========================================================================
   Program Details
   ========================================================================== */

.vyp-program-details {
	background: #f9f9f9;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 40px;
}

.vyp-program-details h2 {
	margin: 0 0 20px;
	font-size: 24px;
}

.vyp-details {
	display: grid;
	gap: 15px;
}

.vyp-detail {
	display: flex;
	align-items: baseline;
	padding: 10px 0;
	border-bottom: 1px solid #e0e0e0;
}

.vyp-detail:last-child {
	border-bottom: none;
}

.vyp-detail-label {
	min-width: 150px;
	font-weight: 600;
	color: #333;
}

.vyp-detail-value {
	color: #666;
}

/* ==========================================================================
   PDF Link
   ========================================================================== */

.vyp-program-pdf {
	margin-bottom: 40px;
}

.vyp-pdf-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	background: #d63638;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background 0.3s ease;
}

.vyp-pdf-link:hover {
	background: #b02a2c;
	color: #fff;
}

.vyp-pdf-link .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.vyp-program-gallery-section {
	margin-bottom: 40px;
}

.vyp-program-gallery-section h2 {
	margin: 0 0 20px;
	font-size: 24px;
}

.vyp-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 15px;
}

.vyp-gallery-image {
	width: 100%;
	height: auto;
	border-radius: 8px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.vyp-gallery-image:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Archive / Listing Grid
   ========================================================================== */

.vyp-programs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin-bottom: 40px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
	.vyp-program-title {
		font-size: 28px;
	}

	.vyp-card-title {
		font-size: 20px;
	}

	.vyp-program-excerpt {
		font-size: 16px;
	}

	.vyp-detail {
		flex-direction: column;
		gap: 5px;
	}

	.vyp-detail-label {
		min-width: auto;
	}

	.vyp-card-meta {
		flex-direction: column;
		gap: 10px;
	}

	.vyp-gallery {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 10px;
	}

	.vyp-programs-grid {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 480px) {
	.vyp-program-details,
	.vyp-program-excerpt {
		padding: 15px;
	}

	.vyp-card-content {
		padding: 15px;
	}
}
