/*
Theme Name: Stitch Custom Theme
Theme URI: https://example.com/stitch-theme
Author: Kilo & User
Description: A modern, minimalist custom block theme inspired by the Stitch design for The Curated Lens.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stitch-theme
*/

/* Precision Layout Fixes */
/* Override the global WordPress variable for any element marked as full-width */
.alignfull, 
.wp-block-group.alignfull, 
.wp-block-cover.alignfull {
    --wp--style--global--content-size: 100% !important;
    --wp--style--global--wide-size: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure all potential parent containers allow children to expand */
.site, 
.site-main, 
.wp-site-block, 
.wp-block-group, 
.entry-content {
    max-width: none !important;
    width: 100% !important;
}

/* Force 4-column layout for luxury grids to prevent wrapping */
.wp-block-columns.alignwide,
.wp-block-columns.alignfull {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2rem;
}

.wp-block-columns.alignwide .wp-block-column,
.wp-block-columns.alignfull .wp-block-column {
    flex: 1 1 0 !important;
    width: 25% !important;
}

/* Fix for WordPress image wrappers that default to display: table */
figure, 
.wp-block-image, 
.wp-block-image figure {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Professional Typography for 2026 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, .luxury-heading {
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Modern Button Styling */
.btn-luxury, .wp-block-button__link {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 1rem 2.5rem;
    display: inline-block;
}

.btn-luxury:hover, .wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.wp-block-html {
    width: 100%;
    max-width: 100%;
}
