/* ===== Preview Area (outer frame, always #0F1A38) ===== */
.sc-fp-preview {
	position: relative;
	width: 977px;
	height: 461px;
	max-width: 100%;
	background-color: #0F1A38;
	border-radius: 8px;
	overflow: hidden;
	box-sizing: border-box;
	margin-bottom: 20px;
}

/* ===== Frame Action Buttons (top-right of dark frame) ===== */
.sc-fp-frame-actions {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	display: flex;
	gap: 6px;
}

.sc-fp-frame-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 6px;
	margin: 0;
	color: #0F1A38;
	background: #ffffff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: auto
}

.sc-fp-frame-btn:hover {
	background: #e8e8e8;
	color: #0F1A38;
}

.sc-fp-frame-btn:active {
	transform: scale(0.95);
}

.sc-fp-frame-btn svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.sc-fp-frame-btn.downloading {
	opacity: 0.5;
	cursor: wait;
}

/* ===== Showcase Visibility ===== */
.sc-fp-content-cover-slide,
.sc-fp-content-business-card,
.sc-fp-content-website-header,
.sc-fp-content-instagram-post,
.sc-fp-content-resume-header {
	display: none !important;
}

/* --- Cover Slide --- */
.sc-fp-preview[data-showcase="cover-slide"] .sc-fp-content-cover-slide {
	display: flex !important;
	top: 20px;
	left: 100px;
	right: 125px;
	bottom: 20px;
}

/* --- Business Card --- */
.sc-fp-preview[data-showcase="business-card"] .sc-fp-content-business-card {
	display: flex !important;
	top: 90px;
	left: 225px;
	right: 225px;
	bottom: 90px;
}
.sc-fp-preview[data-showcase="business-card"] .sc-fp-export-svg,
.sc-fp-preview[data-showcase="business-card"] .sc-fp-export-image {
	display: none !important;
}

/* --- Website Header --- */
.sc-fp-preview[data-showcase="website-header"] .sc-fp-content-website-header {
	display: flex !important;
	top: 75px;
	left: 55px;
	right: 55px;
	bottom: 0;
	padding: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.sc-fp-preview[data-showcase="website-header"] .sc-fp-export-svg,
.sc-fp-preview[data-showcase="website-header"] .sc-fp-export-image {
	display: none !important;
}

/* --- Instagram Post --- */
.sc-fp-preview[data-showcase="instagram-post"] .sc-fp-content-instagram-post {
	display: flex !important;
	top: 35px;
	left: 290px;
	right: 290px;
	bottom: 35px;
	padding: 27px 19px 19px;
}
.sc-fp-preview[data-showcase="instagram-post"] .sc-fp-export-svg,
.sc-fp-preview[data-showcase="instagram-post"] .sc-fp-export-image {
	display: none !important;
}

/* --- Resume Header --- */
.sc-fp-preview[data-showcase="resume-header"] .sc-fp-content-resume-header {
	display: flex !important;
	top: 35px;
	left: 290px;
	right: 290px;
	bottom: 35px;
	padding: 0;
}
.sc-fp-preview[data-showcase="resume-header"] .sc-fp-export-svg,
.sc-fp-preview[data-showcase="resume-header"] .sc-fp-export-image {
	display: none !important;
}

.sc-fp-instagram-post {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Background SVG (fixed decoration, no palette change) */
.sc-fp-instagram-bg-svg {
	position: absolute;
	top: 45px;
	left: 0;
	width: 60%;
	height: auto;
	pointer-events: none;
	z-index: 0;
}

.sc-fp-instagram-inner {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	flex: 1;
	min-height: 0;
	position: relative;
	z-index: 1;
	padding: 20px 0 0;
	gap: 8px;
	background-size: auto 74%;
	background-position: right center;
	background-repeat: no-repeat;
}

/* Instagram draggable elements */
.sc-fp-ig-draggable {
	max-width: none;
}

.sc-fp-ig-draggable .sc-fp-drag-handle {
	left: -20px;
	color: var(--preview-color-1, var(--preview-text, #0F1A38));
}

.sc-fp-instagram-title {
	font-size: 50px;
	font-weight: 700;
	line-height: 1;
	margin: 0;
	color: var(--preview-text, #0F1A38);
	outline: none;
	text-transform: uppercase;
}

.sc-fp-instagram-btn {
	display: inline-block;
	width: fit-content;
	padding: 6px 14px;
	font-size: 8px;
	color: #ffffff;
	background: var(--preview-color-2, #AA3030);
	border: none;
	border-radius: 15px;
	cursor: text;
	outline: none;
}

.sc-fp-instagram-body {
	font-size: 10px;
	line-height: 1.5;
	color: #0F1A38;
	margin-top: 30px;
	outline: none;
	width: 45%;
}

/* Full-width CTA footer */
.sc-fp-instagram-footer {
	position: relative;
	z-index: 1;
	padding: 0;
}

.sc-fp-instagram-footer .sc-fp-draggable {
	max-width: 100%;
}
.sc-fp-instagram-url {
	display: block;
	width: 100%;
	text-align: center;
	padding: 8px 16px;
	font-size: 10px;
	font-weight: 600;
	color: #ffffff;
	background: var(--preview-color-2, #AA3030);
	border-radius: 20px;
	outline: none;
}

/* Focus states */
.sc-fp-instagram-title:focus,
.sc-fp-instagram-btn:focus,
.sc-fp-instagram-body:focus,
.sc-fp-instagram-url:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 2px;
}

/* ===== Website Header Layout ===== */
.sc-fp-content-website-header {
	border-radius: 8px 8px 0 0;
}

.sc-fp-website-header {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Browser bar (Safari style) */
.sc-fp-website-browser-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	background: #ffffff;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	flex-shrink: 0;
}

.sc-fp-browser-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.sc-fp-browser-dot--close { background: #ff5f57; }
.sc-fp-browser-dot--minimize { background: #ffbd2e; }
.sc-fp-browser-dot--maximize { background: #28c840; }

/* Two-column body */
.sc-fp-website-body {
	flex: 1;
	display: flex;
	min-height: 0;
}

.sc-fp-website-image {
	flex: 0 0 45%;
	overflow: hidden;
}

.sc-fp-website-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sc-fp-website-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 32px;
	gap: 10px;
	background: var(--preview-bg, #ffffff);
}

.sc-fp-website-title {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	color: var(--preview-color-1, var(--preview-text, #1e293b));
	outline: none;
}

.sc-fp-website-subtitle {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	color: var(--preview-color-1, var(--preview-text, #64748b));
	outline: none;
}

.sc-fp-website-cta {
	display: inline-block;
	width: fit-content;
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background: var(--preview-color-2, var(--preview-color-1, #4361ee));
	border-radius: 20px;
	cursor: text;
	outline: none;
	margin-top: 4px;
}

/* Website Header draggable elements */
.sc-fp-wh-draggable {
	max-width: none;
}

.sc-fp-wh-draggable .sc-fp-drag-handle {
	left: -24px;
	color: var(--preview-color-1, var(--preview-text, #1e293b));
}

/* ===== Resume Header Layout ===== */
.sc-fp-resume {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px 32px;
	gap: 4px;
}

/* Profile photo with palette-responsive border */
.sc-fp-resume-photo-wrapper {
	width: 95px;
	height: 95px;
	border-radius: 100%;
	border: 3px solid var(--preview-color-2, #AA3030);
	overflow: hidden;
	flex-shrink: 0;
	margin-bottom: 8px;
}

.sc-fp-resume-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 100%;
}

.sc-fp-resume-name {
	font-size: 50px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	margin: 0;
	color: var(--preview-color-1, var(--preview-text, #0F1A38));
	outline: none;
	text-transform: uppercase;
}

.sc-fp-resume-divider {
	width: 100%;
	height: 4px;
	background: var(--preview-color-1, var(--preview-text, #0F1A38));
	margin: 12px 0;
	opacity: 0.8;
}

.sc-fp-resume-text {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	color: var(--preview-color-1, var(--preview-text, #0F1A38));
	outline: none;
}

/* Resume Header draggable elements */
.sc-fp-rh-draggable {
	max-width: none;
}

.sc-fp-rh-draggable .sc-fp-drag-handle {
	left: -24px;
	color: var(--preview-color-1, var(--preview-text, #0F1A38));
}

/* Focus states for website header and resume header */
.sc-fp-website-title:focus,
.sc-fp-website-subtitle:focus,
.sc-fp-website-cta:focus,
.sc-fp-resume-name:focus,
.sc-fp-resume-text:focus {
	background-color: rgba(255, 255, 255, 0.15);
	border-radius: 2px;
}

@media screen and (max-width: 768px) {
	.sc-fp-preview[data-showcase="cover-slide"] .sc-fp-content-cover-slide,
	.sc-fp-preview[data-showcase="website-header"] .sc-fp-content-website-header {
		right: 20px;
		left: 20px;
	}

	.sc-fp-preview[data-showcase="business-card"] .sc-fp-content-business-card,
	.sc-fp-preview[data-showcase="instagram-post"] .sc-fp-content-instagram-post,
	.sc-fp-preview[data-showcase="resume-header"] .sc-fp-content-resume-header {
		right: 100px;
		left: 100px;
	}
}