/* ==========================================================================
   Chateasily Guide / Documentation Page Styles
   ========================================================================== */

/* Force full-width: override ALL Astra container/layout constraints */
.chateasily-guide-page .site-content > .ast-container,
.chateasily-guide-page .ast-container,
.chateasily-guide-page #content > .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: block !important;
    margin: 0 !important;
}

.chateasily-guide-page #content.site-content,
.chateasily-guide-page .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.chateasily-guide-page #primary {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
}

.chateasily-guide-page .ast-article-post,
.chateasily-guide-page .ast-article-single,
.chateasily-guide-page .hentry {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.chateasily-guide-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.chateasily-guide-page .ast-page-builder-template .hentry,
.chateasily-guide-page .ast-separate-container .ast-article-post,
.chateasily-guide-page .ast-separate-container .ast-article-single,
.chateasily-guide-page .ast-separate-container #primary {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
}

.ce-guide {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #334155;
    line-height: 1.75;
    font-size: 1.0625rem;
}

.ce-guide__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2.5rem 5rem;
}

/* ---------- Headings ---------- */
.ce-guide h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.ce-guide h2 {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #0f172a;
    margin: 3rem 0 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.ce-guide h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.ce-guide h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 2rem 0 0.75rem;
}

/* ---------- Lead / Subtitle ---------- */
.ce-guide__lead {
    font-size: 1.1875rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0 0 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

/* ---------- Step Blocks ---------- */
.ce-step-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
    position: relative;
}

.ce-step-block__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
    vertical-align: middle;
}

.ce-step-block__title {
    display: inline;
    font-weight: 700;
    font-size: 1.125rem;
    color: #0f172a;
    vertical-align: middle;
}

.ce-step-block p {
    margin: 0.75rem 0 0;
}

/* ---------- Code Blocks ---------- */
.ce-guide pre {
    background: #0f0a1e;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid #2d2552;
    position: relative;
}

.ce-guide pre code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.8125rem;
    line-height: 1.8;
    color: #e2e8f0;
    background: none;
    padding: 0;
}

/* Inline code */
.ce-guide code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    color: #7c3aed;
    padding: 0.15em 0.45em;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
}

.ce-guide pre code {
    border: none;
    background: none;
}

/* Syntax colors inside code blocks */
.ce-code-tag { color: #ef4444; }
.ce-code-attr { color: #f59e0b; }
.ce-code-val { color: #10b981; }
.ce-code-comment { color: #64748b; font-style: italic; }

/* Code block header */
.ce-code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid #2d2552;
    border-radius: 10px 10px 0 0;
    margin: -1.5rem -1.5rem 1rem;
}

.ce-code-header__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.ce-code-header__dot:nth-child(1) { background: #ef4444; }
.ce-code-header__dot:nth-child(2) { background: #f59e0b; }
.ce-code-header__dot:nth-child(3) { background: #10b981; }

.ce-code-header__label {
    margin-left: auto;
    font-size: 0.7rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: monospace;
}

/* ---------- Info / Tip / Warning Boxes ---------- */
.ce-info-box {
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.ce-info-box p {
    margin: 0;
}

.ce-info-box--tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #10b981;
    color: #166534;
}

.ce-info-box--warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.ce-info-box--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

/* ---------- Tables ---------- */
.ce-guide table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.ce-guide table thead {
    background: #f8fafc;
}

.ce-guide table th {
    text-align: left;
    padding: 0.875rem 1.25rem;
    font-weight: 600;
    color: #0f172a;
    border-bottom: 2px solid #e2e8f0;
}

.ce-guide table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.ce-guide table tr:last-child td {
    border-bottom: none;
}

/* ---------- Lists ---------- */
.ce-guide ul,
.ce-guide ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.ce-guide li {
    margin-bottom: 0.5rem;
}

/* ---------- Images / Screenshots ---------- */
.ce-guide img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
    margin: 1.5rem 0;
}

/* ---------- Comparison: Bubble vs Inline ---------- */
.ce-compare {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.ce-compare__item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.ce-compare__item h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.ce-compare__item p {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0 0 1rem;
}

.ce-compare__visual {
    background: #0f0a1e;
    border-radius: 10px;
    padding: 1.5rem;
    min-height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mini bubble in compare */
.ce-compare__bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgb(124 58 237 / 0.4);
    position: absolute;
    bottom: 12px;
    right: 12px;
}

.ce-compare__bubble svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

/* Mini inline in compare */
.ce-compare__inline {
    width: 100%;
    max-width: 260px;
    background: #1e1b2e;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #2d2552;
}

.ce-compare__inline-header {
    padding: 0.5rem 0.75rem;
    background: #16132a;
    border-bottom: 1px solid #2d2552;
    font-size: 0.7rem;
    color: #a78bfa;
    font-weight: 600;
}

.ce-compare__inline-body {
    padding: 0.5rem 0.75rem;
    font-size: 0.65rem;
    color: #94a3b8;
    line-height: 1.5;
}

.ce-compare__inline-input {
    padding: 0.375rem 0.75rem;
    border-top: 1px solid #2d2552;
    font-size: 0.6rem;
    color: #475569;
}

/* ---------- CTA at bottom ---------- */
.ce-guide__cta {
    text-align: center;
    background: linear-gradient(135deg, #0f0a1e, #1a1145, #0d1b2a);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 3rem 0 0;
}

.ce-guide__cta h2 {
    color: #fff !important;
    margin: 0 0 0.75rem;
    border: none;
    padding-top: 0;
}

.ce-guide__cta p {
    color: #cbd5e1;
    margin: 0 0 1.5rem;
}

.ce-guide__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none !important;
    box-shadow: 0 4px 15px rgb(124 58 237 / 0.4);
    transition: all 0.3s ease;
}

.ce-guide__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgb(124 58 237 / 0.5);
    color: #fff !important;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .ce-compare {
        grid-template-columns: 1fr 1fr;
    }

    .ce-guide__container {
        padding: 4rem 3rem 6rem;
    }
}

@media (max-width: 480px) {
    .ce-guide__container {
        padding: 2rem 1rem 3rem;
    }

    .ce-step-block {
        padding: 1.25rem 1.25rem;
    }

    .ce-guide pre {
        padding: 1rem;
        font-size: 0.75rem;
    }
}
