/**
 * Keyword Density Checker Widget Styles
 * 
 * Modern, eye-catching design with blue/purple gradient
 * 
 * @package Multi Tools for Elementor
 * @since 1.0.0
 */

/* Main Container */
.mte-keyword-density-checker {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
	transition: all 0.3s ease;
}

/* Form Sections */
.mte-keyword-density-checker__section {
	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-keyword-density-checker__section-title {
	font-size: 22px;
	font-weight: 700;
	color: #667eea;
	margin: 0 0 25px 0;
	padding-bottom: 15px;
	border-bottom: 3px solid #764ba2;
}

/* Form Fields */
.mte-keyword-density-checker__field {
	margin-bottom: 20px;
}

.mte-keyword-density-checker__field:last-child {
	margin-bottom: 0;
}

.mte-keyword-density-checker__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 8px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mte-keyword-density-checker__textarea {
	width: 100%;
	padding: 16px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #ffffff;
	color: #2d3748;
	font-size: 15px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	transition: all 0.3s ease;
	resize: vertical;
	min-height: 200px;
	line-height: 1.6;
}

.mte-keyword-density-checker__textarea:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mte-keyword-density-checker__textarea::placeholder {
	color: #a0aec0;
}

/* Buttons */
.mte-keyword-density-checker__buttons {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	justify-content: center;
	margin-bottom: 30px;
}

.mte-keyword-density-checker__button {
	padding: 15px 40px;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	min-width: 180px;
}

.mte-keyword-density-checker__button::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.mte-keyword-density-checker__button:hover::before {
	width: 300px;
	height: 300px;
}

/* Analyze Button */
.mte-keyword-density-checker__button--analyze {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
}

.mte-keyword-density-checker__button--analyze:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Clear Button */
.mte-keyword-density-checker__button--clear {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	color: #ffffff;
}

.mte-keyword-density-checker__button--clear:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

/* Results Area */
.mte-keyword-density-checker__results-wrapper {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 30px;
	margin-bottom: 20px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.mte-keyword-density-checker__results {
	color: #2d3748;
}

/* Statistics Section */
.mte-keyword-density-checker__statistics {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 30px;
	color: #ffffff;
}

.mte-keyword-density-checker__statistics-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 20px 0;
	text-align: center;
}

.mte-keyword-density-checker__stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 15px;
}

.mte-keyword-density-checker__stat-item {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 15px;
	text-align: center;
}

.mte-keyword-density-checker__stat-label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
	opacity: 0.9;
}

.mte-keyword-density-checker__stat-value {
	font-size: 28px;
	font-weight: 700;
}

/* Keywords Section */
.mte-keyword-density-checker__keywords-section {
	margin-bottom: 30px;
}

.mte-keyword-density-checker__keywords-section:last-child {
	margin-bottom: 0;
}

.mte-keyword-density-checker__keywords-title {
	font-size: 18px;
	font-weight: 700;
	color: #667eea;
	margin: 0 0 15px 0;
	padding-bottom: 10px;
	border-bottom: 2px solid #e2e8f0;
}

.mte-keyword-density-checker__keywords-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mte-keyword-density-checker__keywords-table thead {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
}

.mte-keyword-density-checker__keywords-table th {
	padding: 12px 16px;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mte-keyword-density-checker__keywords-table tbody tr {
	border-bottom: 1px solid #e2e8f0;
	transition: background 0.2s ease;
}

.mte-keyword-density-checker__keywords-table tbody tr:hover {
	background: #f7fafc;
}

.mte-keyword-density-checker__keywords-table tbody tr:last-child {
	border-bottom: none;
}

.mte-keyword-density-checker__keywords-table td {
	padding: 12px 16px;
	font-size: 14px;
}

.mte-keyword-density-checker__keyword {
	font-weight: 600;
	color: #2d3748;
}

.mte-keyword-density-checker__count {
	color: #667eea;
	font-weight: 600;
}

.mte-keyword-density-checker__density {
	color: #764ba2;
	font-weight: 600;
}

/* Density Bar */
.mte-keyword-density-checker__density-bar {
	width: 100%;
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 5px;
}

.mte-keyword-density-checker__density-fill {
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 4px;
	transition: width 0.3s ease;
}

/* Empty State */
.mte-keyword-density-checker__empty {
	text-align: center;
	padding: 40px 20px;
	color: #718096;
}

.mte-keyword-density-checker__empty-icon {
	font-size: 48px;
	margin-bottom: 15px;
	opacity: 0.5;
}

.mte-keyword-density-checker__empty-text {
	font-size: 16px;
	margin: 0;
}

/* Notification */
.mte-keyword-density-checker__notification {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 15px 25px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border-radius: 50px;
	box-shadow: 0 8px 25px rgba(102, 126, 234, 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-keyword-density-checker__notification.show {
	opacity: 1;
	transform: translateY(0);
}

/* Responsive Design - Tablet */
@media (max-width: 1023px) {
	.mte-keyword-density-checker {
		padding: 30px;
	}

	.mte-keyword-density-checker__section {
		padding: 25px;
	}

	.mte-keyword-density-checker__section-title {
		font-size: 20px;
	}

	.mte-keyword-density-checker__stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
	.mte-keyword-density-checker {
		padding: 20px;
		border-radius: 15px;
	}

	.mte-keyword-density-checker__section {
		padding: 20px;
		margin-bottom: 20px;
	}

	.mte-keyword-density-checker__section-title {
		font-size: 18px;
		margin-bottom: 20px;
	}

	.mte-keyword-density-checker__textarea {
		padding: 12px;
		font-size: 14px;
		min-height: 150px;
	}

	.mte-keyword-density-checker__button {
		width: 100%;
		padding: 12px 30px;
		font-size: 14px;
	}

	.mte-keyword-density-checker__buttons {
		flex-direction: column;
		gap: 10px;
	}

	.mte-keyword-density-checker__stats-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.mte-keyword-density-checker__keywords-table {
		font-size: 13px;
	}

	.mte-keyword-density-checker__keywords-table th,
	.mte-keyword-density-checker__keywords-table td {
		padding: 10px 12px;
	}

	.mte-keyword-density-checker__notification {
		top: 10px;
		right: 10px;
		left: 10px;
		text-align: center;
	}
}

/* Accessibility - Focus States */
.mte-keyword-density-checker__textarea:focus,
.mte-keyword-density-checker__button:focus {
	outline: 3px solid #667eea;
	outline-offset: 2px;
}

/* Print Styles */
@media print {
	.mte-keyword-density-checker__buttons,
	.mte-keyword-density-checker__notification {
		display: none;
	}
}
