/* Basic SEO Helper Admin Styles */

.basic-seo-helper-admin-wrapper {
	max-width: 1200px;
}

.basic-seo-helper-admin-wrapper .postbox {
	margin-bottom: 20px;
}

.basic-seo-helper-admin-wrapper .postbox-header h2 {
	font-size: 18px;
	font-weight: 600;
	margin: 0;
	padding: 15px 20px;
	border-bottom: 1px solid #ccd0d4;
}

.basic-seo-helper-admin-wrapper .inside {
	padding: 20px;
}

.basic-seo-helper-admin-wrapper .form-table th {
	width: 200px;
	padding-left: 0;
}

.basic-seo-helper-admin-wrapper .form-table td {
	padding-left: 0;
}

.basic-seo-helper-admin-wrapper .regular-text {
	width: 100%;
	max-width: 400px;
}

.basic-seo-helper-admin-wrapper .button {
	margin-left: 10px;
}

.basic-seo-helper-admin-wrapper ul {
	margin-left: 20px;
}

.basic-seo-helper-admin-wrapper ul li {
	margin-bottom: 5px;
}

.basic-seo-helper-admin-wrapper .code {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 12px;
	line-height: 1.5;
}

.basic-seo-helper-admin-wrapper pre {
	background: #f9f9f9;
	border: 1px solid #ddd;
	padding: 15px;
	border-radius: 4px;
	overflow-x: auto;
}

.basic-seo-helper-admin-wrapper .description {
	font-style: italic;
	color: #666;
}

/* Media uploader button styles */
.basic-seo-helper-admin-wrapper .upload-button-container {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.basic-seo-helper-admin-wrapper .upload-preview {
	max-width: 100px;
	max-height: 100px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-top: 5px;
}

/* Image Preview Styles for Settings */
.bsh-image-preview {
	margin-top: 10px;
	display: inline-block;
}

.bsh-image-preview img {
	display: block;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: all 0.2s ease;
}

.bsh-image-preview img:hover {
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bsh-image-preview small {
	display: block;
	margin-top: 5px;
	color: #646970;
	font-style: italic;
}

/* Media Field Wrapper Styles */
.bsh-media-field-wrapper {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bsh-media-input-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.bsh-media-input-group input[type="url"] {
	flex: 1;
	min-width: 300px;
}

.bsh-media-input-group .button {
	margin: 0;
	white-space: nowrap;
}

/* Enhanced Image Preview Styles */
.bsh-image-preview {
	display: block;
	padding: 12px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	text-align: center;
	margin: 0;
}

.bsh-image-preview img {
	display: block;
	margin: 0 auto 8px auto;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	transition: all 0.2s ease;
	border: 1px solid #ddd;
	padding: 4px;
	background: #fff;
}

.bsh-image-preview img:hover {
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.bsh-image-preview small {
	display: block;
	margin: 0;
	color: #646970;
	font-style: italic;
	font-size: 12px;
}

/* Organization Logo specific sizing */
#logo_preview img {
	max-width: 300px;
	max-height: 100px;
}

/* Social Image specific sizing maintaining aspect ratio */
#social_image_preview img {
	max-width: 300px;
	max-height: 157px; /* Maintains 1200x630 aspect ratio */
}

/* Responsive behavior for media fields */
@media (max-width: 782px) {
	.bsh-media-input-group {
		flex-direction: column;
		align-items: stretch;
	}

	.bsh-media-input-group input[type="url"] {
		min-width: 100%;
		margin-bottom: 8px;
	}

	.bsh-image-preview img {
		max-width: 100%;
		height: auto;
	}
}

/* SEO Health Dashboard Styles */
.bsh-dashboard-header {
	background: #fff;
	padding: 20px;
	margin-bottom: 20px;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.bsh-dashboard-filters {
	background: #fff;
	padding: 15px 20px;
	margin-bottom: 20px;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.bsh-dashboard-filters form {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.bsh-dashboard-filters label {
	font-weight: 600;
	margin: 0;
}

.bsh-dashboard-filters select {
	min-width: 150px;
}

.bsh-dashboard-summary {
	margin-bottom: 20px;
}

.bsh-summary-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 20px;
}

.bsh-summary-card {
	background: #fff;
	padding: 20px;
	text-align: center;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	border-radius: 4px;
}

.bsh-summary-card h3 {
	font-size: 32px;
	font-weight: 600;
	margin: 0 0 10px 0;
	line-height: 1;
}

.bsh-summary-card p {
	margin: 0;
	font-size: 14px;
	color: #646970;
	font-weight: 500;
}

.bsh-summary-good h3 {
	color: #00a32a;
}

.bsh-summary-needs-improvement h3 {
	color: #dba617;
}

.bsh-summary-poor h3 {
	color: #d63638;
}

.bsh-summary-total h3 {
	color: #2271b1;
}

/* Clickable Summary Card Styles */
.bsh-summary-card {
	text-decoration: none;
	color: inherit;
	transition: all 0.2s ease;
	cursor: pointer;
	position: relative;
}

.bsh-summary-card:hover {
	text-decoration: none;
	color: inherit;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0,0,0,.1);
	border-color: #8c8f94;
}

.bsh-summary-card:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	text-decoration: none;
	color: inherit;
}

.bsh-summary-card:visited {
	color: inherit;
	text-decoration: none;
}

/* Active state for filtered cards */
.bsh-summary-card.bsh-summary-active {
	border-width: 2px;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0,0,0,.08);
}

.bsh-summary-card.bsh-summary-active.bsh-summary-good {
	border-color: #00a32a;
	background: #f0f8f0;
}

.bsh-summary-card.bsh-summary-active.bsh-summary-needs-improvement {
	border-color: #dba617;
	background: #fdfbf0;
}

.bsh-summary-card.bsh-summary-active.bsh-summary-poor {
	border-color: #d63638;
	background: #fdf0f0;
}

.bsh-summary-card.bsh-summary-active.bsh-summary-total {
	border-color: #2271b1;
	background: #f0f6fc;
}

/* Hover states for specific card types */
.bsh-summary-good:hover {
	border-color: #00a32a;
}

.bsh-summary-needs-improvement:hover {
	border-color: #dba617;
}

.bsh-summary-poor:hover {
	border-color: #d63638;
}

.bsh-summary-total:hover {
	border-color: #2271b1;
}

.bsh-dashboard-table-wrapper {
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	padding: 0;
	overflow: hidden;
}

.bsh-dashboard-table-wrapper .wp-list-table {
	border: none;
	box-shadow: none;
}

.bsh-dashboard-table-wrapper th {
	text-align: left;
	font-weight: 600;
	background: #f6f7f7;
	border-bottom: 1px solid #c3c4c7;
}

.bsh-dashboard-table-wrapper td {
	vertical-align: middle;
}

/* Score Badge Styles */
.bsh-score-badge {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	text-align: center;
	min-width: 45px;
}

.bsh-score-good {
	background-color: #00a32a;
}

.bsh-score-needs-improvement {
	background-color: #dba617;
}

.bsh-score-poor {
	background-color: #d63638;
}

/* Check Mark Styles */
.bsh-check-good {
	color: #00a32a;
	font-size: 16px;
}

.bsh-check-missing {
	color: #d63638;
	font-size: 16px;
}

.bsh-check-warning {
	color: #dba617;
	font-size: 16px;
}

/* Dashboard Legend */
.bsh-dashboard-legend {
	background: #fff;
	padding: 20px;
	margin-top: 20px;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.bsh-dashboard-legend h3 {
	margin-top: 0;
	margin-bottom: 15px;
}

.bsh-legend-items {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bsh-legend-item {
	display: flex;
	align-items: center;
	gap: 10px;
}

.bsh-legend-item span:not(.bsh-score-badge) {
	color: #646970;
}

/* SEO Elements Guide */
.bsh-seo-elements-guide {
	background: #fff;
	padding: 20px;
	margin-top: 20px;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.bsh-seo-elements-guide h3 {
	margin-top: 0;
	margin-bottom: 15px;
}

.bsh-guide-wrapper {
	margin-top: 0;
}

.bsh-guide-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.bsh-guide-column {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.bsh-guide-item {
	padding: 15px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	margin-bottom: 10px;
}

.bsh-guide-item h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	display: flex;
	align-items: center;
	gap: 6px;
}

.bsh-guide-icon {
	font-size: 16px;
	width: 20px;
	text-align: center;
}

.bsh-guide-item p {
	margin: 0 0 12px 0;
	color: #646970;
	line-height: 1.5;
	font-size: 13px;
}

.bsh-guide-item p:last-child {
	margin-bottom: 0;
}

.bsh-guide-item strong {
	color: #1d2327;
	font-weight: 600;
}

/* Settings Guide Styles */
.bsh-settings-guide {
	margin-top: 10px;
}

.bsh-guide-intro {
	margin-bottom: 20px;
	color: #646970;
	font-size: 14px;
	line-height: 1.6;
	padding: 15px;
	background: #f0f6fc;
	border: 1px solid #c9e1f6;
	border-radius: 3px;
}

.bsh-guide-section {
	padding: 20px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	margin-bottom: 15px;
}

.bsh-guide-section h4 {
	margin: 0 0 15px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid #dcdcde;
	padding-bottom: 8px;
}

.bsh-guide-section p {
	margin: 0 0 15px 0;
	color: #646970;
	line-height: 1.6;
	font-size: 14px;
}

.bsh-guide-section p:last-child {
	margin-bottom: 0;
}

.bsh-guide-section strong {
	color: #1d2327;
	font-weight: 600;
}

.bsh-guide-footer {
	margin-top: 20px;
	padding: 15px;
	background: #fff3cd;
	border: 1px solid #ffeaa7;
	border-radius: 3px;
}

.bsh-guide-footer p {
	margin: 0;
	color: #856404;
	font-size: 14px;
	line-height: 1.5;
}

.bsh-guide-footer strong {
	color: #533f03;
}

/* Pagination Styles */
.bsh-pagination {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 20px;
	padding: 15px 20px;
	border-top: 1px solid #c3c4c7;
	background: #fff;
}

.bsh-pagination-info {
	color: #646970;
	font-size: 13px;
}

.bsh-pagination-links {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.bsh-pagination-links .button {
	padding: 6px 12px;
	font-size: 13px;
	text-decoration: none;
}

.bsh-pagination-links .button-disabled {
	color: #a7aaad;
	background: #f6f7f7;
	border-color: #dcdcde;
	cursor: default;
}

.bsh-page-numbers {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 0 10px;
}

.bsh-page-link {
	display: inline-block;
	padding: 6px 10px;
	color: #0073aa;
	text-decoration: none;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	background: #f6f7f7;
	font-size: 13px;
	min-width: 20px;
	text-align: center;
}

.bsh-page-link:hover {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.bsh-current-page {
	display: inline-block;
	padding: 6px 10px;
	background: #2271b1;
	color: #fff;
	border: 1px solid #2271b1;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 600;
	min-width: 20px;
	text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
	.bsh-dashboard-filters form {
		flex-direction: column;
		align-items: flex-start;
	}

	.bsh-summary-cards {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	}

	.bsh-dashboard-table-wrapper {
		overflow-x: auto;
	}

	.bsh-legend-items {
		gap: 15px;
	}

	.bsh-guide-columns {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.bsh-guide-column {
		gap: 10px;
	}

	.bsh-guide-item {
		padding: 12px;
		margin-bottom: 8px;
	}

	.bsh-guide-item p {
		margin-bottom: 8px;
		font-size: 12px;
	}

	.bsh-guide-icon {
		font-size: 14px;
		width: 18px;
	}

	.bsh-pagination {
		flex-direction: column;
		gap: 15px;
		text-align: center;
		padding: 15px 20px;
	}

	.bsh-pagination-links {
		flex-wrap: wrap;
		justify-content: center;
		gap: 8px;
	}

	.bsh-page-numbers {
		margin: 0 5px;
		gap: 3px;
	}

	.bsh-page-link,
	.bsh-current-page {
		padding: 5px 8px;
		font-size: 12px;
	}
}