/* Houtini Installation Widget Styles */
.houtini-install-widget {
    width: 100%;
    margin: 1rem 0;
    font-family: inherit;
}

.houtini-install-widget .install-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Dark Mode Support */
.dark-theme .houtini-install-widget .install-container {
    background: rgba(26, 26, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.houtini-install-widget .install-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #0066FF 0%, #00CCFF 100%);
    border-radius: 16px 16px 0 0;
}

.houtini-install-widget .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.houtini-install-widget .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0066FF 0%, #00CCFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.houtini-install-widget .section-subtitle {
    font-size: 1rem;
    color: #6b7280;
    max-width: 500px;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
}

.dark-theme .houtini-install-widget .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.houtini-install-widget .guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #0066FF 0%, #00CCFF 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.houtini-install-widget .guide-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.houtini-install-widget .install-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.houtini-install-widget .install-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    transition: transform 0.2s ease;
}

.dark-theme .houtini-install-widget .install-step {
    background: rgba(40, 40, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.houtini-install-widget .install-step:hover {
    transform: translateY(-2px);
}

.houtini-install-widget .step-number {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0066FF 0%, #00CCFF 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.houtini-install-widget .step-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.dark-theme .houtini-install-widget .step-content h3 {
    color: rgba(255, 255, 255, 0.9);
}

.houtini-install-widget .step-description {
    color: #6b7280;
    margin: 0 0 1rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.dark-theme .houtini-install-widget .step-description {
    color: rgba(255, 255, 255, 0.7);
}

.houtini-install-widget .code-wrapper {
    background: #0f172a;
    border-radius: 8px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.houtini-install-widget .config-note {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 102, 255, 0.05);
    border-left: 3px solid #0066FF;
    border-radius: 0 6px 6px 0;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.dark-theme .houtini-install-widget .config-note {
    background: rgba(0, 102, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.houtini-install-widget .config-note i {
    color: #0066FF;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .houtini-install-widget .install-container {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .houtini-install-widget .section-title {
        font-size: 1.8rem;
    }
    
    .houtini-install-widget .install-step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .houtini-install-widget .step-number {
        justify-self: center;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}


/* SPACING FIX: Prevent code blocks from overlapping */
.houtini-install-widget .code-block-wrapper {
    margin: 1.5rem 0 !important;
}

.houtini-install-widget .code-block-wrapper + .code-block-wrapper {
    margin-top: 2rem !important;
}

/* Ensure proper spacing in step content */
.houtini-install-widget .step-content > *:not(:last-child) {
    margin-bottom: 1rem;
}

/* Extra spacing for multiple code blocks in sequence */
.houtini-install-widget .step-content .code-block-wrapper:not(:first-child) {
    margin-top: 2rem !important;
}