/**
 * Step Block Styles — seo-steps-block layout
 */

.seo-steps-block {
    margin-bottom: 40px !important;
}

.seo-steps-block h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin-bottom: 12px !important;
}

.seo-steps-block > p {
    font-size: 15px !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
}

.steps-wrapper {
    display: flex !important;
    flex-direction: column !important;
}

/* Individual step */
.step-item {
    display: flex !important;
    gap: 16px !important;
    position: relative !important;
    padding-bottom: 40px !important;
}

/* Vertical line connecting steps */
.step-item::before {
    content: '' !important;
    position: absolute !important;
    top: 36px !important;
    left: 17px !important;
    bottom: 0 !important;
    width: 2px !important;
    background: var(--border-color) !important;
}

/* Last step has no downward line */
.step-item:last-child {
    padding-bottom: 0 !important;
}

.step-item:last-child::before {
    display: none !important;
}

/* Circle with step number */
.step-marker {
    width: 36px !important;
    height: 36px !important;
    background: var(--accent-color) !important;
    color: #000 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    box-shadow: 0 0 0 4px var(--bg-main) !important;
}

/* Step content */
.step-info {
    flex-grow: 1 !important;
    padding-top: 6px !important;
}

.step-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    margin-bottom: 8px !important;
}

.step-text {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
    margin-bottom: 16px !important;
}

/* Screenshot wrapper */
.step-img-wrap {
    width: 100% !important;
}

/* Placeholder if no image */
.img-placeholder {
    width: 100% !important;
    height: 180px !important;
    background: rgba(21, 26, 35, 0.5) !important;
    border: 1px dashed var(--border-color) !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-muted) !important;
    gap: 10px !important;
    font-size: 13px !important;
}

.img-placeholder i {
    font-size: 24px !important;
    color: var(--border-color) !important;
}

/* Real image */
.step-img-wrap img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Desktop */
@media (min-width: 768px) {
    .step-item {
        gap: 24px !important;
    }

    .step-item::before {
        left: 21px !important;
    }

    .step-marker {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }

    .step-info {
        padding-top: 10px !important;
    }

    .img-placeholder {
        height: 250px !important;
    }
}

/* Override Tailwind margin helpers */
.main-blocks .seo-steps-block {
    margin-top: 0 !important;
    margin-bottom: 40px !important;
}
