/**
 * SEOWing Elementor Integration Styles
 *
 * @package SEOWing
 * @since 1.0.0
 */

/* ==========================================================================
   Breadcrumbs Widget
   ========================================================================== */

.seowing-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: 14px;
	line-height: 1.5;
}

.seowing-breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.seowing-breadcrumb-item {
	display: flex;
	align-items: center;
}

.seowing-breadcrumb-item a {
	text-decoration: none;
	transition: color 0.2s ease;
}

.seowing-breadcrumb-item a:hover {
	text-decoration: underline;
}

.seowing-breadcrumb-separator {
	display: flex;
	align-items: center;
	opacity: 0.6;
}

.seowing-breadcrumb-current {
	font-weight: 500;
}

/* ==========================================================================
   FAQ Widget
   ========================================================================== */

.seowing-faq {
	width: 100%;
}

.seowing-faq-item {
	margin-bottom: 10px;
}

.seowing-faq-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 15px 20px;
	border: 1px solid #e0e0e0;
	background: #f9f9f9;
	cursor: pointer;
	text-align: left;
	transition: all 0.2s ease;
}

.seowing-faq-header:hover {
	background: #f0f0f0;
}

.seowing-faq-item.active .seowing-faq-header {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.seowing-faq-question {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	flex: 1;
}

.seowing-faq-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 15px;
	transition: transform 0.3s ease;
}

.seowing-faq-content {
	padding: 20px;
	border: 1px solid #e0e0e0;
	border-top: none;
	background: #fff;
}

.seowing-faq-content[hidden] {
	display: none;
}

.seowing-faq-content p:last-child {
	margin-bottom: 0;
}

/* Icon position left */
.seowing-faq-header[data-icon-position="left"] .seowing-faq-icon {
	margin-left: 0;
	margin-right: 15px;
	order: -1;
}

/* ==========================================================================
   TOC Widget
   ========================================================================== */

.seowing-toc {
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.seowing-toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
}

.seowing-toc-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.seowing-toc-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
}

.seowing-toc-toggle-icon {
	position: relative;
	width: 12px;
	height: 12px;
}

.seowing-toc-toggle-icon::before,
.seowing-toc-toggle-icon::after {
	content: '';
	position: absolute;
	background: currentColor;
	transition: transform 0.3s ease;
}

.seowing-toc-toggle-icon::before {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	transform: translateY(-50%);
}

.seowing-toc-toggle-icon::after {
	top: 0;
	left: 50%;
	width: 2px;
	height: 100%;
	transform: translateX(-50%);
}

.seowing-toc-collapsed .seowing-toc-toggle-icon::after {
	transform: translateX(-50%) rotate(90deg);
}

.seowing-toc-content {
	transition: max-height 0.3s ease, opacity 0.3s ease;
	overflow: hidden;
}

.seowing-toc-collapsed .seowing-toc-content {
	max-height: 0;
	opacity: 0;
}

.seowing-toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.seowing-toc-list .seowing-toc-list {
	margin-top: 5px;
	padding-left: 15px;
}

.seowing-toc-item {
	margin-bottom: 8px;
}

.seowing-toc-link {
	display: block;
	text-decoration: none;
	transition: color 0.2s ease;
}

.seowing-toc-link:hover {
	text-decoration: underline;
}

.seowing-toc-link.active {
	font-weight: 600;
}

/* Sticky TOC */
.seowing-toc-sticky {
	position: sticky;
	top: 100px;
}

/* ==========================================================================
   Author Box Widget
   ========================================================================== */

.seowing-author-box {
	padding: 25px;
	background: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.seowing-author-horizontal {
	display: flex;
	gap: 20px;
}

.seowing-author-vertical {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.seowing-author-avatar {
	flex-shrink: 0;
}

.seowing-author-avatar img {
	display: block;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
}

.seowing-author-vertical .seowing-author-avatar {
	margin-bottom: 15px;
}

.seowing-author-content {
	flex: 1;
}

.seowing-author-name {
	margin: 0 0 5px;
	font-size: 20px;
}

.seowing-author-name a {
	text-decoration: none;
	color: inherit;
}

.seowing-author-name a:hover {
	text-decoration: underline;
}

.seowing-author-role {
	margin-bottom: 10px;
	font-size: 14px;
	color: #666;
}

.seowing-author-bio {
	margin-bottom: 15px;
	font-size: 14px;
	line-height: 1.6;
}

.seowing-author-social {
	display: flex;
	gap: 10px;
	margin-bottom: 15px;
}

.seowing-author-vertical .seowing-author-social {
	justify-content: center;
}

.seowing-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #333;
	transition: all 0.2s ease;
}

.seowing-social-link:hover {
	background: #333;
	color: #fff;
}

.seowing-author-posts-link {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.seowing-author-posts-link:hover {
	text-decoration: underline;
}

/* ==========================================================================
   SEO Score Widget
   ========================================================================== */

.seowing-seo-score {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Circle Gauge */
.seowing-score-circle {
	position: relative;
	width: 150px;
	height: 150px;
}

.seowing-score-circle svg {
	transform: rotate(-90deg);
}

.seowing-score-track {
	stroke: #e0e0e0;
}

.seowing-score-progress {
	transition: stroke-dashoffset 0.5s ease;
}

.seowing-score-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.seowing-score-number {
	display: block;
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}

.seowing-score-label {
	display: block;
	margin-top: 5px;
	font-size: 14px;
	font-weight: 500;
}

/* Progress Bar */
.seowing-score-bar-wrapper {
	width: 100%;
}

.seowing-score-bar-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.seowing-score-bar {
	width: 100%;
	height: 20px;
	background: #e0e0e0;
	border-radius: 10px;
	overflow: hidden;
}

.seowing-score-bar-fill {
	height: 100%;
	border-radius: 10px;
	transition: width 0.5s ease;
}

/* Traffic Light */
.seowing-traffic-light {
	display: flex;
	align-items: center;
	gap: 15px;
}

.seowing-traffic-light-housing {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 10px 8px;
	background: #333;
	border-radius: 20px;
}

.seowing-traffic-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	opacity: 0.3;
	transition: opacity 0.3s ease;
}

.seowing-traffic-red {
	background: #d63638;
}

.seowing-traffic-yellow {
	background: #dba617;
}

.seowing-traffic-green {
	background: #00a32a;
}

.seowing-traffic-dot.active {
	opacity: 1;
	box-shadow: 0 0 10px currentColor;
}

.seowing-traffic-info {
	text-align: left;
}

/* Simple Display */
.seowing-score-simple {
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.seowing-score-simple .seowing-score-number {
	font-size: 48px;
}

/* Score Details */
.seowing-score-details {
	margin-top: 20px;
	width: 100%;
}

.seowing-check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.seowing-check-item {
	display: flex;
	align-items: center;
	padding: 8px 0;
	font-size: 14px;
	border-bottom: 1px solid #e0e0e0;
}

.seowing-check-item:last-child {
	border-bottom: none;
}

.seowing-check-icon {
	margin-right: 10px;
	font-weight: bold;
}

.seowing-check-passed .seowing-check-icon {
	color: #00a32a;
}

.seowing-check-failed .seowing-check-icon {
	color: #d63638;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	.seowing-author-horizontal {
		flex-direction: column;
		text-align: center;
	}

	.seowing-author-horizontal .seowing-author-avatar {
		margin: 0 auto 15px;
	}

	.seowing-author-horizontal .seowing-author-social {
		justify-content: center;
	}

	.seowing-score-circle {
		width: 120px;
		height: 120px;
	}

	.seowing-score-number {
		font-size: 28px;
	}
}
