/**
 * WP Sayılı Manşet Slider Stylesheet
 * Turkish News Portal Style Numbered Slider
 */

/* CSS Variables & Theme Defaults */
.wpsm-container {
	--wpsm-primary: #e50914;
	--wpsm-primary-hover: #b91c1c;
	--wpsm-bg: #0f172a;
	--wpsm-nav-bg: #1e293b;
	--wpsm-text-light: #ffffff;
	--wpsm-text-muted: #94a3b8;
	--wpsm-active-glow: rgba(229, 9, 20, 0.4);
	--wpsm-radius: 12px;
	--wpsm-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	
	position: relative;
	width: 100%;
	max-width: 1200px;
	margin: 20px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	background-color: var(--wpsm-bg);
	border-radius: var(--wpsm-radius);
	overflow: hidden;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
}

.wpsm-container * {
	box-sizing: border-box;
}

/* Theme Presets */
.wpsm-container.wpsm-theme-red {
	--wpsm-primary: #e50914;
	--wpsm-primary-hover: #dc2626;
	--wpsm-active-glow: rgba(229, 9, 20, 0.5);
}

.wpsm-container.wpsm-theme-dark {
	--wpsm-primary: #3b82f6;
	--wpsm-primary-hover: #2563eb;
	--wpsm-bg: #090d16;
	--wpsm-nav-bg: #111827;
	--wpsm-active-glow: rgba(59, 130, 246, 0.5);
}

.wpsm-container.wpsm-theme-navy {
	--wpsm-primary: #f59e0b;
	--wpsm-primary-hover: #d97706;
	--wpsm-bg: #0f172a;
	--wpsm-nav-bg: #1e293b;
	--wpsm-active-glow: rgba(245, 158, 11, 0.5);
}

/* Main Viewport Container */
.wpsm-main-viewport {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 340px;
	max-height: 560px;
	overflow: hidden;
	background-color: #000000;
}

/* Slide Element */
.wpsm-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--wpsm-transition), transform var(--wpsm-transition);
	transform: scale(1.02);
	z-index: 1;
}

.wpsm-slide.wpsm-active {
	opacity: 1;
	visibility: visible;
	transform: scale(1);
	z-index: 2;
}

/* Slide Link */
.wpsm-slide-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: var(--wpsm-text-light);
	outline: none;
}

/* Image & Overlay */
.wpsm-image-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.wpsm-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 6s ease;
}

.wpsm-slide.wpsm-active .wpsm-image {
	transform: scale(1.05);
}

.wpsm-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		180deg, 
		rgba(0, 0, 0, 0.1) 0%, 
		rgba(0, 0, 0, 0.4) 40%, 
		rgba(0, 0, 0, 0.92) 100%
	);
}

/* Content overlay on news image */
.wpsm-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 28px 32px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: auto;
}

.wpsm-badge {
	align-self: flex-start;
	background-color: var(--wpsm-primary);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	padding: 5px 14px;
	border-radius: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.wpsm-title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.3;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.wpsm-slide-link:hover .wpsm-title {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wpsm-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 90%;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.wpsm-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 4px;
	font-size: 13px;
	color: var(--wpsm-text-muted);
}

.wpsm-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #cbd5e1;
}

.wpsm-icon {
	width: 14px;
	height: 14px;
}

.wpsm-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	transition: all 0.25s ease;
}

.wpsm-slide-link:hover .wpsm-read-more {
	background: var(--wpsm-primary);
	border-color: var(--wpsm-primary);
	transform: translateX(4px);
}

.wpsm-icon-arrow {
	width: 14px;
	height: 14px;
	transition: transform 0.2s ease;
}

/* Progress Bar */
.wpsm-progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	z-index: 5;
}

.wpsm-progress-fill {
	height: 100%;
	width: 0%;
	background-color: var(--wpsm-primary);
	box-shadow: 0 0 8px var(--wpsm-primary);
}

.wpsm-container.wpsm-playing .wpsm-progress-fill {
	transition: width linear;
}

/* Nav prev/next buttons for touch/mobile */
.wpsm-nav-prev,
.wpsm-nav-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	transition: all 0.25s ease;
}

.wpsm-main-viewport:hover .wpsm-nav-prev,
.wpsm-main-viewport:hover .wpsm-nav-next {
	opacity: 0.85;
}

.wpsm-nav-prev:hover,
.wpsm-nav-next:hover {
	opacity: 1 !important;
	background: var(--wpsm-primary);
	border-color: var(--wpsm-primary);
}

.wpsm-nav-prev { left: 16px; }
.wpsm-nav-next { right: 16px; }

.wpsm-nav-prev svg,
.wpsm-nav-next svg {
	width: 20px;
	height: 20px;
}

/* Numbered Navigation Grid (1 - 15) */
.wpsm-numbers-nav {
	background-color: var(--wpsm-nav-bg);
	padding: 10px 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wpsm-numbers-grid {
	display: grid;
	grid-template-columns: repeat(15, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
}

.wpsm-num-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 42px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 6px;
	color: #94a3b8;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	padding: 0;
}

.wpsm-num-text {
	position: relative;
	z-index: 2;
}

.wpsm-num-indicator {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background-color: transparent;
	border-radius: 0 0 6px 6px;
	transition: background-color 0.2s ease;
}

/* Tooltip on hover */
.wpsm-num-tooltip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 50%;
	transform: translateX(-50%) translateY(5px);
	background: #020617;
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 6px;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.15);
	z-index: 10;
}

.wpsm-num-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #020617 transparent transparent transparent;
}

/* Hover & Active States */
.wpsm-num-btn:hover {
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.3);
	transform: translateY(-2px);
}

.wpsm-num-btn:hover .wpsm-num-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.wpsm-num-btn.wpsm-active {
	background: var(--wpsm-primary);
	color: #ffffff;
	border-color: var(--wpsm-primary);
	box-shadow: 0 4px 12px var(--wpsm-active-glow);
}

.wpsm-num-btn.wpsm-active .wpsm-num-indicator {
	background-color: #ffffff;
}

/* Responsive Rules */
@media (max-width: 1024px) {
	.wpsm-title {
		font-size: 22px;
	}
	.wpsm-content {
		padding: 20px 24px;
	}
}

@media (max-width: 768px) {
	.wpsm-main-viewport {
		min-height: 360px;
		aspect-ratio: 4 / 3;
	}
	.wpsm-title {
		font-size: 19px;
	}
	.wpsm-excerpt {
		display: none;
	}
	.wpsm-numbers-grid {
		grid-template-columns: repeat(8, minmax(0, 1fr));
		grid-auto-flow: dense;
	}
	.wpsm-num-btn {
		height: 38px;
		font-size: 14px;
	}
	.wpsm-num-tooltip {
		display: none; /* Hide tooltips on touch screens */
	}
	.wpsm-nav-prev, .wpsm-nav-next {
		opacity: 0.9;
	}
}

@media (max-width: 480px) {
	.wpsm-main-viewport {
		min-height: 320px;
	}
	.wpsm-content {
		padding: 16px;
	}
	.wpsm-title {
		font-size: 16px;
	}
	.wpsm-numbers-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
	.wpsm-num-btn {
		height: 36px;
		font-size: 13px;
	}
}
