/**
 * Hepdolu Yuvarlak "Hikaye / Koleksiyon" Balonları & Tam Ekran Story Oynatıcı Stilleri
 * Anasayfa, Kategori, Ürün ve 404 Sayfalarıyla %100 Uyumlu
 */

.hd-stories-wrap {
	--hds-orange: #f26522;
	--hds-navy: var(--primary-color, #446084);
	--hds-text: #1e293b;
	position: relative;
	width: 100%;
	z-index: 15;
}

/* Header Altı Şerit Görünümü (Anasayfa, Kategori, Ürün & Sayfalar) */
.hd-stories-wrap--header-strip {
	background: #ffffff;
	border-bottom: 1px solid #ebeff5;
	padding: 14px 0 12px;
	box-shadow: 0 4px 18px -10px rgba(15, 23, 42, 0.08);
}

/* Kısa Kod [hepdolu_hikayeler] & 404 İçi Kart Görünümü */
.hd-stories-wrap--card,
.hd-stories-wrap--inline-404 {
	margin-bottom: 28px;
}

.hd-stories-wrap--card .hd-stories-carousel,
.hd-stories-wrap--inline-404 .hd-stories-carousel {
	background: #ffffff;
	border: 1px solid #e6ebf2;
	border-radius: 20px;
	padding: 18px 20px 14px;
	box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.1);
}

.hd-stories-container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 14px;
}

.hd-stories-wrap--inline-404 .hd-stories-container {
	max-width: 1140px;
	padding: 0;
}

.hd-stories-carousel {
	position: relative;
	display: flex;
	align-items: center;
}

.hd-stories-scroller {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	width: 100%;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 4px 4px 2px;
}

.hd-stories-scroller::-webkit-scrollbar {
	display: none;
}

/* Tekil Hikaye Balonu */
.hd-story-bubble {
	flex: 0 0 auto;
	width: 86px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none !important;
	scroll-snap-align: start;
	cursor: pointer;
	user-select: none;
}

.hd-story-bubble__ring {
	position: relative;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	padding: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f26522 0%, #ffb703 52%, #e11d48 100%);
	margin-bottom: 9px;
	transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}

.hd-story-bubble__ring--new {
	background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 50%, #446084 100%);
}

.hd-story-bubble__ring--sale {
	background: linear-gradient(135deg, #16a34a 0%, #4ade80 55%, #0d9488 100%);
}

.hd-story-bubble__ring--berry {
	background: linear-gradient(135deg, #e11d48 0%, #fb7185 50%, #f97316 100%);
}

.hd-story-bubble__ring--navy {
	background: linear-gradient(135deg, #2b4465 0%, #446084 55%, #1188e3 100%);
}

/* İzlenmiş Hikaye Halkası */
.hd-story-bubble.is-seen .hd-story-bubble__ring {
	background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

/* Şu An Bulunulan Kategori Vurgusu */
.hd-story-bubble.is-current .hd-story-bubble__ring {
	box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.24), 0 8px 20px rgba(242, 101, 34, 0.28);
	transform: translateY(-2px);
}

.hd-story-bubble:hover .hd-story-bubble__ring {
	transform: translateY(-4px) scale(1.06);
	box-shadow: 0 12px 24px -6px rgba(242, 101, 34, 0.32);
}

.hd-story-bubble__avatar {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #ffffff;
	background: #f8fafc;
	display: block;
}

.hd-story-bubble__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.hd-story-bubble:hover .hd-story-bubble__avatar img {
	transform: scale(1.08);
}

/* Balon Altı Mikro Rozet */
.hd-story-bubble__badge {
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--hds-orange);
	color: #ffffff;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.3px;
	line-height: 1.1;
	padding: 2.5px 7px;
	border-radius: 999px;
	border: 2px solid #ffffff;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.hd-story-bubble__ring--new .hd-story-bubble__badge { background: #0284c7; }
.hd-story-bubble__ring--sale .hd-story-bubble__badge { background: #16a34a; }
.hd-story-bubble__ring--berry .hd-story-bubble__badge { background: #e11d48; }
.hd-story-bubble__ring--navy .hd-story-bubble__badge { background: #446084; }

.hd-story-bubble__label {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--hds-text);
	line-height: 1.25;
	max-width: 88px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.18s ease;
}

.hd-story-bubble.is-current .hd-story-bubble__label,
.hd-story-bubble:hover .hd-story-bubble__label {
	color: var(--hds-orange);
}

/* Masaüstü Sağ/Sol Kaydırma Okları */
.hd-stories-nav {
	position: absolute;
	top: 38px;
	transform: translateY(-50%);
	z-index: 6;
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: #ffffff !important;
	border: 1px solid #dce3ee !important;
	color: #1e293b !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
	transition: all 0.18s ease;
}

.hd-stories-nav[hidden] {
	display: none !important;
}

.hd-stories-nav:hover {
	background: var(--hds-orange) !important;
	border-color: var(--hds-orange) !important;
	color: #ffffff !important;
}

.hd-stories-nav--prev { left: -10px; }
.hd-stories-nav--next { right: -10px; }

/* ==========================================================================
   INSTAGRAM & TRENDYOL APP TARZI TAM EKRAN STORY OYNATICI (MODAL)
   ========================================================================== */
.hd-story-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(10, 15, 28, 0.88);
	backdrop-filter: blur(12px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	animation: hdsModalIn 0.22s ease;
}

.hd-story-modal[hidden] {
	display: none !important;
}

@keyframes hdsModalIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hd-story-player {
	position: relative;
	width: 100%;
	max-width: 400px;
	height: min(84vh, 690px);
	border-radius: 24px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	user-select: none;
}

.hd-story-player__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.02);
	animation: hdsKenBurns 6s ease-out forwards;
}

@keyframes hdsKenBurns {
	from { transform: scale(1); }
	to { transform: scale(1.09); }
}

.hd-story-player__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(10, 15, 28, 0.72) 0%,
		rgba(10, 15, 28, 0.08) 34%,
		rgba(10, 15, 28, 0.35) 60%,
		rgba(10, 15, 28, 0.94) 100%
	);
	pointer-events: none;
}

/* Üst İlerleme Çubukları & Başlık */
.hd-story-player__top {
	position: relative;
	z-index: 5;
	padding: 14px 16px 0;
}

.hd-story-progress-row {
	display: flex;
	gap: 5px;
	margin-bottom: 12px;
}

.hd-story-prog {
	flex: 1;
	height: 3px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 99px;
	overflow: hidden;
}

.hd-story-prog__bar {
	height: 100%;
	width: 0%;
	background: #ffffff;
	border-radius: 99px;
}

.hd-story-prog.is-done .hd-story-prog__bar {
	width: 100%;
}

.hd-story-player__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hd-story-player__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
}

.hd-story-player__brand img {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #f26522;
}

.hd-story-player__brand strong {
	display: block;
	font-size: 14px;
	line-height: 1.2;
}

.hd-story-player__brand span {
	font-size: 11px;
	color: #fed7aa;
	font-weight: 700;
}

.hd-story-player__close {
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.16) !important;
	border: none !important;
	color: #ffffff !important;
	font-size: 20px !important;
	line-height: 1 !important;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hd-story-player__close:hover {
	background: rgba(255, 255, 255, 0.3) !important;
}

/* Sağ / Sol Dokunma Bölgeleri */
.hd-story-tap {
	position: absolute;
	top: 72px;
	bottom: 155px;
	z-index: 4;
	width: 42%;
	cursor: pointer;
}
.hd-story-tap--prev { left: 0; }
.hd-story-tap--next { right: 0; }

/* Alt Kampanya İçeriği & Koleksiyona Git Butonu */
.hd-story-player__bottom {
	position: relative;
	z-index: 5;
	padding: 20px 22px 24px;
	color: #ffffff;
}

.hd-story-player__pill {
	display: inline-block;
	background: #f26522;
	color: #ffffff;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 0.5px;
	padding: 4px 11px;
	border-radius: 999px;
	margin-bottom: 8px;
}

.hd-story-player__bottom h3 {
	color: #ffffff !important;
	font-size: 22px;
	line-height: 1.22;
	font-weight: 800;
	margin: 0 0 7px !important;
}

.hd-story-player__bottom p {
	color: rgba(255, 255, 255, 0.86);
	font-size: 13.5px;
	line-height: 1.48;
	margin: 0 0 16px !important;
}

.hd-story-player__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: linear-gradient(135deg, #f26522 0%, #ff8438 100%);
	color: #ffffff !important;
	font-size: 15px;
	font-weight: 800;
	padding: 14px 20px;
	border-radius: 999px;
	text-decoration: none !important;
	box-shadow: 0 10px 24px rgba(242, 101, 34, 0.45);
	transition: transform 0.18s ease;
}

.hd-story-player__cta:hover {
	transform: translateY(-2px);
}

/* Dış Masaüstü Okları */
.hd-story-modal__arrow {
	width: 44px !important;
	height: 44px !important;
	padding: 0 !important;
	margin: 0 16px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.14) !important;
	border: 1px solid rgba(255, 255, 255, 0.25) !important;
	color: #ffffff !important;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.18s ease;
}

.hd-story-modal__arrow:hover {
	background: #f26522 !important;
	border-color: #f26522 !important;
}

/* Mobil Uyumluluk */
@media (max-width: 768px) {
	.hd-stories-wrap--header-strip {
		padding: 11px 0 9px;
	}
	.hd-stories-scroller {
		gap: 12px;
		justify-content: flex-start;
	}
	.hd-story-bubble {
		width: 72px;
	}
	.hd-story-bubble__ring {
		width: 66px;
		height: 66px;
		margin-bottom: 7px;
	}
	.hd-story-bubble__label {
		font-size: 11.5px;
		max-width: 72px;
	}
	.hd-stories-nav,
	.hd-story-modal__arrow {
		display: none !important;
	}
	.hd-story-modal {
		padding: 0;
	}
	.hd-story-player {
		max-width: 100%;
		height: 100vh;
		border-radius: 0;
	}
}
