/**
 * Dave Photography - Gutenberg Blocks & Editor Styling
 *
 * Provides dedicated styles for custom Gutenberg blocks in both the editor canvas and frontend.
 *
 * @package Dave_Photography
 */

/* Block Editor Canvas Wrappers */
.dave-block-editor-preview {
    background: #111111;
    color: #ffffff;
    padding: 24px;
    border-radius: 6px;
    border: 1px solid #282828;
    margin: 15px 0;
    font-family: inherit;
}

.dave-block-editor-preview .dave-block-badge {
    display: inline-block;
    background: #2271b1;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.dave-block-editor-preview h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #ffffff;
}

.dave-block-editor-preview p {
    margin: 0 0 12px 0;
    color: #aaaaaa;
    font-size: 13px;
    line-height: 1.5;
}

.dave-block-editor-preview .dave-block-meta {
    background: #1a1a1a;
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 12px;
    color: #cccccc;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.dave-block-editor-preview .dave-block-meta strong {
    color: #ffffff;
}

.dave-hero-banner-block {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 821px) {
    .dave-hero-banner-block {
        background-attachment: fixed;
    }
}

.dave-hero-banner-block .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.dave-hero-banner-block .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.dave-hero-banner-block .hero-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.dave-hero-banner-block .hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #e0e0e0;
    margin-bottom: 24px;
}

/* Full-width block canvas layout */
.site-main--blocks {
    width: 100%;
    margin: 0;
    padding: 0;
}

.site-main--blocks > section {
    width: 100%;
}

/* Center standard core blocks inside full-width canvas */
.site-main--blocks > :not(section):not(.home-section):not(.service-section):not(.photography-section):not(.pricing):not(.contact-section):not(.alignfull) {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure alignfull blocks stretch edge to edge */
.alignfull {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: 100vw !important;
    width: 100vw !important;
}

.alignwide {
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
