/**
 * LearnDash Start Course/Group Buttons - Block Editor Styles
 */

/* Block wrapper in editor */
.wp-block-ldsb-start-button {
    padding: 10px;
    border: 1px dashed #ddd;
    background: #f9f9f9;
    border-radius: 4px;
    margin: 20px 0;
}

/* Prevent button interaction in editor */
.wp-block-ldsb-start-button .ldsb-start-button {
    pointer-events: none;
}

/* Selected block styling */
.wp-block-ldsb-start-button.is-selected {
    border-color: #007cba;
    background: #f0f8ff;
}

/* Button preview in editor - import main styles */
.wp-block-ldsb-start-button .ldsb-button-wrapper {
    margin: 10px 0;
    display: block;
}

.wp-block-ldsb-start-button .ldsb-start-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background-color: #2d7a2d;
    color: #f6f6f6;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(45, 122, 45, 0.3);
    border: none;
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
}

.wp-block-ldsb-start-button .ldsb-button-text {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.wp-block-ldsb-start-button .ldsb-button-arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Block placeholder when no course selected */
.wp-block-ldsb-start-button.no-course::before {
    content: "LearnDash Start Course Button: Configure course ID in block settings";
    display: block;
    color: #757575;
    font-size: 13px;
    margin-bottom: 10px;
    font-style: italic;
}

/* Alignment in editor preview */
.wp-block-ldsb-start-button.align-left .ldsb-button-wrapper {
    text-align: left;
}

.wp-block-ldsb-start-button.align-center .ldsb-button-wrapper {
    text-align: center;
}

.wp-block-ldsb-start-button.align-right .ldsb-button-wrapper {
    text-align: right;
}
