/**
 * Stili CSS per YouTube Channel Feed
 */

/* Container principale */
.ycf-feed-container {
	width: 100%;
	margin: 20px 0;
}

/* Layout Grid */
.ycf-grid {
	display: grid;
	gap: 20px;
}

/* Layout Lista */
.ycf-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ycf-list .ycf-video-item {
	display: flex;
	align-items: center;
}

.ycf-list .ycf-video-thumbnail {
	flex-shrink: 0;
	width: 300px;
	margin-right: 20px;
}

.ycf-list .ycf-video-info {
	flex: 1;
}

/* Item video */
.ycf-video-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ycf-video-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.ycf-video-link {
	text-decoration: none;
	color: inherit;
	display: block;
}

/* Thumbnail */
.ycf-video-thumbnail {
	position: relative;
	overflow: hidden;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	background: #000;
}

.ycf-video-thumbnail img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Play button */
.ycf-play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70px;
	height: 70px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.ycf-play-button::before {
	content: '';
	width: 0;
	height: 0;
	border-left: 25px solid #000;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
	margin-left: 3px;
}

.ycf-video-item:hover .ycf-play-button {
	transform: translate(-50%, -50%) scale(1.1);
	background: #fff;
}

/* Info video */
.ycf-video-info {
	padding: 15px;
}

.ycf-video-title {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

.ycf-video-date {
	display: block;
	font-size: 13px;
	color: #666;
	margin-bottom: 10px;
}

.ycf-video-description {
	margin: 0;
	font-size: 14px;
	color: #555;
	line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
	.ycf-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
	}
	
	.ycf-list .ycf-video-item {
		flex-direction: column;
	}
	
	.ycf-list .ycf-video-thumbnail {
		width: 100%;
		margin-right: 0;
		margin-bottom: 15px;
	}
}

@media (max-width: 480px) {
	.ycf-grid {
		grid-template-columns: 1fr !important;
	}
	
	.ycf-video-title {
		font-size: 14px;
	}
	
	.ycf-play-button {
		width: 50px;
		height: 50px;
	}
	
	.ycf-play-button::before {
		border-left-width: 18px;
		border-top-width: 11px;
		border-bottom-width: 11px;
	}
}
