/**
 * Anash Status Swiper Styles
 * Based on React implementation - matching styling and functionality
 */

/* ==========================================
   Home Page Status Cards
   ========================================== */

.anash-status-swiper {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.anash-status-swiper .swiper-wrapper {
	display: flex;
}

.anash-status-swiper .swiper-slide {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	background-color: #1a1a1a;
	aspect-ratio: 1/1;
}

/* Status Card */
.status-card {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.status-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	z-index: 0;
	transition: transform 0.7s ease;
}

.status-card__image.active {
	opacity: 1;
	z-index: 10;
}

.status-card:hover .status-card__image {
	transform: scale(1.05);
}

.status-card.is-active .status-card__image {
	transform: scale(1.1);
}

/* Bottom gradient for progress bars visibility */
.status-card__gradient {
	position: absolute;
	inset: auto 0 0 0;
	height: 40px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
	z-index: 20;
	pointer-events: none;
}

/* Progress bars at bottom */
.status-card__progress {
	position: absolute;
	bottom: 6px;
	left: 8px;
	right: 8px;
	display: flex;
	gap: 4px;
	z-index: 30;
}

.status-card__progress-bar {
	flex: 1;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 2px;
	overflow: hidden;
	backdrop-filter: blur(4px);
}

.status-card__progress-fill {
	height: 100%;
	width: 100%;
	background-color: #fff;
	transform: scaleX(0);
	transform-origin: left;
	will-change: transform;
}

@media (min-width: 768px) {
	.status-card__progress-bar {
		height: 4px;
	}
}

/* Hero card (mobile) */
.status-card.is-hero {
	aspect-ratio: 4/5;
}

@media (min-width: 768px) {
	.status-card.is-hero {
		aspect-ratio: 1/1;
	}
}

/* ==========================================
   Mobile Layout Specific
   ========================================== */

@media (max-width: 575px) {
	.anash-status-swiper .swiper-slide {
		aspect-ratio: 1/1;
	}
}

/* ==========================================
   Swiper Navigation
   ========================================== */

.anash-status-swiper .swiper-button-prev,
.anash-status-swiper .swiper-button-next {
	display: none;
}

.anash-status-swiper .swiper-pagination {
	position: relative;
	margin-top: 20px;
	text-align: center;
}

.anash-status-swiper .swiper-pagination-bullet {
	width: 12px;
	height: 12px;
	background-color: #e0e0e0;
	opacity: 0.6;
	margin: 0 6px;
	border-radius: 50%;
	transition: all 0.3s ease;
	cursor: pointer;
}

.anash-status-swiper .swiper-pagination-bullet:hover {
	opacity: 0.8;
	transform: scale(1.1);
}

.anash-status-swiper .swiper-pagination-bullet-active {
	background: linear-gradient(135deg, #3369f6 0%, #1e4fd9 100%);
	opacity: 1;
	width: 14px;
	height: 14px;
	box-shadow: 0 2px 8px rgba(51, 105, 246, 0.4);
}

.anash-status-swiper .swiper-pagination-bullet-active-main {
	background: linear-gradient(135deg, #3369f6 0%, #1e4fd9 100%);
}

.anash-status-swiper .swiper-pagination-bullet-active-prev,
.anash-status-swiper .swiper-pagination-bullet-active-next {
	background-color: #6b9bf7;
	opacity: 0.8;
}

/* ==========================================
   Story Viewer (Popup)
   ========================================== */

.anash-story-viewer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background-color: #000;
	display: flex;
	flex-direction: column;
}

@media (min-width: 768px) {
	.anash-story-viewer {
		flex-direction: row;
		background-color: #1a1a1a;
	}
}

/* Desktop Close Button */
.asv-close-desktop {
	display: flex;
	padding: 0;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 99999;
	width: 44px;
	height: 44px;
	background-color: rgba(0, 0, 0, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
}

.asv-close-desktop:hover {
	background-color: rgba(0, 0, 0, 0.8);
	border-color: rgba(255, 255, 255, 0.5);
	transform: scale(1.1);
}

.asv-close-desktop svg {
	width: 20px;
	height: 20px;
}

/* Sidebar (Desktop) */
.asv-sidebar {
	display: none;
}

@media (min-width: 768px) {
	.asv-sidebar {
		display: flex;
		flex-direction: column;
		width: 120px;
		background-color: #1a1a1a;
		border-right: 1px solid rgba(255, 255, 255, 0.05);
		padding: 20px 0 20px;
		align-items: center;
		gap: 24px;
		overflow-y: auto;
		z-index: 40;
		height: 100%;
	}

	.asv-sidebar::-webkit-scrollbar {
		display: none;
	}
}

/* Thumbnail in sidebar */
.asv-thumb {
	position: relative;
	width: 78px;
	height: 78px;
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.3s ease;
	opacity: 0.6;
}

.asv-thumb:hover {
	opacity: 1;
}

.asv-thumb.active {
	transform: scale(1.1);
	opacity: 1;
	z-index: 10;
}

.asv-thumb-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.asv-thumb-bg {
	stroke: #5c5c5c;
}

.asv-thumb-fill {
	stroke: #fff;
	transition: opacity 0.1s ease;
}

.asv-thumb-img {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.1);
}

.asv-thumb-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.asv-thumb-overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.4);
	transition: background-color 0.3s ease;
}

.asv-thumb:hover .asv-thumb-overlay,
.asv-thumb.active .asv-thumb-overlay {
	background-color: rgba(0, 0, 0, 0.2);
}

/* Main Content Area */
.asv-main {
	position: relative;
	flex: 1;
	height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #000;
	overflow: hidden;
}

@media (min-width: 768px) {
	.asv-main {
		height: 100%;
		background-color: #1a1a1a;
	}
}

/* Mobile Close Button */
.asv-close-mobile {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 100;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.4);
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
	transition: all 0.2s ease;
	backdrop-filter: blur(4px);
}

.asv-close-mobile svg {
	width: 24px;
	height: 24px;
}

.asv-close-mobile:hover {
	background-color: rgba(0, 0, 0, 0.6);
	transform: scale(1.1);
}

@media (min-width: 768px) {
	.asv-close-mobile {
		display: none;
	}
}

/* Story Container */
.asv-story-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
}
.asv-story-container button:hover {
	background-color: transparent;
}

@media (min-width: 768px) {
	.asv-story-container {
		width: calc(100vw - 130px);
		max-width: calc(100vw - 130px);
		height: 100vh;
		border-radius: 8px;
		box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	}
}

/* Progress Bars */
.asv-progress-bars {
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 30;
	display: flex;
	gap: 6px;
	padding: 12px 12px 8px;
	width: 100%;
	max-width: 560px;
}

@media (min-width: 768px) {
	.asv-progress-bars {
		padding: 12px 12px 8px;
	}
}

.asv-progress-bar {
	flex: 1;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 9999px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.asv-progress-bar {
		height: 4px;
	}
}

.asv-progress-fill {
	height: 100%;
	background-color: #fff;
	transition: width 75ms linear;
}

/* Interaction Layer */
.asv-interaction {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
}

.asv-tap-prev,
.asv-tap-center,
.asv-tap-next {
	height: 100%;
	cursor: pointer;
}

/* Media Area */
.asv-media-area {
	position: relative;
	flex: 1;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 0;
	overflow: hidden;
	width: 100%;
}

/* Media */
.asv-media {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
	object-position: center;
	position: absolute;
	top: 50%;
	left: 50%;
	right: 0;
	bottom: 0;
	transform: translate(-50%, -50%);
}

/* Bottom Overlay */
.asv-bottom-overlay {
	position: relative;
	z-index: 20;
	padding: 16px 20px 24px;
	flex-shrink: 0;
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	text-align: left;
}

/* Icons Row */
.asv-icons-row {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
}

.asv-like-wrap {
	display: flex;
	align-items: center;
}

a.status__like.asv-like {
	position: relative !important;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	display: flex;
	align-items: center;
	top: unset;
	left: unset;
	bottom: 3px;
	gap: 3px;
}

.asv-like::before {
	content: "";
	display: inline-block;
	width: 24px;
	height: 24px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
}

.asv-like.liked::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e74c3c' stroke='%23e74c3c' stroke-width='2'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.asv-share-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.asv-share-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
}

.asv-share-btn img,
.asv-share-icon {
	width: 24px;
	height: 24px;
	filter: brightness(0) invert(1);
}

.asv-share-options {
	display: none;
	gap: 8px;
	align-items: center;
}

.asv-share-options.active {
	display: flex;
}

.asv-share-options button {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
}

.asv-share-options img {
	width: 22px;
	height: 22px;
}

/* Separator */
.asv-separator {
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.2);
	margin-bottom: 16px;
}

/* Content Box */
.asv-content-box {
	color: #fff;
}

.asv-caption {
	font-size: 14px;
	line-height: 1.6;
	font-weight: 400;
	opacity: 0.9;
	margin: 0;
}

@media (min-width: 768px) {
	.asv-caption {
		font-size: 15px;
	}
}

.asv-credit {
	font-size: 13px;
	font-style: italic;
	opacity: 0.7;
	margin: 8px 0 0;
}

/* Desktop Navigation */
.asv-nav-prev,
.asv-nav-next {
	display: none;
}

@media (min-width: 768px) {
	.asv-nav-prev,
	.asv-nav-next {
		display: block;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
		z-index: 30;
		color: rgba(255, 255, 255, 0.5);
		background: none;
		border: none;
		cursor: pointer;
		padding: 0;
		transition: color 0.2s ease;
	}

	.asv-nav-prev:hover,
	.asv-nav-next:hover {
		color: #fff;
		background-color: transparent;
	}

	.asv-nav-prev {
		left: 16px;
	}

	.asv-nav-next {
		right: 16px;
	}
}

@media (min-width: 1024px) {
	.asv-nav-prev {
		left: 32px;
	}

	.asv-nav-next {
		right: 32px;
	}
}

/* ==========================================
   Utility Classes
   ========================================== */

.no-scrollbar::-webkit-scrollbar {
	display: none;
}

.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}

/* ==========================================
   Mazal Tovs Swiper
   ========================================== */

.swiper-mazal-tovs {
	position: relative;
	width: 100%;
}

.swiper-mazal-tovs .swiper-slide {
	padding: 15px;
	background: #fff;
	border-radius: 8px;
}

.swiper-mazal-tovs .swiper-slide h6 {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
}

.swiper-mazal-tovs .swiper-slide h6 a {
	color: #3369f6;
	text-decoration: none;
}

.swiper-mazal-tovs .swiper-slide > div {
	font-size: 14px;
	line-height: 1.4;
	color: #333;
}

.swiper-mazal-tovs .swiper-pagination {
	position: relative;
	margin-top: 12px;
}

.swiper-mazal-tovs .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #ccc;
	opacity: 1;
}

.swiper-mazal-tovs .swiper-pagination-bullet-active {
	background: #3369f6;
}

/* ==========================================
   Featured Feed Swiper
   ========================================== */

.swiper-featured-feed {
	position: relative;
	width: 100%;
}

.swiper-featured-feed .swiper-slide {
	width: auto;
}

.swiper-featured-feed .feed-image-link {
	border-radius: 8px;
	overflow: hidden;
}

.swiper-featured-feed .feed-image-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ==========================================
   Featured Feed Popup Swiper
   ========================================== */

.swiper-featured-feed-popup {
	position: relative;
	width: 100%;
}

.swiper-featured-feed-popup .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
}

.swiper-featured-feed-popup .GP-status__img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
}

.swiper-featured-feed-popup .swiper-button-prev,
.swiper-featured-feed-popup .swiper-button-next {
	color: #fff;
	width: 40px;
	height: 40px;
}

.swiper-featured-feed-popup .swiper-button-prev::after,
.swiper-featured-feed-popup .swiper-button-next::after {
	font-size: 20px;
}

.swiper-featured-feed-popup .swiper-pagination {
	position: relative;
	margin-top: 16px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.swiper-featured-feed-popup .swiper-pagination-bullet {
	width: 24px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.3);
	opacity: 1;
	transition: all 0.3s ease;
}

.swiper-featured-feed-popup .swiper-pagination-bullet-active {
	background: #fff;
}

.swiper-featured-feed-popup .swiper-pagination-bullet.line-active {
	background: #3369f6;
	position: relative;
	overflow: hidden;
}

.swiper-featured-feed-popup .swiper-pagination-bullet.line-active::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: #fff;
	animation: lineProgress 3s linear forwards;
}

@keyframes lineProgress {
	0% {
		width: 0%;
	}
	100% {
		width: 100%;
	}
}

/* ==========================================
   HB Podcasts Swiper (YouTube/Vimeo)
   ========================================== */

.swiper-hb-podcasts {
	position: relative;
	width: 100%;
	overflow: visible;
}

.swiper-hb-podcasts .swiper-slide {
	width: auto;
	max-width: 280px;
}

.swiper-hb-podcasts .swiper-slide.selected {
	z-index: 10;
}

.swiper-hb-podcasts .video-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #000;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swiper-hb-podcasts .video-wrapper iframe,
.swiper-hb-podcasts .video-wrapper video {
	width: 100%;
	height: 100%;
}

.swiper-hb-podcasts .video-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 11;
	display: flex;
	align-items: center;
	justify-content: center;
}

.swiper-hb-podcasts .video-close:hover {
	background: #fff;
}

.swiper-hb-podcasts .podcast__link {
	display: block;
}

.swiper-hb-podcasts .podcast__link img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}
