/* =========================================================
   Ivy SEO Report — Frontend Styles
   ========================================================= */

/* ---- Wrapper ---- */
.ivy-seo-wrap {
	max-width: 680px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: #1a1a2e;
}

/* ---- Header ---- */
.ivy-seo-header {
	background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
	border-radius: 12px 12px 0 0;
	padding: 32px 36px;
	color: #fff;
	margin-bottom: 0;
}

.ivy-seo-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ivy-logo-icon {
	font-size: 24px;
}

.ivy-logo-text {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.3px;
	color: #fff;
}

.ivy-seo-tagline {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.7);
	margin: 0;
	line-height: 1.5;
}

/* ---- Form ---- */
.ivy-seo-form {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-top: none;
	border-radius: 0 0 12px 12px;
	padding: 28px 36px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

.ivy-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 6px;
}

.ivy-required {
	color: #e94560;
	margin-left: 3px;
}

/* ---- Input ---- */
.ivy-input {
	display: block;
	width: 100%;
	padding: 10px 14px;
	font-size: 14px;
	border: 1.5px solid #cbd5e0;
	border-radius: 7px;
	background: #fafafa;
	color: #1a1a2e;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	box-sizing: border-box;
	-webkit-appearance: none;
}

.ivy-input:focus {
	outline: none;
	border-color: #0f3460;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.12);
}

.ivy-input.ivy-input-error {
	border-color: #e94560;
	box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

/* ---- Radio cards ---- */
.ivy-radio-group {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.ivy-radio-card {
	flex: 1;
	min-width: 140px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 18px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
	background: #fafafa;
	position: relative;
}

.ivy-radio-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.ivy-radio-card:hover {
	border-color: #0f3460;
	background: #f0f4ff;
}

.ivy-radio-card.ivy-selected {
	border-color: #e94560;
	background: #fff0f3;
	box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

.ivy-radio-icon {
	font-size: 28px;
	margin-bottom: 8px;
	display: block;
}

.ivy-radio-title {
	font-size: 13px;
	font-weight: 700;
	color: #1a1a2e;
	display: block;
	margin-bottom: 4px;
}

.ivy-radio-desc {
	font-size: 11px;
	color: #718096;
	display: block;
	line-height: 1.4;
}

/* ---- Error messages ---- */
.ivy-error-msg {
	display: block;
	font-size: 12px;
	color: #e94560;
	margin-top: 5px;
	font-weight: 500;
	min-height: 16px;
}

/* ---- Submit button ---- */
.ivy-submit-group {
	margin-bottom: 0;
}

.ivy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 700;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: opacity 0.18s, transform 0.12s;
	text-decoration: none;
}

.ivy-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.ivy-btn:active {
	transform: translateY(0);
}

.ivy-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
}

.ivy-btn-primary {
	background: linear-gradient(135deg, #e94560, #c0392b);
	color: #fff;
	width: 100%;
}

.ivy-btn-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ivy-spin 0.65s linear infinite;
}

.ivy-btn-loading .ivy-btn-spinner {
	display: block;
}

.ivy-btn-loading .ivy-btn-text {
	opacity: 0.7;
}

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

/* ---- Status messages ---- */
.ivy-status {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.5;
}

.ivy-status.ivy-status-success {
	background: #f0faf4;
	border: 1px solid #68d391;
	color: #2f855a;
}

.ivy-status.ivy-status-error {
	background: #fff5f5;
	border: 1px solid #fc8181;
	color: #c53030;
}

.ivy-status.ivy-status-info {
	background: #ebf8ff;
	border: 1px solid #63b3ed;
	color: #2b6cb0;
}

/* ---- Results panel ---- */
.ivy-results-panel {
	margin-top: 24px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px 28px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ivy-results-panel h3 {
	font-size: 16px;
	font-weight: 700;
	color: #0f3460;
	margin: 0 0 14px;
	border-bottom: 2px solid #e94560;
	padding-bottom: 8px;
}

/* ---- Download button inside results ---- */
.ivy-download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #0f3460, #1a1a2e);
	color: #fff !important;
	text-decoration: none !important;
	padding: 11px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	margin-top: 12px;
	transition: opacity 0.18s;
}

.ivy-download-btn:hover {
	opacity: 0.88;
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
	.ivy-seo-header,
	.ivy-seo-form {
		padding: 20px 18px;
	}

	.ivy-radio-group {
		flex-direction: column;
	}

	.ivy-radio-card {
		flex-direction: row;
		text-align: left;
		padding: 12px 14px;
	}

	.ivy-radio-icon {
		font-size: 22px;
		margin-bottom: 0;
		margin-right: 12px;
	}
}
