/**
 * SERP Preview Tool Widget Styles
 * Blue/cyan gradient theme
 */

.mte-serp-preview {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(79, 172, 254, 0.3);
	transition: all 0.3s ease;
}

.mte-serp-preview__container {
	max-width: 100%;
}

.mte-serp-preview__instructions {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 25px;
	margin-bottom: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-serp-preview__instructions-title {
	font-size: 20px;
	font-weight: 700;
	color: #4facfe;
	margin: 0 0 15px 0;
	padding-bottom: 12px;
	border-bottom: 3px solid #00f2fe;
}

.mte-serp-preview__instructions-text {
	font-size: 15px;
	color: #4a5568;
	line-height: 1.6;
	margin: 0;
}

.mte-serp-preview__form {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 30px;
	margin-bottom: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-serp-preview__field {
	margin-bottom: 25px;
}

.mte-serp-preview__field:last-child {
	margin-bottom: 0;
}

.mte-serp-preview__label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 15px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 10px;
}

.mte-serp-preview__counter {
	font-size: 13px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 20px;
	background: #e2e8f0;
	color: #718096;
	transition: all 0.3s ease;
}

.mte-serp-preview__counter.optimal {
	background: rgba(72, 187, 120, 0.2);
	color: #48bb78;
}

.mte-serp-preview__counter.warning {
	background: rgba(237, 137, 54, 0.2);
	color: #ed8936;
}

.mte-serp-preview__counter.error {
	background: rgba(245, 101, 101, 0.2);
	color: #f56565;
}

.mte-serp-preview__input,
.mte-serp-preview__textarea {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #f7fafc;
	color: #2d3748;
	font-size: 15px;
	line-height: 1.6;
	transition: all 0.3s ease;
	font-family: inherit;
}

.mte-serp-preview__input:focus,
.mte-serp-preview__textarea:focus {
	outline: none;
	border-color: #4facfe;
	box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

.mte-serp-preview__textarea {
	resize: vertical;
	min-height: 80px;
}

.mte-serp-preview__buttons {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 25px;
}

.mte-serp-preview__button {
	padding: 15px 40px;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	min-width: 180px;
}

.mte-serp-preview__button--preview {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #ffffff;
}

.mte-serp-preview__button--preview:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.mte-serp-preview__button--clear {
	background: linear-gradient(135deg, #a8a8a8 0%, #7f7f7f 100%);
	color: #ffffff;
}

.mte-serp-preview__button--clear:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(127, 127, 127, 0.4);
}

.mte-serp-preview__previews {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 25px;
	margin-bottom: 25px;
}

.mte-serp-preview__desktop,
.mte-serp-preview__mobile {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 25px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-serp-preview__preview-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 700;
	color: #4facfe;
	margin: 0 0 20px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #e2e8f0;
}

.mte-serp-preview__icon {
	color: #4facfe;
}

.mte-serp-preview__result {
	padding: 20px;
	background: #ffffff;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	font-family: Arial, sans-serif;
}

.mte-serp-preview__result--desktop {
	max-width: 600px;
}

.mte-serp-preview__result--mobile {
	max-width: 400px;
}

.mte-serp-preview__result-url {
	font-size: 14px;
	color: #5f6368;
	margin-bottom: 8px;
	line-height: 1.3;
	word-break: break-all;
}

.mte-serp-preview__result-title {
	font-size: 20px;
	font-weight: 400;
	color: #1a0dab;
	margin-bottom: 8px;
	line-height: 1.3;
	cursor: pointer;
	transition: all 0.2s ease;
}

.mte-serp-preview__result-title:hover {
	text-decoration: underline;
}

.mte-serp-preview__result--mobile .mte-serp-preview__result-title {
	font-size: 18px;
}

.mte-serp-preview__result-description {
	font-size: 14px;
	color: #4d5156;
	line-height: 1.58;
}

.mte-serp-preview__result--mobile .mte-serp-preview__result-description {
	font-size: 13px;
}

.mte-serp-preview__section-title {
	font-size: 20px;
	font-weight: 700;
	color: #4facfe;
	margin: 0 0 20px 0;
	padding-bottom: 12px;
	border-bottom: 3px solid #00f2fe;
}

.mte-serp-preview__analysis {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mte-serp-preview__score {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 30px;
	flex-wrap: wrap;
	margin-bottom: 30px;
	padding-bottom: 30px;
	border-bottom: 2px solid #e2e8f0;
}

.mte-serp-preview__score-circle {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 6px solid;
	transition: all 0.3s ease;
}

.mte-serp-preview__score-circle--success {
	border-color: #48bb78;
	background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(56, 161, 105, 0.1) 100%);
}

.mte-serp-preview__score-circle--good {
	border-color: #4299e1;
	background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(49, 130, 206, 0.1) 100%);
}

.mte-serp-preview__score-circle--warning {
	border-color: #ed8936;
	background: linear-gradient(135deg, rgba(237, 137, 54, 0.1) 0%, rgba(221, 107, 32, 0.1) 100%);
}

.mte-serp-preview__score-circle--error {
	border-color: #f56565;
	background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(229, 62, 62, 0.1) 100%);
}

.mte-serp-preview__score-value {
	font-size: 36px;
	font-weight: 700;
	color: #2d3748;
}

.mte-serp-preview__score-label {
	font-size: 12px;
	font-weight: 600;
	color: #718096;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mte-serp-preview__score-details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-align: center;
}

.mte-serp-preview__score-grade {
	font-size: 28px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 10px;
}

.mte-serp-preview__score-grade--success {
	color: #48bb78;
	background: rgba(72, 187, 120, 0.1);
}

.mte-serp-preview__score-grade--good {
	color: #4299e1;
	background: rgba(66, 153, 225, 0.1);
}

.mte-serp-preview__score-grade--warning {
	color: #ed8936;
	background: rgba(237, 137, 54, 0.1);
}

.mte-serp-preview__score-grade--error {
	color: #f56565;
	background: rgba(245, 101, 101, 0.1);
}

.mte-serp-preview__score-points {
	font-size: 14px;
	color: #718096;
}

.mte-serp-preview__issues {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.mte-serp-preview__issue {
	padding: 20px;
	border-radius: 10px;
	border-left: 4px solid;
	background: #f7fafc;
	transition: all 0.3s ease;
}

.mte-serp-preview__issue:hover {
	transform: translateX(5px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-serp-preview__issue--error {
	border-left-color: #f56565;
	background: rgba(245, 101, 101, 0.05);
}

.mte-serp-preview__issue--warning {
	border-left-color: #ed8936;
	background: rgba(237, 137, 54, 0.05);
}

.mte-serp-preview__issue--info {
	border-left-color: #4299e1;
	background: rgba(66, 153, 225, 0.05);
}

.mte-serp-preview__issue--success {
	border-left-color: #48bb78;
	background: rgba(72, 187, 120, 0.05);
}

.mte-serp-preview__issue-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.mte-serp-preview__issue-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
}

.mte-serp-preview__issue--error .mte-serp-preview__issue-icon {
	background: #f56565;
	color: #ffffff;
}

.mte-serp-preview__issue--warning .mte-serp-preview__issue-icon {
	background: #ed8936;
	color: #ffffff;
}

.mte-serp-preview__issue--info .mte-serp-preview__issue-icon {
	background: #4299e1;
	color: #ffffff;
}

.mte-serp-preview__issue--success .mte-serp-preview__issue-icon {
	background: #48bb78;
	color: #ffffff;
}

.mte-serp-preview__issue-field {
	font-size: 14px;
	font-weight: 700;
	color: #4facfe;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mte-serp-preview__issue-message {
	font-size: 15px;
	color: #2d3748;
	margin-bottom: 10px;
	line-height: 1.6;
}

.mte-serp-preview__issue-recommendation {
	font-size: 14px;
	color: #4a5568;
	line-height: 1.6;
	padding: 12px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 8px;
}

.mte-serp-preview__issue-recommendation strong {
	color: #4facfe;
}

.mte-serp-preview__notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 15px 25px;
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: #ffffff;
	border-radius: 50px;
	box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
	font-weight: 600;
	font-size: 14px;
	opacity: 0;
	transform: translateY(-20px);
	transition: all 0.3s ease;
	pointer-events: none;
	z-index: 9999;
}

.mte-serp-preview__notification.show {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 767px) {
	.mte-serp-preview {
		padding: 20px;
	}

	.mte-serp-preview__instructions,
	.mte-serp-preview__form,
	.mte-serp-preview__desktop,
	.mte-serp-preview__mobile,
	.mte-serp-preview__analysis {
		padding: 20px;
	}

	.mte-serp-preview__button {
		width: 100%;
	}

	.mte-serp-preview__previews {
		grid-template-columns: 1fr;
	}

	.mte-serp-preview__result--desktop,
	.mte-serp-preview__result--mobile {
		max-width: 100%;
	}

	.mte-serp-preview__score {
		flex-direction: column;
	}

	.mte-serp-preview__score-circle {
		width: 100px;
		height: 100px;
	}

	.mte-serp-preview__score-value {
		font-size: 28px;
	}
}
