/* ===============================================
   AI4CALL - HOWTO MCP Pages Stylesheet
   Stili condivisi per tutte le pagine HOWTO degli MCP Server
   =============================================== */

/* Hero Section */
.howto-hero {
    background: var(--gradient-primary);
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    color: white;
    text-align: center;
}

.howto-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.howto-hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Step Containers */
.step-container {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 32px;
    border-left: 6px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.step-number-badge {
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.step-content {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.step-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.step-content li {
    margin: 12px 0;
    color: var(--text-secondary);
}

.step-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Alert Boxes */
.warning-box {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    border-left: 6px solid #F59E0B;
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.warning-box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #92400E;
    margin-bottom: 8px;
}

.warning-box-content {
    color: #78350F;
    font-size: 1rem;
    line-height: 1.6;
}

.warning-box-content ul {
    margin: 8px 0 0 20px;
}

.info-box {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-left: 6px solid var(--primary);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1E40AF;
    margin-bottom: 8px;
}

.info-box-content {
    color: #1E3A8A;
    font-size: 1rem;
    line-height: 1.6;
}

.info-box-content ul {
    margin: 8px 0 0 20px;
}

.success-box {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-left: 6px solid var(--secondary);
    padding: 20px 24px;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.success-box-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #065F46;
    margin-bottom: 8px;
}

.success-box-content {
    color: #064E3B;
    font-size: 1rem;
    line-height: 1.6;
}

.success-box-content ul {
    margin: 8px 0 0 20px;
}

/* Screenshot Box */
.screenshot-box {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
}

.screenshot-box img {
    width: auto !important;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.screenshot-caption {
    text-align: center;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* Screenshotmcp Box */
.screenshotmcp-box {
    background: white;
    padding: 24px;
    border-radius: 16px;
    margin: 32px 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    text-align: center;
    align-content: center;
}

.screenshotmcp-box img {
    width: auto !important;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.screenshotmcp-caption {
    text-align: center;
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-style: italic;
}

/* Config Detail Boxes */
.config-detail {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
    border: 2px solid var(--bg-tertiary);
}

.config-detail-label {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.config-detail-value {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.config-detail-value ol,
.config-detail-value ul {
    margin: 8px 0;
    padding-left: 24px;
}

.config-detail-value li {
    margin: 8px 0;
}

/* Quick Navigation */
.quick-nav {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
}

.quick-nav h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.quick-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
}

.quick-nav-item {
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.quick-nav-item:hover {
    background: var(--primary);
    transform: translateX(4px);
}

.quick-nav-item a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-nav-item:hover a {
    color: white;
}

/* Tool Grid (for tool reference sections) */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.tool-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid var(--bg-tertiary);
    transition: all var(--transition-fast);
}

.tool-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tool-card-icon {
    font-size: 1.5rem;
}

.tool-card-name {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}

.tool-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Code Styling */
code {
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: var(--accent);
    font-weight: 600;
}

/* Highlight Text */
.highlight-text {
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    color: #92400E;
}

/* API Param Badge */
.api-param-required {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.api-param-optional {
    background: var(--text-tertiary);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .howto-hero h1 {
        font-size: 2rem;
    }
    
    .howto-hero p {
        font-size: 1rem;
    }
    
    .step-container {
        padding: 24px;
    }
    
    .step-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .step-number-badge {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-content {
        font-size: 1rem;
    }
    
    .quick-nav-list {
        grid-template-columns: 1fr;
    }
    
    .tool-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .howto-hero {
        padding: 24px 20px;
    }
    
    .howto-hero h1 {
        font-size: 1.75rem;
    }
    
    .step-container {
        padding: 20px;
    }
    
    .warning-box,
    .info-box,
    .success-box {
        padding: 16px 20px;
    }
    
    .screenshot-box, .screenshotmcp-box {
        padding: 16px;
    }
}