/**
 * YouTube Watch Pages - Public Styles
 *
 * @package Yt_Watch_Pages
 */

/* Responsive embed */
.yt-watch-embed-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin-bottom: 1.5rem;
}
.yt-watch-embed-wrap iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Single page layout */
.yt-watch-single {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem;
}
.yt-watch-single h1 {
	font-size: 1.75rem !important;
	line-height: 1.3 !important;
	margin-bottom: 1rem;
}
.yt-watch-short-desc {
	font-size: 1.1rem;
	color: #555;
	margin-bottom: 1.5rem;
}
.yt-watch-content {
	margin-bottom: 2rem;
}

/* Metadata strip */
.yt-watch-meta {
	display: flex;
	gap: 1rem;
	color: #666;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
}
.yt-watch-meta-separator {
	color: #ccc;
}

/* Category badges */
.yt-watch-categories {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 2rem;
}
.yt-watch-badge {
	display: inline-block;
	padding: 0.2rem 0.6rem;
	background: transparent;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 0.8rem;
	color: #555;
	text-decoration: none;
}
.yt-watch-badge:hover {
	border-color: #999;
	color: #222;
}

/* Video card grid */
.yt-watch-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2.5rem 1.5rem;
	margin-bottom: 2rem;
}

/* Video card */
.yt-watch-card {
	border: none;
	border-radius: 6px;
	overflow: hidden;
	background: transparent;
}
.yt-watch-card:hover {
	box-shadow: none;
}
.yt-watch-card a {
	text-decoration: none;
	color: inherit;
}
.yt-watch-card-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}
.yt-watch-card-body {
	padding: 0.75rem 0;
}
.yt-watch-card-body h2,
.yt-watch-card-body h3 {
	font-size: 0.95rem !important;
	font-weight: 600;
	margin: 0 0 0.35rem;
	line-height: 1.5 !important;
}
.yt-watch-card-body h2 a,
.yt-watch-card-body h3 a {
	color: #1a1a1a;
}
.yt-watch-card-body h2 a:hover,
.yt-watch-card-body h3 a:hover {
	color: #c4302b;
}
.yt-watch-card-date {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.5rem;
	display: block;
}
.yt-watch-card-desc {
	font-size: 0.85rem;
	color: #666;
	margin: 0;
	line-height: 1.4;
}

/* Archive layout */
.yt-watch-archive,
.yt-watch-taxonomy {
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1rem;
}
.yt-watch-category-section {
	margin-bottom: 3rem;
}
.yt-watch-category-section h2 {
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #e0e0e0;
}
.yt-watch-category-section h2 a {
	color: inherit;
	text-decoration: none;
}
.yt-watch-category-section h2 a:hover {
	color: #c4302b;
}
.yt-watch-view-all {
	display: inline-block;
	margin-top: 0.5rem;
	color: #c4302b;
	text-decoration: none;
	font-weight: 600;
}
.yt-watch-view-all:hover {
	text-decoration: underline;
}

/* Breadcrumb */
.yt-watch-breadcrumb {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 1rem;
}
.yt-watch-breadcrumb a {
	color: #666;
}
.yt-watch-breadcrumb a:hover {
	color: #333;
}
.yt-watch-breadcrumb .separator {
	margin: 0 0.5rem;
}

/* Related videos section */
.yt-watch-related {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 2px solid #e0e0e0;
}
.yt-watch-related h2 {
	font-size: 1.1rem !important;
	font-weight: 600;
	color: #666;
	margin-bottom: 1rem;
}

/* Pagination */
.yt-watch-pagination {
	margin-top: 2rem;
	text-align: center;
}
.yt-watch-pagination .page-numbers {
	display: inline-block;
	padding: 0.5rem 0.75rem;
	margin: 0 0.15rem;
	border: 1px solid #e0e0e0;
	border-radius: 3px;
	text-decoration: none;
	color: #333;
}
.yt-watch-pagination .page-numbers.current {
	background: #c4302b;
	color: #fff;
	border-color: #c4302b;
}
.yt-watch-pagination .page-numbers:hover:not(.current) {
	background: #f0f0f0;
}

/* Archive & taxonomy page headings */
.yt-watch-archive h1,
.yt-watch-taxonomy h1 {
	font-size: 1.75rem !important;
	line-height: 1.3 !important;
}
.yt-watch-category-section h2 {
	font-size: 1.2rem !important;
}

/* Prevent forced uppercase on plugin headings */
.yt-watch-single h1,
.yt-watch-archive h1,
.yt-watch-taxonomy h1,
.yt-watch-category-section h2,
.yt-watch-category-section h2 a,
.yt-watch-related h2,
.yt-watch-card-body h2,
.yt-watch-card-body h2 a,
.yt-watch-card-body h3,
.yt-watch-card-body h3 a {
	text-transform: none !important;
}

/* Responsive */
@media (max-width: 600px) {
	.yt-watch-grid {
		grid-template-columns: 1fr;
	}
}
