/**
 * YBS Tema - Sidebar Akordion Stilleri
 */

.ybs-sidebar .widget {
	margin-bottom: 1.5rem;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	overflow: hidden;
	background: #ffffff;
	transition: all 0.3s ease;
}

.ybs-sidebar .widget:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-color: #19c2c6;
}

.ybs-sidebar .widget-title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.2rem;
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #1a1a2e;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	border-bottom: 2px solid #19c2c6;
	cursor: pointer;
	user-select: none;
	transition: all 0.3s ease;
}

.ybs-sidebar .widget-title:hover {
	background: linear-gradient(135deg, #f0f0f0 0%, #f8f9fa 100%);
	color: #19c2c6;
}

.ybs-sidebar .widget.accordion-closed .widget-title {
	border-bottom-color: #e0e0e0;
}

.ybs-sidebar .accordion-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 10px;
	color: #19c2c6;
	font-size: 0.8rem;
	transition: transform 0.3s ease;
	flex-shrink: 0;
}

.ybs-sidebar .widget.accordion-closed .accordion-icon {
	transform: rotate(-90deg);
	color: #999;
}

/* Widget content styling */
.ybs-sidebar .widget-contents,
.ybs-sidebar .widget ul,
.ybs-sidebar .widget > div:not(.widget-title) {
	padding: 1rem 1.2rem;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}

.ybs-sidebar .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ybs-sidebar .widget ul li {
	padding: 0.5rem 0;
	border-bottom: 1px solid #f0f0f0;
}

.ybs-sidebar .widget ul li:last-child {
	border-bottom: none;
}

.ybs-sidebar .widget ul li a {
	color: #19c2c6;
	text-decoration: none;
	transition: all 0.2s ease;
	display: block;
	font-size: 0.95rem;
}

.ybs-sidebar .widget ul li a:hover {
	color: #14a5a9;
	padding-left: 4px;
}

/* Kategori widget'ı için özel styling */
.ybs-sidebar .widget_categories ul li,
.ybs-sidebar .widget_archive ul li {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ybs-sidebar .widget_categories .post-count,
.ybs-sidebar .widget_archive .post-count {
	background: #19c2c6;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 0.8rem;
	font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
	.ybs-sidebar .widget-title {
		padding: 0.8rem 1rem;
		font-size: 0.95rem;
	}

	.ybs-sidebar .widget-contents,
	.ybs-sidebar .widget ul,
	.ybs-sidebar .widget > div:not(.widget-title) {
		padding: 0.8rem 1rem;
	}

	.ybs-sidebar .accordion-icon {
		width: 20px;
		height: 20px;
		margin-left: 8px;
		font-size: 0.7rem;
	}
}
