<?php
/**
 * Title: Blog Coming Soon
 * Slug: technicalistic/coming-soon-blog
 * Categories: technicalistic-coming-soon, technicalistic
 * Description: Blog page coming soon content with emerald theme.
 */
?>
<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"5rem","bottom":"5rem"}}},"className":"jb-section-gradient-blog","layout":{"type":"constrained","contentSize":"48rem"}} -->
<div class="wp-block-group alignfull jb-section-gradient-blog" style="padding-top:5rem;padding-bottom:5rem">

	<?php if ( get_theme_mod( 'technicalistic_show_blog_launching', true ) ) : ?>
	<!-- wp:group {"className":"coming-soon-card emerald","style":{"spacing":{"padding":{"top":"3rem","right":"3rem","bottom":"3rem","left":"3rem"}}},"layout":{"type":"constrained"}} -->
	<div class="wp-block-group coming-soon-card emerald" style="padding-top:3rem;padding-right:3rem;padding-bottom:3rem;padding-left:3rem">

		<!-- wp:group {"className":"badge badge-emerald","style":{"spacing":{"margin":{"bottom":"1.5rem"}}},"layout":{"type":"flex","justifyContent":"center"}} -->
		<div class="wp-block-group badge badge-emerald" style="margin-bottom:1.5rem">
			<!-- wp:paragraph {"style":{"typography":{"fontSize":"0.875rem"}}} -->
			<p style="font-size:0.875rem">&#10024; <?php esc_html_e( 'Coming Soon', 'technicalistic' ); ?></p>
			<!-- /wp:paragraph -->
		</div>
		<!-- /wp:group -->

		<!-- wp:group {"className":"icon-emerald","style":{"spacing":{"margin":{"bottom":"1.5rem"}},"layout":{"selfStretch":"fit"}},"layout":{"type":"flex","justifyContent":"center"}} -->
		<div class="wp-block-group icon-emerald" style="margin-bottom:1.5rem">
			<!-- wp:paragraph {"style":{"typography":{"fontSize":"2rem"}}} -->
			<p style="font-size:2rem">&#128214;</p>
			<!-- /wp:paragraph -->
		</div>
		<!-- /wp:group -->

		<!-- wp:heading {"textAlign":"center","level":2,"style":{"typography":{"fontSize":"1.875rem","fontWeight":"700"},"spacing":{"margin":{"bottom":"1rem"}}},"textColor":"white"} -->
		<h2 class="wp-block-heading has-text-align-center has-white-color has-text-color" style="font-size:1.875rem;font-weight:700;margin-bottom:1rem"><?php echo esc_html( get_theme_mod( 'technicalistic_blog_launching_heading', __( 'Blog Launching Soon', 'technicalistic' ) ) ); ?></h2>
		<!-- /wp:heading -->

		<!-- wp:paragraph {"align":"center","style":{"typography":{"fontSize":"1.1rem"},"spacing":{"margin":{"bottom":"2rem"}}},"textColor":"slate-300"} -->
		<p class="has-text-align-center has-slate-300-color has-text-color" style="font-size:1.1rem;margin-bottom:2rem"><?php echo esc_html( get_theme_mod( 'technicalistic_blog_launching_text', __( 'A blog is on its way with insights, tips, and behind-the-scenes stories. Subscribe below to be notified when the first post goes live.', 'technicalistic' ) ) ); ?></p>
		<!-- /wp:paragraph -->

		<!-- wp:buttons {"layout":{"type":"flex","justifyContent":"center"}} -->
		<div class="wp-block-buttons">
			<!-- wp:button {"className":"btn-emerald btn-lg","style":{"border":{"radius":"0.625rem"}}} -->
			<div class="wp-block-button btn-emerald btn-lg"><a class="wp-block-button__link wp-element-button" style="border-radius:0.625rem">&#128226; <?php esc_html_e( 'Notify Me When Live', 'technicalistic' ); ?></a></div>
			<!-- /wp:button -->
		</div>
		<!-- /wp:buttons -->

	</div>
	<!-- /wp:group -->
	<?php endif; ?>

	<?php if ( get_theme_mod( 'technicalistic_show_upcoming_topics', true ) ) : ?>
	<!-- wp:group {"className":"upcoming-section-card emerald","style":{"spacing":{"margin":{"top":"3rem"},"padding":{"top":"2rem","right":"2rem","bottom":"2rem","left":"2rem"}},"border":{"radius":"0.75rem","width":"1px","color":"rgba(16,185,129,0.3)"}},"layout":{"type":"constrained"}} -->
	<div class="wp-block-group upcoming-section-card emerald has-border-color" style="border-color:rgba(16,185,129,0.3);border-width:1px;border-radius:0.75rem;margin-top:3rem;padding-top:2rem;padding-right:2rem;padding-bottom:2rem;padding-left:2rem">

		<!-- wp:heading {"level":3,"style":{"typography":{"fontSize":"1.5rem","fontWeight":"700"},"spacing":{"margin":{"bottom":"1.5rem"}}},"textColor":"white"} -->
		<h3 class="wp-block-heading has-white-color has-text-color" style="font-size:1.5rem;font-weight:700;margin-bottom:1.5rem">&#128161; <?php echo esc_html( get_theme_mod( 'technicalistic_upcoming_topics_heading', __( 'Upcoming Topics', 'technicalistic' ) ) ); ?></h3>
		<!-- /wp:heading -->

		<?php
		$topics_raw = get_theme_mod( 'technicalistic_upcoming_topics_items', "Getting started guides\nBehind-the-scenes stories\nIndustry best practices\nTools and workflow tips\nCase studies\nCreative process insights" );
		$topics = array_filter( array_map( 'trim', explode( "\n", $topics_raw ) ) );
		$icons  = array( '&#128187;', '&#128196;', '&#128187;', '&#128161;', '&#10024;', '&#128161;' );
		$half   = (int) ceil( count( $topics ) / 2 );
		$col1   = array_slice( $topics, 0, $half );
		$col2   = array_slice( $topics, $half );
		?>

		<!-- wp:columns {"style":{"spacing":{"blockGap":{"left":"1rem","top":"1rem"}}}} -->
		<div class="wp-block-columns">
			<!-- wp:column -->
			<div class="wp-block-column">
				<?php foreach ( $col1 as $i => $topic ) : ?>
				<!-- wp:group {"className":"upcoming-item emerald","layout":{"type":"flex","flexWrap":"nowrap"}} -->
				<div class="wp-block-group upcoming-item emerald">
					<!-- wp:paragraph {"className":"upcoming-icon emerald"} -->
					<p class="upcoming-icon emerald"><?php echo $icons[ $i % count( $icons ) ]; ?></p>
					<!-- /wp:paragraph -->
					<!-- wp:paragraph {"textColor":"slate-200","style":{"typography":{"fontSize":"0.95rem"}}} -->
					<p class="has-slate-200-color has-text-color" style="font-size:0.95rem"><?php echo esc_html( $topic ); ?></p>
					<!-- /wp:paragraph -->
				</div>
				<!-- /wp:group -->
				<?php endforeach; ?>
			</div>
			<!-- /wp:column -->

			<!-- wp:column -->
			<div class="wp-block-column">
				<?php foreach ( $col2 as $j => $topic ) : ?>
				<!-- wp:group {"className":"upcoming-item emerald","layout":{"type":"flex","flexWrap":"nowrap"}} -->
				<div class="wp-block-group upcoming-item emerald">
					<!-- wp:paragraph {"className":"upcoming-icon emerald"} -->
					<p class="upcoming-icon emerald"><?php echo $icons[ ( $half + $j ) % count( $icons ) ]; ?></p>
					<!-- /wp:paragraph -->
					<!-- wp:paragraph {"textColor":"slate-200","style":{"typography":{"fontSize":"0.95rem"}}} -->
					<p class="has-slate-200-color has-text-color" style="font-size:0.95rem"><?php echo esc_html( $topic ); ?></p>
					<!-- /wp:paragraph -->
				</div>
				<!-- /wp:group -->
				<?php endforeach; ?>
			</div>
			<!-- /wp:column -->
		</div>
		<!-- /wp:columns -->

	</div>
	<!-- /wp:group -->
	<?php endif; ?>

	<?php if ( get_theme_mod( 'technicalistic_show_what_to_expect', true ) ) : ?>
	<!-- wp:group {"className":"philosophy-section-card","style":{"spacing":{"margin":{"top":"2rem"},"padding":{"top":"2rem","right":"2rem","bottom":"2rem","left":"2rem"}},"border":{"radius":"0.75rem","width":"1px","color":"rgba(16,185,129,0.3)"}},"layout":{"type":"constrained"}} -->
	<div class="wp-block-group philosophy-section-card has-border-color" style="border-color:rgba(16,185,129,0.3);border-width:1px;border-radius:0.75rem;margin-top:2rem;padding-top:2rem;padding-right:2rem;padding-bottom:2rem;padding-left:2rem">

		<!-- wp:heading {"level":3,"style":{"typography":{"fontSize":"1.25rem","fontWeight":"700"},"spacing":{"margin":{"bottom":"1rem"}}},"textColor":"white"} -->
		<h3 class="wp-block-heading has-white-color has-text-color" style="font-size:1.25rem;font-weight:700;margin-bottom:1rem"><?php echo esc_html( get_theme_mod( 'technicalistic_what_to_expect_heading', __( 'What to Expect', 'technicalistic' ) ) ); ?></h3>
		<!-- /wp:heading -->

		<!-- wp:group {"className":"emerald-bullet-list","layout":{"type":"default"}} -->
		<div class="wp-block-group emerald-bullet-list">
			<?php
			$expect_raw = get_theme_mod( 'technicalistic_what_to_expect_items', "In-depth tutorials and how-to guides\nReal-world project case studies\nFrameworks and templates you can use\nTool reviews and workflow tips" );
			$expect_items = array_filter( array_map( 'trim', explode( "\n", $expect_raw ) ) );
			foreach ( $expect_items as $item ) :
			?>
			<!-- wp:paragraph {"textColor":"slate-200"} -->
			<p class="has-slate-200-color has-text-color"><?php echo esc_html( $item ); ?></p>
			<!-- /wp:paragraph -->
			<?php endforeach; ?>
		</div>
		<!-- /wp:group -->

	</div>
	<!-- /wp:group -->
	<?php endif; ?>

</div>
<!-- /wp:group -->
