/**
 * Steps Block Styles
 * 
 * Minimal CSS - most styling handled by Tailwind in template.php
 */

/* Gradient background overlay for gradient theme */
.block-steps.bg-gradient-to-br::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Grid layout (no images) */
.step-item.step-grid {
    height: 100%;
}

.step-item.step-grid .step-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item.step-grid .step-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Traditional layout - no image - center content */
.step-item.no-image:not(.step-grid) .step-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Text content last paragraph margin */
.step-text p:last-child {
    margin-bottom: 0;
}

/* Full width buttons on mobile */
@media (max-width: 991px) {
    .step-buttons .tbs-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation initial states - prevent flash of unstyled content */
.step-number-badge,
.step-title,
.step-heading,
.step-text,
.step-buttons,
.step-image {
    will-change: transform, opacity;
}

/* Responsive adjustments for very small screens */
@media (max-width: 575px) {
    .step-content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .step-number-badge {
        width: 3rem !important;
        height: 3rem !important;
    }
    
    .step-number {
        font-size: 1.25rem !important;
    }
}

/* Editor styles */
.wp-block[data-type="acf/steps"] {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Print styles */
@media print {
    .step-connector {
        background: #cccccc !important;
    }
    
    .step-number-badge {
        background: #00ADEF !important;
        box-shadow: none !important;
    }
}
