/* Layout Builder Styling - Deepal Theme */

/* Layout Builder Interface */
.layout-builder-form {
    font-family: "Inter", sans-serif;
}

.layout-builder__link {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin: 10px 5px;
}

.layout-builder__link:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Layout regions */
.layout-builder__region {
    border: 2px dashed #dee2e6;
    padding: 20px;
    margin: 10px 0;
    min-height: 60px;
    border-radius: 4px;
    position: relative;
}

.layout-builder__region--is-empty {
    background: #f8f9fa;
    text-align: center;
}

.layout-builder__region--is-empty:before {
    content: "Drop content here";
    color: #6c757d;
    font-style: italic;
}

/* Blocks in layout builder */
.layout-builder-block {
    border: 1px solid #dee2e6;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    background: white;
    position: relative;
}

.layout-builder-block:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

/* Block controls */
.layout-builder-block__controls {
    position: absolute;
    top: -15px;
    right: 10px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 5px;
}

.layout-builder-block__controls .dropbutton {
    margin: 0;
}

/* Layout selection */
.layout-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.layout-option {
    border: 2px solid #dee2e6;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layout-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.layout-option.selected {
    border-color: #007bff;
    background: #e3f2fd;
}

/* Bootstrap-like layouts for sections */
.layout--onecol {
    width: 100%;
}

.layout--twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.layout--threecol {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.layout--twocol-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Custom sections styling */
.section-wrapper {
    padding: 60px 0;
}

.section-wrapper.bg-light {
    background: #f8f9fa;
}

.section-wrapper.bg-dark {
    background: #343a40;
    color: white;
}

.section-wrapper.bg-primary {
    background: #007bff;
    color: white;
}

/* Container classes for content */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Custom block styling */
.block-custom {
    margin-bottom: 30px;
}

.block-custom h2,
.block-custom h3,
.block-custom h4 {
    font-family: "fzlantingheis-m-gbregular", sans-serif;
    margin-bottom: 20px;
}

.block-custom p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Button styling */
.btn-deepal {
    background: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-deepal:hover {
    background: #0056b3;
    color: white;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {

    .layout--twocol,
    .layout--threecol,
    .layout--twocol-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-wrapper {
        padding: 40px 0;
    }
}