/**
 * Femsoft Category Stories - Frontend Styles
 * Instagram story tarzı dairesel kategori widget'ı.
 */

.fcs-stories-wrapper {
	width: 100%;
	box-sizing: border-box;
}

.fcs-stories-wrapper *,
.fcs-stories-wrapper *::before,
.fcs-stories-wrapper *::after {
	box-sizing: border-box;
}

.fcs-stories {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	width: 100%;
}

/* Layout: Yatay Kaydırma (Mobil dostu) */
.fcs-stories--scroll {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.fcs-stories--scroll::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

/* Layout: Wrap (Satır Atlama) */
.fcs-stories--wrap {
	flex-wrap: wrap;
	justify-content: flex-start;
}

/* Layout: Center (Ortala) */
.fcs-stories--center {
	flex-wrap: wrap;
	justify-content: center;
}

/* Tek öğe (story item) — link */
.fcs-story__item {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: transform 0.2s ease;
	max-width: 96px;
	min-width: 56px;
}

.fcs-story__item:hover,
.fcs-story__item:focus,
.fcs-story__item:visited {
	text-decoration: none;
	color: inherit;
}

.fcs-story__item:focus-visible {
	outline: 2px solid #013466;
	outline-offset: 4px;
	border-radius: 8px;
}

/* Avatar (dairesel halka konteyner) */
.fcs-story__avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	padding: 2px;
	border-radius: 50%;
	background: #013466;
	transition: transform 0.25s ease, background 0.25s ease;
	flex-shrink: 0;
}

/* İç boşluk (halka ile görsel arası beyaz çerçeve) */
.fcs-story__avatar-inner {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background: #f5f5f5;
	border: 2px solid #ffffff;
	position: relative;
}

/* Görsel */
.fcs-story__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 50%;
}

/* Placeholder (görsel yoksa) */
.fcs-story__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #9ca3af;
	background: #f5f5f5;
	border-radius: 50%;
}

.fcs-story__placeholder svg {
	width: 40%;
	height: 40%;
}

/* Başlık */
.fcs-story__title {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	color: #1a1a1a;
	max-width: 96px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.fcs-story__count {
	display: inline-block;
	margin-left: 2px;
	font-size: 11px;
	color: #6b7280;
	font-weight: 400;
}

/* Editor: boş durum mesajı */
.fcs-empty {
	padding: 20px;
	text-align: center;
	color: #6b7280;
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 8px;
	font-size: 14px;
}

/* Responsive: Tablet */
@media (max-width: 1024px) {
	.fcs-story__avatar {
		width: 64px;
		height: 64px;
	}

	.fcs-story__title {
		font-size: 12px;
		max-width: 80px;
	}

	.fcs-story__item {
		max-width: 80px;
	}
}

/* Responsive: Mobil */
@media (max-width: 600px) {
	.fcs-story__avatar {
		width: 56px;
		height: 56px;
	}

	.fcs-story__title {
		font-size: 11px;
		max-width: 72px;
		margin-top: 6px;
	}

	.fcs-story__item {
		max-width: 72px;
		min-width: 48px;
	}

	.fcs-stories {
		gap: 10px;
	}
}

/* Reduced motion desteği */
@media (prefers-reduced-motion: reduce) {
	.fcs-story__avatar,
	.fcs-story__title,
	.fcs-story__item {
		transition: none !important;
	}

	.fcs-stories--scroll {
		scroll-behavior: auto;
	}
}

/* RTL desteği */
[dir="rtl"] .fcs-stories {
	direction: rtl;
}
