/* CLI Setup Page Styles */

/* Overview section */
.cli-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
}

.feature-group h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

.feature-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-group li {
    padding: 0.5rem 0;
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.5;
}

.feature-group li:before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: 0;
}

/* Installation section */
.installation-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.install-method {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
}

.install-method.primary {
    border-color: #3b82f6;
    background: #fef7ff;
}

.install-method h3 {
    margin: 0 0 1rem 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

.install-method p {
    margin: 1rem 0 0 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.install-method a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.install-method a:hover {
    text-decoration: underline;
}

.requirements-note {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-left: 4px solid #0ea5e9;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.requirements-note h3 {
    margin: 0 0 1rem 0;
    color: #0369a1;
    font-size: 1rem;
    font-weight: 600;
}

.requirements-note ul {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    color: #0369a1;
}

.requirements-note p {
    margin: 0;
    color: #0369a1;
    font-weight: 500;
}

.requirements-note code {
    background: rgba(3, 105, 161, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* API Key Setup */
.api-key-steps ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.api-key-steps ol li {
    margin: 0.5rem 0;
    color: #374151;
    line-height: 1.5;
}

.step-with-screenshot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.step-instructions {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.step-instructions ol {
    margin: 0;
}


.screenshot-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.screenshot-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.screenshot-image {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    cursor: zoom-in;
}

.screenshot-image:hover {
    cursor: zoom-in;
}

.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
}

.warning p {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
}

/* Configuration section enhancements */
.command-options .docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.docs-table th,
.docs-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.docs-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.docs-table td {
    color: #6b7280;
    font-size: 0.875rem;
}

.docs-table code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    color: #1f2937;
}

/* Next steps grid */
.next-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.next-step-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.next-step-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.next-step-card h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
}

.next-step-card p {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.step-duration {
    font-size: 0.8rem;
    color: #059669;
    font-weight: 500;
    background: #f0fdf4;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-top: auto;
}

/* Code blocks */
.code-block {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .cli-features,
    .installation-methods,
    .next-steps-grid {
        grid-template-columns: 1fr;
    }

    .step-with-screenshot {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-group,
    .install-method {
        padding: 1.5rem;
    }

    .next-step-card {
        padding: 1.5rem;
    }

    .step-icon {
        font-size: 2rem;
    }

    .screenshot-box {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .docs-table {
        font-size: 0.8rem;
    }

    .docs-table th,
    .docs-table td {
        padding: 0.5rem;
    }

    .code-block {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
}