/**
 * TS HowTo Generator - Frontend CSS
 */

/* Container principale */
.ts-howto-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 32px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Titolo HowTo */
.ts-howto-title {
    color: #212529;
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #A72525;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ts-howto-title::before {
    content: "📋";
    font-size: 1.2em;
}

/* Lista passi */
.ts-howto-steps {
    list-style: none;
    counter-reset: howto-step;
    padding: 0;
    margin: 0;
}

/* Singolo passo */
.ts-howto-step {
    counter-increment: howto-step;
    position: relative;
    padding: 16px 16px 16px 60px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #A72525;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ts-howto-step:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ts-howto-step:last-child {
    margin-bottom: 0;
}

/* Numero del passo */
.ts-howto-step::before {
    content: counter(howto-step);
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #A72525;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Nome del passo */
.ts-howto-step-name {
    display: block;
    font-weight: 600;
    color: #212529;
    font-size: 1.05em;
    margin-bottom: 6px;
}

/* Testo descrizione */
.ts-howto-step-text {
    color: #495057;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95em;
}

/* Responsive */
@media (max-width: 768px) {
    .ts-howto-block {
        padding: 18px 20px;
        margin: 24px 0;
    }

    .ts-howto-title {
        font-size: 1.2em;
    }

    .ts-howto-step {
        padding: 14px 14px 14px 52px;
    }

    .ts-howto-step::before {
        width: 28px;
        height: 28px;
        left: 12px;
        font-size: 12px;
    }
}