/**
 * Popup Block Styles
 * Styles for the Popup custom block
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* CSS Custom Properties - Can be overridden by WP core block settings */
.popup-block {
	--popup-bg-color: #5B4A3A;
	--popup-border-color: #FFF7E4;
	--popup-text-color: #FFF7E4;
	--popup-banner-bg: #FFF7E4;
	--popup-banner-text: #5B4A3A;
}

/* Main Container */
.popup-block {
	width: 100%;
	margin: 0 auto;
	position: relative;
	display: block;
}

.popup-container {
	width: 100%;
	max-width: 1320px;
	margin: 0 auto;
	position: relative;
}

/* Editor Preview - Show popup content in block editor */
.block-editor-page .popup-block,
.editor-styles-wrapper .popup-block,
.wp-block .popup-block,
.acf-block-preview .popup-block,
.acf-block-body .popup-block {
	position: relative;
	display: block;
	width: 100%;
	height: auto;
	min-height: auto;
	padding: 0;
	z-index: 1;
}

.block-editor-page .popup-block .popup-overlay,
.editor-styles-wrapper .popup-block .popup-overlay,
.wp-block .popup-block .popup-overlay,
.acf-block-preview .popup-block .popup-overlay,
.acf-block-body .popup-block .popup-overlay {
	display: none;
}

.block-editor-page .popup-block .popup-modal,
.editor-styles-wrapper .popup-block .popup-modal,
.wp-block .popup-block .popup-modal,
.acf-block-preview .popup-block .popup-modal,
.acf-block-body .popup-block .popup-modal {
	position: relative;
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Overlay - Hidden for normal block display */
.popup-overlay {
	display: none !important;
}

/* Hide overlay in editor */
.block-editor-page .popup-overlay,
.editor-styles-wrapper .popup-overlay,
.wp-block .popup-overlay,
.acf-block-preview .popup-overlay,
.acf-block-body .popup-overlay {
	display: none;
}

/* Modal Container - Now just a normal container */
.popup-modal {
	display: none !important;
}

/* Container - displays as normal block */
.popup-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
}

/* Close Button - Hidden for normal block display */
.popup-close {
	display: none !important;
}

.popup-close:hover,
.popup-close:focus {
	transform: scale(1.1);
	opacity: 0.9;
	outline: 2px solid var(--popup-border-color);
	outline-offset: 2px;
}

.popup-close:active {
	transform: scale(0.95);
}

.popup-close-icon {
	color: var(--popup-bg-color);
	font-size: 24px;
	line-height: 1;
	font-weight: bold;
	display: block;
}

/* Hide close button in editor */
.block-editor-page .popup-close,
.editor-styles-wrapper .popup-close,
.wp-block .popup-close,
.acf-block-preview .popup-close,
.acf-block-body .popup-close {
	display: none;
}

/* Half-Circle Banner */
.popup-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	content: '';
	position: absolute;
	top: 72px;
	left: -73px;
	width: 202px;
	height: 100px;
	border-radius: 280px 280px 0 0;
	background-color: #FFC856;
	z-index: 1;
	opacity: 1;
	color: var(--SMOKED, #6D240B);
	text-align: center;
/* Sticker */
	font-family: "Young Serif";
	font-size: 23px;
	font-style: normal;
	font-weight: 400;
	line-height: 100%; /* 23px */
	letter-spacing: -0.92px;
	transform: rotate(-16deg);
	Typography;
}

.popup-banner-text {
text-transform: lowercase;
    padding: 25px 12px 0;
    color: var(--SMOKED, #6D240B);
    text-align: center;
    font-family: "Young Serif";
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: -0.92px;
}

/* Popup Content */
.popup-content {
	position: relative;
	z-index: 2;
}

/* Title */
.popup-title {
	margin: 0;
	letter-spacing: 1px;
	color: var(--LEMON, #FFFB8B);
	text-align: center;
	

/* H1 */
	font-family: "Google Sans Flex";
	font-size: 65px;
	font-style: normal;
	font-weight: 800;
	line-height: 105%; /* 68.25px */
	text-transform: uppercase;
	letter-spacing: -0.2rem;
}

/* Description */
.popup-description {
	color: var(--LEMON-LIGHT, #FEFAC8);
	text-align: center;
/* Body */
	font-family: "Google Sans Flex";
	font-size: 17px;
	font-style: normal;
	font-weight: 500;
	line-height: 140%; /* 23.8px */
	letter-spacing: 0.34px;
	max-width: 400px;
	margin: 0 auto 30px;
}

/* Form Container */
.popup-form-container {
	margin: 0 0 30px;
}

.popup-form {
	width: 100%;
}

.popup-form-wpforms {
	/* WPForms will handle its own styling */
}

.popup-form-substack {
	display: flex;
	justify-content: center;
	align-items: center;
}

.popup-form-substack iframe {
	max-width: 100%;
	width: 380px;
}

/* Social Links */
.popup-social-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.popup-social-links li {
	margin: 0;
	padding: 0;
}

.popup-social-links a {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.popup-social-links a:hover,
.popup-social-links a:focus {
	transform: scale(1.1);
	opacity: 0.9;
}

.popup-social-links a:focus {
	outline: 2px solid var(--popup-border-color);
	outline-offset: 2px;
	border-radius: 50%;
}

.popup-social-links .social-icon {
	display: block;
	width: 32px;
	height: 32px;
}

/* Responsive Design */
@media (max-width: 600px) {
	.popup-title {
		font-size: 42px;
		letter-spacing: -0.1rem;
		max-width: 220px;
		margin: 0 auto 40px;
	}
	.popup-banner {
			width: 140px;
			height: 70px;
			padding: 0;
			font-size: 20px;
			left: 0;
			top: 52px;
	}
	.popup-banner-text {
			font-size: 16px;
				padding: 15px 12px 0;
	}
		.popup-form-container {
			margin: 0 0 15px;
		}
				.popup-description {
					color: var(--LEMON-LIGHT, #FEFAC8);
					text-align: center;
					font-family: "Google Sans Flex";
					font-size: 16px;
					font-style: normal;
					font-weight: 500;
					line-height: 140%;
					letter-spacing: 0.34px;
					max-width: 310px;
					margin: 0 auto 8px;
				}
}

/* Accessibility - Focus States */
.popup-block *:focus {
	outline: 2px solid var(--popup-border-color);
	outline-offset: 2px;
}

/* Override WP Core Block Color Classes */
.popup-block.has-background {
	/* Background color is applied to the modal, not the overlay */
}

.popup-block.has-text-color .popup-title,
.popup-block.has-text-color .popup-description {
	color: inherit;
}

/* Print Styles */
@media print {
	.popup-block {
		display: none !important;
	}
}

