/**
 * Public styles for Shohada Serzamin plugin
 *
 * @package    Shohada_Serzamin
 * @subpackage Shohada_Serzamin/public
 */

/* Widget Styles */
.shohada-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.shohada-widget-item {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.shohada-widget-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.shohada-widget-thumbnail {
	display: block;
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	overflow: hidden;
	border-radius: 4px;
}

.shohada-widget-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shohada-widget-content {
	flex: 1;
}

.shohada-widget-content h4 {
	margin: 0 0 8px 0;
	font-size: 16px;
	line-height: 1.4;
}

.shohada-widget-content h4 a {
	text-decoration: none;
	color: #333;
	transition: color 0.3s;
}

.shohada-widget-content h4 a:hover {
	color: #0073aa;
}

.shohada-widget-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

/* Shortcode Styles */
.shohada-shortcode-container {
	margin: 20px 0;
}

.shohada-shortcode-title {
	margin-bottom: 20px;
	font-size: 24px;
	font-weight: bold;
}

.shohada-shortcode-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.shohada-shortcode-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s;
}

.shohada-shortcode-item:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shohada-shortcode-thumbnail {
	display: block;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
}

.shohada-shortcode-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shohada-shortcode-content {
	padding: 20px;
}

.shohada-shortcode-content h4 {
	margin: 0 0 10px 0;
	font-size: 18px;
}

.shohada-shortcode-content h4 a {
	text-decoration: none;
	color: #333;
	transition: color 0.3s;
}

.shohada-shortcode-content h4 a:hover {
	color: #0073aa;
}

.shohada-shortcode-excerpt {
	margin: 0 0 10px 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

.shohada-shortcode-date {
	margin: 0;
	font-size: 13px;
	color: #999;
}

.shohada-shortcode-empty {
	padding: 20px;
	text-align: center;
	color: #666;
	background: #f9f9f9;
	border-radius: 4px;
}

/* Single Shohada Template */
.shohada-single-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.shohada-single-header {
	display: flex;
	gap: 30px;
	margin-bottom: 40px;
	padding-bottom: 30px;
	border-bottom: 2px solid #eee;
}

.shohada-single-thumbnail {
	flex-shrink: 0;
	width: 300px;
	height: 300px;
	overflow: hidden;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shohada-single-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shohada-single-info {
	flex: 1;
}

.shohada-single-title {
	margin: 0 0 20px 0;
	font-size: 32px;
	font-weight: bold;
}

.shohada-single-meta {
	margin: 0;
	padding: 0;
	list-style: none;
}

.shohada-single-meta li {
	margin-bottom: 10px;
	font-size: 16px;
}

.shohada-single-meta strong {
	display: inline-block;
	width: 120px;
	color: #666;
}

.shohada-single-content {
	margin-bottom: 40px;
	line-height: 1.8;
	font-size: 16px;
}

.shohada-single-section {
	margin-bottom: 40px;
	padding: 30px;
	background: #f9f9f9;
	border-radius: 8px;
}

.shohada-single-section h2 {
	margin: 0 0 20px 0;
	font-size: 24px;
	padding-bottom: 15px;
	border-bottom: 2px solid #ddd;
}

.shohada-single-section-content {
	line-height: 1.8;
}

/* Gallery Slider */
.shohada-gallery-slider-wrapper {
	position: relative;
	margin-top: 20px;
	padding: 0 50px;
}

.shohada-gallery-slider {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	background: #f5f5f5;
}

.shohada-gallery-slider-track {
	display: flex;
	transition: transform 0.5s ease-in-out;
	will-change: transform;
}

.shohada-gallery-slide {
	min-width: 100%;
	flex-shrink: 0;
}

.shohada-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
	width: 100%;
	height: 500px;
	cursor: pointer;
}

.shohada-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.shohada-gallery-item:hover img {
	transform: scale(1.05);
}

/* Gallery Navigation Buttons */
.shohada-gallery-prev,
.shohada-gallery-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.6);
	color: white;
	border: none;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.shohada-gallery-prev:hover,
.shohada-gallery-next:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: translateY(-50%) scale(1.1);
}

.shohada-gallery-prev {
	right: 5px;
}

.shohada-gallery-next {
	left: 5px;
}

/* Gallery Dots */
.shohada-gallery-dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
	padding: 10px 0;
}

.shohada-gallery-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ccc;
	border: none;
	cursor: pointer;
	transition: all 0.3s;
	padding: 0;
}

.shohada-gallery-dot:hover {
	background: #999;
	transform: scale(1.2);
}

.shohada-gallery-dot.active {
	background: #0073aa;
	width: 30px;
	border-radius: 6px;
}

/* Archive Template */
.shohada-archive-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

.shohada-archive-title {
	margin-bottom: 30px;
	font-size: 36px;
	text-align: center;
}

.shohada-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 30px;
}

.shohada-archive-item {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s, box-shadow 0.3s;
}

.shohada-archive-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.shohada-archive-item-thumbnail {
	display: block;
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: #f5f5f5;
}

.shohada-archive-item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.shohada-archive-item-content {
	padding: 20px;
}

.shohada-archive-item-title {
	margin: 0 0 10px 0;
	font-size: 20px;
}

.shohada-archive-item-title a {
	text-decoration: none;
	color: #333;
	transition: color 0.3s;
}

.shohada-archive-item-title a:hover {
	color: #0073aa;
}

.shohada-archive-item-excerpt {
	margin: 0 0 15px 0;
	font-size: 14px;
	line-height: 1.6;
	color: #666;
}

.shohada-archive-item-meta {
	font-size: 13px;
	color: #999;
}

/* RTL Support */
body.rtl .shohada-widget-item {
	flex-direction: row-reverse;
}

body.rtl .shohada-single-header {
	flex-direction: row-reverse;
}

body.rtl .shohada-gallery-prev {
	right: auto;
	left: 5px;
}

body.rtl .shohada-gallery-next {
	left: auto;
	right: 5px;
}

@media (max-width: 768px) {
	body.rtl .shohada-gallery-prev {
		right: auto;
		left: 0;
	}

	body.rtl .shohada-gallery-next {
		left: auto;
		right: 0;
	}
}

/* Lightbox */
.shohada-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
}

.shohada-lightbox-content {
	position: relative;
	max-width: 90%;
	max-height: 90%;
}

.shohada-lightbox-content img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
}

.shohada-lightbox-close {
	position: absolute;
	top: -40px;
	right: 0;
	background: transparent;
	border: none;
	color: white;
	font-size: 40px;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	width: 40px;
	height: 40px;
}

.shohada-lightbox-close:hover {
	opacity: 0.7;
}

body.rtl .shohada-lightbox-close {
	right: auto;
	left: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.shohada-single-header {
		flex-direction: column;
	}

	.shohada-single-thumbnail {
		width: 100%;
		max-width: 300px;
		margin: 0 auto;
	}

	.shohada-shortcode-list,
	.shohada-archive-grid {
		grid-template-columns: 1fr;
	}

	.shohada-gallery {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}

	/* Gallery Slider Responsive */
	.shohada-gallery-slider-wrapper {
		padding: 0 40px;
	}

	.shohada-gallery-item {
		height: 300px;
	}

	.shohada-gallery-prev,
	.shohada-gallery-next {
		width: 35px;
		height: 35px;
		font-size: 20px;
	}

	.shohada-gallery-prev {
		right: 0;
	}

	.shohada-gallery-next {
		left: 0;
	}
}

