/* ===================================
   OPENCLAW GUIDE PAGE
   =================================== */

/* Hero */
.oc-guide-hero {
    position: relative;
    text-align: center;
    padding: 100px 24px 60px;
    overflow: hidden;
}

.oc-guide-hero-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.oc-guide-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
}

.oc-guide-breadcrumb {
    margin-bottom: 24px;
    font-size: 13px;
    color: rgb(107, 114, 128);
}

.oc-guide-breadcrumb a {
    color: rgb(107, 114, 128) !important;
    text-decoration: none !important;
}

.oc-guide-breadcrumb a:hover {
    color: #60a5fa !important;
}

.oc-guide-breadcrumb span {
    margin: 0 6px;
}

.oc-guide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.oc-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
    animation: ocPulse 2s infinite;
}

@keyframes ocPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.oc-guide-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.oc-guide-highlight {
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.oc-guide-subtitle {
    color: rgb(156, 163, 175);
    font-size: 16px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 24px;
}

.oc-guide-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    font-size: 13px;
    color: rgb(107, 114, 128);
    font-weight: 500;
}

.oc-guide-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.oc-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    background: #3b82f6;
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.oc-btn-primary:hover {
    background: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.oc-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
}

.oc-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Layout */
.oc-guide-section {
    padding: 0 24px 40px;
}

.oc-guide-container {
    max-width: 1100px;
    margin: 0 auto;
}

.oc-guide-narrow {
    max-width: 800px;
}

/* Info Cards */
.oc-info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.oc-info-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    transition: all 0.3s;
}

.oc-info-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.oc-info-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.oc-info-card h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.oc-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.oc-info-card li {
    color: rgb(156, 163, 175);
    font-size: 13px;
    padding: 4px 0;
    line-height: 1.5;
}

.oc-info-card li::before {
    content: '✓ ';
    color: #34d399;
    font-weight: 700;
}

/* TOC */
.oc-toc {
    padding: 32px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

.oc-toc-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
}

.oc-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.oc-toc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: rgb(156, 163, 175) !important;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s;
}

.oc-toc-item:hover {
    background: rgba(59, 130, 246, 0.08);
    color: #fff !important;
}

.oc-toc-num {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Steps */
.oc-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.oc-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
}

.oc-step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.oc-step-num {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15));
    color: #60a5fa;
    font-family: 'Inter', sans-serif !important;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oc-step-header h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.oc-step-time {
    font-size: 13px;
    color: rgb(107, 114, 128);
    margin: 4px 0 0;
}

.oc-step-body {
    padding: 28px 32px;
}

.oc-step-body p {
    color: rgb(156, 163, 175);
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 16px;
}

.oc-step-body h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 600;
    color: #e2e8f0;
    margin: 24px 0 12px;
}

.oc-step-list {
    padding-left: 24px;
    margin: 0 0 20px;
}

.oc-step-list li {
    color: rgb(156, 163, 175);
    font-size: 14px;
    line-height: 1.6;
    padding: 6px 0;
}

.oc-step-list li strong {
    color: #fff;
}

.oc-step-body a {
    color: #60a5fa !important;
    text-decoration: none !important;
    font-weight: 500;
}

.oc-step-body a:hover {
    color: #c4b5fd !important;
}

/* Code Blocks */
.oc-code-block {
    border-radius: 16px;
    overflow: hidden;
    margin: 16px 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.oc-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 12px;
    font-weight: 600;
    color: rgb(107, 114, 128);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oc-copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px 12px;
    color: rgb(156, 163, 175);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.oc-copy-btn:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.oc-code-block pre {
    margin: 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
}

.oc-code-block code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
}

/* Output */
.oc-output {
    margin: 16px 0;
    border: 1px solid rgba(52, 211, 153, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.oc-output-title {
    padding: 8px 16px;
    background: rgba(52, 211, 153, 0.08);
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
}

.oc-output pre {
    margin: 0;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px;
    line-height: 1.6;
    color: #34d399;
    overflow-x: auto;
}

/* Tips & Warnings */
.oc-tip {
    padding: 16px 20px;
    background: rgba(250, 204, 21, 0.06);
    border: 1px solid rgba(250, 204, 21, 0.15);
    border-left: 3px solid #facc15;
    border-radius: 12px;
    margin: 16px 0;
    color: rgb(209, 213, 219);
    font-size: 14px;
    line-height: 1.6;
}

.oc-warning {
    padding: 16px 20px;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-left: 3px solid #ef4444;
    border-radius: 12px;
    margin: 16px 0;
    color: rgb(209, 213, 219);
    font-size: 14px;
    line-height: 1.6;
}

/* Chat Demo */
.oc-chat-demo {
    margin: 20px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
}

.oc-chat-msg {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.oc-chat-msg:last-child {
    border-bottom: none;
}

.oc-chat-author {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.oc-chat-user {
    background: rgba(59, 130, 246, 0.05);
    color: rgb(209, 213, 219);
    font-size: 14px;
}

.oc-chat-user .oc-chat-author {
    color: #60a5fa;
}

.oc-chat-bot {
    color: rgb(209, 213, 219);
    font-size: 14px;
    line-height: 1.6;
}

.oc-chat-bot .oc-chat-author {
    color: #34d399;
}

/* Tables */
.oc-cmd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.oc-cmd-table th {
    text-align: left;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    color: rgb(156, 163, 175);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.oc-cmd-table td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: rgb(156, 163, 175);
    font-size: 13px;
}

.oc-cmd-table code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    color: #c4b5fd;
}

/* Tips Grid */
.oc-tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
}

.oc-tips-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.oc-tips-item strong {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 6px;
}

.oc-tips-item p {
    color: rgb(107, 114, 128);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 !important;
}

/* Errors */
.oc-section-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
}

.oc-errors-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oc-error-item {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.oc-error-title {
    font-size: 14px;
    font-weight: 600;
    color: #f87171;
    margin-bottom: 8px;
}

.oc-error-title code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 13px;
}

.oc-error-fix {
    color: rgb(156, 163, 175);
    font-size: 13px;
    line-height: 1.6;
}

.oc-error-fix code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12px;
    padding: 2px 8px;
    background: rgba(52, 211, 153, 0.1);
    border-radius: 6px;
    color: #34d399;
}

/* Next Steps */
.oc-next-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.oc-next-card {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    text-decoration: none !important;
    transition: all 0.3s;
}

.oc-next-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    transform: translateY(-4px);
}

.oc-next-icon {
    font-size: 28px;
    display: block;
    margin-bottom: 12px;
}

.oc-next-card h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.oc-next-card p {
    color: rgb(107, 114, 128);
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* Download CTA */
.oc-download-cta {
    text-align: center;
    padding: 48px 32px;
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 24px;
}

.oc-download-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.oc-download-cta h2 {
    font-family: 'Inter', sans-serif !important;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.oc-download-cta p {
    color: rgb(156, 163, 175);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation */
.oc-guide-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.oc-nav-item {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.oc-nav-item:hover {
    border-color: rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.04);
}

.oc-nav-label {
    display: block;
    font-size: 12px;
    color: rgb(107, 114, 128);
    font-weight: 500;
    margin-bottom: 4px;
}

.oc-nav-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}

.oc-nav-next {
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .oc-info-cards {
        grid-template-columns: 1fr;
    }

    .oc-toc-grid {
        grid-template-columns: 1fr;
    }

    .oc-tips-grid {
        grid-template-columns: 1fr;
    }

    .oc-next-grid {
        grid-template-columns: 1fr;
    }

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

    .oc-step-header {
        padding: 20px;
    }

    .oc-step-body {
        padding: 20px;
    }

    .oc-guide-title {
        font-size: 28px !important;
    }

    .oc-guide-actions {
        flex-direction: column;
        align-items: center;
    }
}