/* Custom Hero Block Styles */
.wp-block-cakeclub-custom-hero {
    width: 100%;
    position: relative;
}

.custom-hero-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    min-height: 400px;
}

.custom-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.custom-hero-content {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-hero-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.custom-hero-subheading {
    font-family: 'BN Tillsdale', serif !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 0 0 5px 0;
    padding: 0;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: none;
    display: block;
    max-width: 100%;
    word-wrap: break-word;
}

.custom-hero-heading {
    font-family: 'Mindset', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: normal;
    text-align: center;
    margin: 0;
    padding: 20px 40px;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

/* Alignment variations */
.custom-hero-align-left .custom-hero-content {
    justify-content: flex-start;
}

.custom-hero-align-left .custom-hero-text-wrapper {
    align-items: flex-start;
    text-align: left;
}

.custom-hero-align-left .custom-hero-subheading,
.custom-hero-align-left .custom-hero-heading {
    text-align: left;
}

.custom-hero-align-right .custom-hero-content {
    justify-content: flex-end;
}

.custom-hero-align-right .custom-hero-text-wrapper {
    align-items: flex-end;
    text-align: right;
}

.custom-hero-align-right .custom-hero-subheading,
.custom-hero-align-right .custom-hero-heading {
    text-align: right;
}

.custom-hero-align-center .custom-hero-content {
    justify-content: center;
}

.custom-hero-align-center .custom-hero-text-wrapper {
    align-items: center;
    text-align: center;
}

.custom-hero-align-center .custom-hero-subheading,
.custom-hero-align-center .custom-hero-heading {
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .custom-hero-container {
        min-height: 300px !important;
    }
    
    .custom-hero-heading {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        padding: 15px 25px;
        letter-spacing: 1px;
    }
    
    .custom-hero-content {
        padding: 0 15px;
    }
    
    .custom-hero-subheading {
        font-size: 1.2rem;
        margin-bottom: 4px;
        letter-spacing: 0.5px;
    }

    /* On mobile, always center align for better readability */
    .custom-hero-content {
        justify-content: center;
    }
    
    .custom-hero-text-wrapper {
        align-items: center;
        text-align: center;
    }
    
    .custom-hero-subheading,
    .custom-hero-heading {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .custom-hero-subheading {
        font-size: 1rem;
        margin-bottom: 3px;
    }
    
    .custom-hero-heading {
        font-size: clamp(1.2rem, 7vw, 2rem);
        padding: 12px 20px;
    }
}

/* Editor specific styles */
.wp-block-editor .wp-block-cakeclub-custom-hero {
    margin-bottom: 20px;
}

.wp-block-editor .custom-hero-container {
    border: 2px dashed #ccc;
    min-height: 200px;
}

.wp-block-editor .custom-hero-heading {
    pointer-events: none;
}