/**
 * Haber Focus - Enterprise Video Oynatıcı & Kayan PiP Stilleri
 * 
 * @package Haber_Focus
 */

/* ==========================================================================
   1. Video Oynatıcı Taşıyıcı & Facade
   ========================================================================== */
.hf-video-wrapper {
	position: relative;
	width: 100%;
	margin: 24px 0 28px 0;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: box-shadow 0.3s ease;
}

.hf-video-wrapper:hover {
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hf-video-aspect {
	position: relative;
	width: 100%;
	padding-top: 56.25%; /* 16:9 Aspect Ratio */
	background: #09090b;
	overflow: hidden;
}

.hf-video-aspect iframe,
.hf-video-aspect video,
.hf-video-aspect object,
.hf-video-aspect embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: inherit;
}

/* Lazy Video Facade (Tıkla-Oynat Önizleme) */
.hf-video-facade {
	position: absolute;
	inset: 0;
	cursor: pointer;
	z-index: 10;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hf-video-facade::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
	transition: background 0.3s ease;
}

.hf-video-facade:hover::before {
	background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
}

/* Parlak Lüks Play Butonu */
.hf-video-play-btn {
	position: relative;
	z-index: 2;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: rgba(220, 38, 38, 0.95);
	box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7), 0 8px 25px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
	animation: hfPlayPulse 2s infinite;
}

.hf-video-facade:hover .hf-video-play-btn {
	transform: scale(1.12);
	background: #ef4444;
}

.hf-video-play-btn svg {
	width: 32px;
	height: 32px;
	fill: #ffffff;
	margin-left: 4px;
}

@keyframes hfPlayPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7), 0 8px 25px rgba(0, 0, 0, 0.4);
	}
	70% {
		box-shadow: 0 0 0 18px rgba(239, 68, 68, 0), 0 8px 25px rgba(0, 0, 0, 0.4);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0), 0 8px 25px rgba(0, 0, 0, 0.4);
	}
}

/* Süre ve Rozet Çubuğu */
.hf-video-facade-meta {
	position: absolute;
	bottom: 16px;
	left: 16px;
	right: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
}

.hf-video-duration-pill {
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(8px);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.hf-video-facade-tag {
	background: rgba(220, 38, 38, 0.9);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* ==========================================================================
   2. Video Kontrol ve Araç Çubuğu (Toolbar)
   ========================================================================== */
.hf-video-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: #18181b;
	color: #a1a1aa;
	font-size: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hf-video-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hf-video-tool-btn {
	background: transparent;
	border: none;
	color: #d4d4d8;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.hf-video-tool-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

/* ==========================================================================
   3. Kayan PiP Mini Oynatıcı (Sticky Floating Player)
   ========================================================================== */
.hf-video-wrapper.is-floating {
	position: fixed !important;
	bottom: 24px !important;
	right: 24px !important;
	width: 360px !important;
	max-width: calc(100vw - 32px) !important;
	z-index: 99999 !important;
	margin: 0 !important;
	border-radius: 12px !important;
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
	animation: hfSlideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	border: 2px solid rgba(255, 255, 255, 0.15);
}

@keyframes hfSlideInUp {
	from {
		opacity: 0;
		transform: translateY(40px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.hf-pip-controls {
	display: none;
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 30;
	gap: 6px;
}

.hf-video-wrapper.is-floating .hf-pip-controls {
	display: flex;
}

.hf-pip-btn {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hf-pip-btn:hover {
	background: #ef4444;
	transform: scale(1.1);
}

.hf-pip-btn-expand:hover {
	background: #2563eb;
}

/* ==========================================================================
   4. Sinema Modu (Theater Mode / Lights Off)
   ========================================================================== */
body.hf-cinema-active {
	overflow: hidden;
}

.hf-cinema-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	z-index: 99990;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
	backdrop-filter: blur(8px);
}

body.hf-cinema-active .hf-cinema-overlay {
	opacity: 1;
	pointer-events: auto;
}

.hf-video-wrapper.is-cinema {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	width: 90vw !important;
	max-width: 1200px !important;
	z-index: 99995 !important;
	margin: 0 !important;
	box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8) !important;
}

/* ==========================================================================
   5. Video Rozetleri & Vitrin Stilleri
   ========================================================================== */
.hf-video-badge-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: linear-gradient(135deg, #dc2626, #991b1b);
	color: #ffffff;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 9px;
	border-radius: 4px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.hf-video-card-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0, 0, 0, 0.85);
	backdrop-filter: blur(4px);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	gap: 4px;
	z-index: 2;
}

.hf-video-card-play-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	opacity: 0.85;
	transition: opacity 0.3s ease, background 0.3s ease;
	z-index: 1;
}

.hf-video-card-play-icon span {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(220, 38, 38, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-card:hover .hf-video-card-play-icon,
.video-archive-card:hover .hf-video-card-play-icon {
	opacity: 1;
	background: rgba(0, 0, 0, 0.4);
}

.video-card:hover .hf-video-card-play-icon span,
.video-archive-card:hover .hf-video-card-play-icon span {
	transform: scale(1.15);
	background: #ef4444;
}

/* ==========================================================================
   6. Mobil Uyumluluk (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
	.hf-video-wrapper.is-floating {
		bottom: 12px !important;
		right: 12px !important;
		width: calc(100vw - 24px) !important;
		max-width: 320px !important;
	}

	.hf-video-play-btn {
		width: 60px;
		height: 60px;
	}

	.hf-video-play-btn svg {
		width: 24px;
		height: 24px;
	}

	.hf-video-wrapper.is-cinema {
		width: 95vw !important;
	}
}
