/**
 * SEO & KI Analyse – Frontend Styles
 */

/* Container */
.skia-container {
	max-width: 800px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	color: #333;
	line-height: 1.6;
}

/* Form */
.skia-form-wrapper {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.skia-form-header {
	text-align: center;
	margin-bottom: 32px;
}

.skia-form-header h3 {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
}

.skia-form-header p {
	font-size: 16px;
	color: #666;
	margin: 0;
}

.skia-form-group {
	margin-bottom: 20px;
}

.skia-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #444;
	margin-bottom: 6px;
}

.skia-form-group input[type="text"],
.skia-form-group input[type="email"],
.skia-form-group input[type="url"],
.skia-form-group input[type="tel"] {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
	background: #fafafa;
}

.skia-form-group input:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	background: #fff;
}

.skia-form-row {
	display: flex;
	gap: 16px;
}

.skia-form-half {
	flex: 1;
}

.skia-required {
	color: #dc2626;
}

.skia-optional {
	font-weight: 400;
	color: #999;
	font-size: 12px;
}

.skia-form-checkbox {
	margin-top: 8px;
	margin-bottom: 24px;
}

.skia-form-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	color: #555;
}

.skia-form-checkbox input[type="checkbox"] {
	margin-top: 4px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	accent-color: #2563eb;
}

.skia-form-checkbox a {
	color: #2563eb;
	text-decoration: underline;
}

.skia-form-checkbox a:hover {
	color: #1d4ed8;
}

/* Submit Button */
.skia-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 14px 32px;
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
	gap: 8px;
}

.skia-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.skia-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Spinner */
.skia-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: skia-spin 0.6s linear infinite;
}

@keyframes skia-spin {
	to { transform: rotate(360deg); }
}

/* Error Message */
.skia-form-error {
	margin-top: 12px;
	padding: 12px 16px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #dc2626;
	font-size: 14px;
}

/* Results */
.skia-results-wrapper {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.skia-results-header {
	text-align: center;
	margin-bottom: 32px;
}

.skia-results-header h3 {
	font-size: 28px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
}

.skia-analyzed-url {
	font-size: 14px;
	color: #666;
	word-break: break-all;
}

/* Score Overview */
.skia-score-overview {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 48px;
	margin-bottom: 40px;
	padding: 32px;
	background: linear-gradient(135deg, #f8fafc, #eef2ff);
	border-radius: 12px;
}

.skia-score-circle {
	position: relative;
	width: 160px;
	height: 160px;
	text-align: center;
}

.skia-score-circle svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.skia-score-bg {
	fill: none;
	stroke: #e5e7eb;
	stroke-width: 8;
}

.skia-score-fill {
	fill: none;
	stroke: #2563eb;
	stroke-width: 8;
	stroke-linecap: round;
	stroke-dasharray: 339.292;
	stroke-dashoffset: 339.292;
	transition: stroke-dashoffset 1.5s ease-in-out, stroke 0.3s;
}

.skia-score-fill.skia-score--good { stroke: #16a34a; }
.skia-score-fill.skia-score--ok { stroke: #eab308; }
.skia-score-fill.skia-score--bad { stroke: #dc2626; }

.skia-score-value {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -60%);
	font-size: 42px;
	font-weight: 800;
	color: #1a1a2e;
}

.skia-score-label {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 14px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.skia-sub-scores {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.skia-sub-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 16px 28px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	min-width: 120px;
}

.skia-sub-score-value {
	font-size: 32px;
	font-weight: 800;
	color: #1a1a2e;
}

.skia-sub-score-label {
	font-size: 12px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Detail Sections */
.skia-detail-section {
	margin-bottom: 32px;
}

.skia-detail-section h4 {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 16px;
	padding-bottom: 8px;
	border-bottom: 2px solid #e5e7eb;
}

/* Check Items */
.skia-check-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #f3f4f6;
}

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

.skia-check-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	margin-top: 2px;
}

.skia-check-icon--success { background: #16a34a; }
.skia-check-icon--warning { background: #eab308; }
.skia-check-icon--error { background: #dc2626; }

.skia-check-content {
	flex: 1;
}

.skia-check-label {
	font-size: 15px;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 4px;
}

.skia-check-detail {
	font-size: 14px;
	color: #666;
	line-height: 1.5;
}

.skia-check-score {
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
	margin-top: 2px;
}

.skia-check-score--success { background: #dcfce7; color: #16a34a; }
.skia-check-score--warning { background: #fef9c3; color: #a16207; }
.skia-check-score--error { background: #fef2f2; color: #dc2626; }

/* Details Teaser */
.skia-details-teaser {
	text-align: center;
	padding: 32px 24px;
	background: linear-gradient(135deg, #f8fafc, #faf5ff);
	border: 2px dashed #c4b5fd;
	border-radius: 12px;
	margin-bottom: 28px;
}

.skia-teaser-lock {
	font-size: 36px;
	margin-bottom: 12px;
}

.skia-details-teaser h4 {
	font-size: 20px;
	font-weight: 700;
	color: #1a1a2e;
	margin: 0 0 8px;
}

.skia-details-teaser > p {
	font-size: 15px;
	color: #666;
	max-width: 520px;
	margin: 0 auto 20px;
	line-height: 1.6;
}

.skia-teaser-preview {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 400px;
	margin: 0 auto 20px;
}

.skia-teaser-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	background: #fff;
	border-radius: 8px;
	font-size: 14px;
	color: #444;
	text-align: left;
}

.skia-teaser-blur {
	filter: blur(2px);
	opacity: 0.6;
	user-select: none;
	pointer-events: none;
}

.skia-teaser-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #16a34a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
}

.skia-teaser-icon--warn {
	background: #eab308;
}

.skia-teaser-icon--err {
	background: #dc2626;
}

.skia-teaser-more {
	font-size: 13px;
	color: #999;
	font-style: italic;
	margin-top: 4px;
}

.skia-teaser-cta {
	font-size: 14px;
	font-weight: 600;
	color: #7c3aed;
}

/* Email Confirmation Notice */
.skia-email-notice {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 20px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 10px;
	margin-bottom: 28px;
}

.skia-email-notice-icon {
	font-size: 24px;
	flex-shrink: 0;
	margin-top: 2px;
}

.skia-email-notice-text strong {
	font-size: 15px;
	color: #1e40af;
}

.skia-email-notice-text p {
	margin: 4px 0 0;
	font-size: 14px;
	color: #3b82f6;
	line-height: 1.5;
}

/* New Analysis */
.skia-new-analysis {
	text-align: center;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 2px solid #e5e7eb;
}

.skia-new-analysis .skia-submit-btn {
	width: auto;
	padding: 12px 40px;
	font-size: 16px;
}

/* Responsive */
@media (max-width: 640px) {
	.skia-form-wrapper,
	.skia-results-wrapper {
		padding: 24px 20px;
	}

	.skia-form-row {
		flex-direction: column;
		gap: 0;
	}

	.skia-score-overview {
		flex-direction: column;
		gap: 24px;
		padding: 24px 16px;
	}

	.skia-sub-scores {
		flex-direction: row;
		gap: 12px;
	}

	.skia-sub-score {
		padding: 12px 20px;
		min-width: 0;
		flex: 1;
	}

	.skia-form-header h3,
	.skia-results-header h3 {
		font-size: 22px;
	}
}
