/*
Theme Name:  Starter by Magal Global
Theme URI:   https://magalglobal.com
Author:      Magal Global
Author URI:  https://magalglobal.com
Description: A minimal, full-width block theme designed for AI SiteCrafter. Clean header, minimal footer, zero layout constraints — lets the plugin's design system shine.
Version:     1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: starter-by-magal-global
Tags:        full-site-editing, block-patterns, wide-blocks, full-width-template
*/

/* ===== Reset / Base ===== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* ===== Full-width support ===== */
/* Let AI SiteCrafter breakout sections span the full viewport. */
.entry-content > *,
.wp-block-post-content > * {
	max-width: none;
}

/* ===== Header ===== */
.smg-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	transition: background 0.3s, box-shadow 0.3s;
}

.smg-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 40px);
	height: 72px;
}

.smg-header .wp-block-site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.smg-header .wp-block-site-title a {
	text-decoration: none;
	color: #0f172a;
}

.smg-header .wp-block-navigation {
	gap: 0;
}

.smg-header .wp-block-navigation a {
	font-size: 0.9rem;
	font-weight: 500;
	color: #334155;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 8px;
	transition: background 0.2s, color 0.2s;
}

.smg-header .wp-block-navigation a:hover {
	background: rgba(0, 0, 0, 0.04);
	color: #0f172a;
}

/* ===== Footer ===== */
.smg-footer {
	background: #0f172a;
	color: #94a3b8;
	padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 40px);
}

.smg-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	max-width: 1280px;
	margin: 0 auto;
}

.smg-footer .wp-block-site-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.smg-footer .wp-block-site-title a {
	color: #f8fafc;
	text-decoration: none;
}

.smg-footer-copy {
	font-size: 0.85rem;
	color: #64748b;
}

.smg-footer .wp-block-navigation a {
	font-size: 0.85rem;
	color: #94a3b8;
	text-decoration: none;
	transition: color 0.2s;
}

.smg-footer .wp-block-navigation a:hover {
	color: #f8fafc;
}

/* ===== Content area — no artificial width constraints ===== */
.wp-block-post-content {
	max-width: none;
	padding: 0;
}

/* Constrained blocks still get a centered max-width. */
.wp-block-post-content > .alignwide {
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.wp-block-post-content > .alignfull {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* ===== 404 ===== */
.smg-404 {
	text-align: center;
	padding: clamp(80px, 15vw, 200px) clamp(16px, 4vw, 40px);
}

.smg-404 h1 {
	font-size: clamp(3rem, 8vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	color: #0f172a;
	margin: 0 0 16px;
}

.smg-404 p {
	font-size: 1.125rem;
	color: #64748b;
	max-width: 480px;
	margin: 0 auto 32px;
}

/* ===== Search ===== */
.smg-search-header {
	text-align: center;
	padding: clamp(48px, 8vw, 100px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 48px);
}

/* ===== Archive ===== */
.smg-archive-header {
	text-align: center;
	padding: clamp(48px, 8vw, 100px) clamp(16px, 4vw, 40px) clamp(24px, 4vw, 48px);
}

/* ===== Responsive mobile nav ===== */
@media (max-width: 768px) {
	.smg-header-inner {
		height: 60px;
	}
}
