/**
 * Frontend Stylesheet
 * SEO Growth Hub Pro
 */

:root {
	--sgh-bg-main: #FAF8F3;
	--sgh-bg-card: #FFFFFF;
	--sgh-critical: #DC2626;
	--sgh-warning: #F59E0B;
	--sgh-success: #10B981;
	--sgh-info: #3B82F6;
	--sgh-text: #0F0F10;
	--sgh-text-light: #5B5B64;
	--sgh-border: #E5E5E5;
}

.sgh-pro-frontend-dashboard {
	background: var(--sgh-bg-main);
	padding: 30px;
	font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--sgh-text);
}

/* Hero Section */
.sgh-hero {
	background: linear-gradient(135deg, #0F1F1C 0%, #1A3A35 100%);
	color: white;
	padding: 40px;
	border-radius: 12px;
	margin-bottom: 30px;
}

.sgh-hero h1 {
	font-size: 28px;
	margin: 10px 0;
}

.sgh-hero p {
	color: #aaa;
	font-size: 14px;
	margin: 10px 0;
}

.live-tag {
	display: inline-block;
	background: rgba(16, 185, 129, 0.2);
	color: #10B981;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	margin-bottom: 12px;
}

/* Cards */
.sgh-card {
	background: var(--sgh-bg-card);
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid var(--sgh-border);
	background: #FAFAFA;
}

.card-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--sgh-text);
}

.card-body {
	padding: 24px;
}

.card-subtitle {
	font-size: 12px;
	color: var(--sgh-text-light);
	margin-bottom: 16px;
}

/* Grid Layouts */
.sgh-grid {
	display: grid;
	gap: 20px;
	margin-bottom: 20px;
}

.sgh-two-col {
	grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
	.sgh-two-col {
		grid-template-columns: 1fr;
	}

	.sgh-pro-frontend-dashboard {
		padding: 15px;
	}

	.sgh-hero {
		padding: 20px;
	}

	.sgh-hero h1 {
		font-size: 20px;
	}
}

/* Progress Bar */
.progress-info {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	margin-bottom: 6px;
}

.progress-bar {
	background: rgba(255, 255, 255, 0.1);
	height: 8px;
	border-radius: 4px;
	overflow: hidden;
}

.progress-fill {
	background: var(--sgh-success);
	height: 100%;
	transition: width 0.5s ease;
}

.target-amount {
	font-size: 26px;
	margin: 8px 0;
	color: var(--sgh-text);
}

.target-subtitle {
	color: var(--sgh-text-light);
	font-size: 13px;
	margin-bottom: 20px;
}

/* Sliders */
.slider-group {
	margin-bottom: 16px;
}

.slider-group label {
	font-size: 12px;
	color: var(--sgh-text-light);
	display: block;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.slider-value {
	font-weight: 600;
	color: var(--sgh-info);
}

.sgh-slider {
	width: 100%;
	accent-color: var(--sgh-info);
	cursor: pointer;
	height: 6px;
	border-radius: 3px;
	-webkit-appearance: none;
	appearance: none;
	background: linear-gradient(to right, var(--sgh-info) 0%, var(--sgh-info) 50%, #ddd 50%, #ddd 100%);
	background-size: 100% 100%;
	background-repeat: no-repeat;
}

.sgh-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sgh-info);
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sgh-slider::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--sgh-info);
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Output Row */
.output-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--sgh-border);
}

.metric {
	text-align: center;
}

.metric-label {
	font-size: 11px;
	color: var(--sgh-text-light);
	text-transform: uppercase;
	margin-bottom: 4px;
}

.metric-value {
	font-size: 22px;
	font-weight: 700;
	color: var(--sgh-success);
}

@media (max-width: 768px) {
	.output-row {
		grid-template-columns: 1fr;
	}
}

/* Tasks */
.task-counter {
	font-size: 12px;
	color: var(--sgh-text-light);
	background: #FAFAFA;
	padding: 4px 8px;
	border-radius: 4px;
}

.task-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--sgh-border);
	border-radius: 6px;
	margin-bottom: 8px;
	cursor: pointer;
	transition: 0.2s;
}

.task-item:hover {
	background: #FAFAFA;
}

.task-item input[type="checkbox"] {
	margin-top: 3px;
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: var(--sgh-success);
}

.task-item label {
	font-size: 13px;
	cursor: pointer;
	flex: 1;
	margin: 0;
}

.task-item.completed label {
	text-decoration: line-through;
	color: var(--sgh-text-light);
}

/* SEO Tip */
.seo-tip {
	margin-top: 16px;
	padding: 12px;
	background: #FEF3C7;
	border-radius: 6px;
	font-size: 12px;
	color: #92400E;
	border-left: 3px solid var(--sgh-warning);
}

/* Issues */
.issue {
	padding: 14px;
	border-radius: 8px;
	margin-bottom: 12px;
	border-left: 4px solid;
}

.issue h4 {
	font-size: 14px;
	margin: 0 0 6px 0;
}

.issue p {
	font-size: 12px;
	color: var(--sgh-text-light);
	margin: 0 0 4px 0;
}

.issue .fix {
	font-size: 12px;
	color: var(--sgh-text);
	margin-top: 6px;
}

.issue-critical {
	background: #FEF2F2;
	border-color: var(--sgh-critical);
}

.issue-warning {
	background: #FFFBEB;
	border-color: var(--sgh-warning);
}

.issue-info {
	background: #EFF6FF;
	border-color: var(--sgh-info);
}

/* Accessibility */
.sgh-slider:focus {
	outline: 2px solid var(--sgh-info);
	outline-offset: 2px;
}

.task-item input[type="checkbox"]:focus {
	outline: 2px solid var(--sgh-info);
	outline-offset: 2px;
}
