/* ============================================================
   Usage Guide section styles
   ============================================================ */

.guide {
    background: #ffffff;
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.guide-step {
    position: relative;
    background: white;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    border-top: 4px solid var(--primary-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.guide-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.guide-step:nth-child(1) { transition-delay: 0.05s; }
.guide-step:nth-child(2) { transition-delay: 0.15s; }
.guide-step:nth-child(3) { transition-delay: 0.25s; }
.guide-step:nth-child(4) { transition-delay: 0.35s; }
.guide-step:nth-child(5) { transition-delay: 0.45s; }

.guide-step:hover {
    box-shadow: 0 14px 34px rgba(99, 102, 241, 0.18);
}

.step-badge {
    position: absolute;
    top: -22px;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
}

.guide-step h3 {
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
}

.guide-step p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.65;
}

.step-tips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.step-tips li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text-dark);
    font-size: 0.93rem;
    line-height: 1.55;
}

.step-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.step-tips strong { color: var(--text-dark); }
.step-tips em {
    font-style: normal;
    color: var(--primary-dark);
    font-weight: 500;
}

/* --- Shortcuts --- */
.guide-shortcuts {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    padding: 2.5rem 2rem;
    border-radius: 22px;
}

.guide-shortcuts h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.75rem;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.shortcut-item {
    display: flex;
    gap: 0.9rem;
    background: white;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
}

.shortcut-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.shortcut-item:hover {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.shortcut-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.shortcut-item strong { color: var(--text-dark); }
.shortcut-item em {
    color: var(--primary-dark);
    font-style: normal;
    font-weight: 500;
}

.shortcut-item kbd {
    display: inline-block;
    padding: 0.05rem 0.45rem;
    background: #1f2937;
    color: white;
    border-radius: 5px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.78em;
}

/* --- Responsive tweaks for demo + guide --- */
@media (max-width: 768px) {
    .hero-screenshot,
    .about-screenshot {
        transform: none;
    }

    .demo-grid {
        grid-template-columns: 1fr;
    }

    .guide-steps {
        grid-template-columns: 1fr;
    }

    .guide-shortcuts {
        padding: 1.75rem 1.25rem;
    }
}
