/**
 * Delight Slider Styles
 * 
 * CSS styles for the Delight Slider component
 * Split-layout with floating content card
 * 
 * @package Graceful Delight Blog
 * @since 1.0.0
 */

/* ==========================================================================
   Delight Slider Base Styles
   ========================================================================== */

.delight-slider-wrapper {
	position: relative;
	width: 100%;
	background: #ffffff;
	padding: 60px 0;
	margin: 0 0 40px 0;
	overflow: hidden;
}

.delight-slider-container {
	position: relative;
	width: 100%;
	max-width: 1160px;
	height: 400px;
	margin: 0 auto;
	overflow: visible;
}

/* ==========================================================================
   Owl Carousel Overrides
   ========================================================================== */

.delight-slider-container .owl-carousel {
	width: 100%;
}

.delight-slider-container .owl-stage-outer {
	overflow: hidden !important;
	height: 400px;
	width: 100%;
}

.delight-slider-container .owl-stage {
	display: flex;
	height: 400px;
	left: 0;
}

.delight-slider-container .owl-item {
	height: 400px;
}

.delight-slider-container .owl-nav {
	display: none !important;
}

/* ==========================================================================
   Slide Item - Split Layout
   ========================================================================== */

.delight-slider-item {
	position: relative;
	display: block;
	height: 400px;
	width: 100%;
}

/* ==========================================================================
   Content Card - Floating Left
   ========================================================================== */

.delight-slider-card {
	position: absolute;
	left: 40px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: #ffffff;
	padding: 40px 35px;
	max-width: 400px;
	width: 100%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
}

/* Author and Category Meta */
.delight-slider-meta-top {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	font-size: 13px;
	color: #666;
	flex-wrap: wrap;
}

.delight-slider-meta-top .author-avatar {
	width: 28px !important;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

.delight-slider-meta-top .author-name {
	font-weight: 600;
	color: #333;
}

.delight-slider-meta-top .meta-separator {
	color: #999;
}

.delight-slider-meta-top .category-name {
	font-weight: 600;
	color: #333;
}

/* Title */
.delight-slider-title {
	font-size: 28px;
	font-weight: 400;
	line-height: 1.3;
	margin: 0 0 18px 0;
	color: #1a1a1a;
}

.delight-slider-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.3s ease;
}

.delight-slider-title a:hover {
	color: #666;
}

/* Bottom row with date and arrows */
.delight-slider-bottom-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 10px;
}

/* Date */
.delight-slider-date {
	font-size: 11px;
	color: #999;
	letter-spacing: 1px;
	margin-bottom: 0;
}

/* Navigation Arrows in Card */
.delight-slider-nav-arrows {
	display: flex;
	gap: 12px;
	margin-left: auto;
}

.delight-nav-btn {
	width: 44px;
	height: 44px;
	background: #f5f5f5;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	color: #333;
}

.delight-nav-btn:hover {
	background: #333;
	color: #ffffff;
}

.delight-nav-btn svg {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   Featured Image - Right Side
   ========================================================================== */

.delight-slider-image {
	position: absolute;
	right: 0;
	top: 0;
	width: 70%;
	height: 400px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 1;
}

/* ==========================================================================
   Dot Indicators - Bottom Center
   ========================================================================== */

.delight-slider-dots {
	position: absolute;
	bottom: -40px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 10px;
	z-index: 15;
}

.delight-slider-dots .owl-dot {
	width: 8px;
	height: 8px;
	background: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.delight-slider-dots .owl-dot:hover {
	background: rgba(0, 0, 0, 0.5);
}

.delight-slider-dots .owl-dot.active {
	background: #333;
	width: 10px;
	height: 10px;
}

/* ==========================================================================
   Animation States
   ========================================================================== */

/* Initial state for text elements */
.delight-slider-meta-top,
.delight-slider-title,
.delight-slider-date,
.delight-slider-nav-arrows {
	opacity: 1;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet styles (768px - 1023px) */
@media (max-width: 1023px) {
	.delight-slider-container {
		max-width: 900px;
		height: 380px;
	}
	
	.delight-slider-container .owl-stage-outer,
	.delight-slider-container .owl-stage,
	.delight-slider-container .owl-item,
	.delight-slider-item,
	.delight-slider-image {
		height: 380px;
	}
	
	.delight-slider-card {
		max-width: 350px;
		padding: 35px 30px;
		left: 30px;
	}
	
	.delight-slider-title {
		font-size: 24px;
	}
	
	.delight-slider-image {
		width: 60%;
	}
}

/* Mobile styles (below 768px) */
@media (max-width: 767px) {
	.delight-slider-wrapper {
		padding: 40px 15px;
	}
	
	.delight-slider-container {
		height: auto;
		min-height: 500px;
	}
	
	.delight-slider-container .owl-stage-outer,
	.delight-slider-container .owl-stage,
	.delight-slider-container .owl-item {
		height: auto;
		min-height: 500px;
	}
	
	.delight-slider-item {
		height: auto;
		min-height: 500px;
		display: flex;
		flex-direction: column;
	}
	
	.delight-slider-card {
		position: relative;
		left: 0;
		top: 0;
		transform: none;
		max-width: 100%;
		width: calc(100% - 30px);
		margin: -30px auto 0;
		padding: 30px 25px;
		z-index: 10;
	}
	
	.delight-slider-title {
		font-size: 22px;
		margin-bottom: 15px;
	}
	
	.delight-slider-meta-top {
		font-size: 12px;
		margin-bottom: 15px;
	}
	
	.delight-slider-meta-top .author-avatar {
		width: 26px !important;
		height: 26px;
	}
	
	.delight-slider-image {
		position: relative;
		right: 0;
		width: 100%;
		height: 300px;
	}
	
	.delight-nav-btn {
		width: 40px;
		height: 40px;
	}
	
	.delight-nav-btn svg {
		width: 16px;
		height: 16px;
	}
	
	.delight-slider-dots {
		bottom: 0px;
	}
}

/* Extra small mobile */
@media (max-width: 480px) {
	.delight-slider-card {
		padding: 25px 20px;
	}
	
	.delight-slider-title {
		font-size: 20px;
	}
	
	.delight-slider-meta-top {
		font-size: 11px;
	}
	
	.delight-slider-image {
		height: 250px;
	}
	
	.delight-nav-btn {
		width: 36px;
		height: 36px;
	}
	
	.delight-slider-dots .owl-dot {
		width: 7px;
		height: 7px;
	}
	
	.delight-slider-dots .owl-dot.active {
		width: 9px;
		height: 9px;
	}
}

/* ==========================================================================
   Empty/Error States
   ========================================================================== */

.delight-slider-empty,
.delight-slider-error {
	padding: 40px;
	text-align: center;
	background: #f3f4f6;
	border-radius: 8px;
	color: #6b7280;
	font-size: 16px;
	margin: 40px auto;
	max-width: 600px;
}

.delight-slider-error {
	background: #fee2e2;
	color: #991b1b;
}
