/* Odoo Guides Page */

/* Hero Section */
.odoo-guides-hero {
    background: linear-gradient(135deg, #002b5c 0%, #001a3d 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.odoo-guides-hero h1 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.odoo-guides-hero .lead {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Filter Buttons */
.guides-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.guides-filter-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guides-filter-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.guides-filter-btn.active {
    background: #ffffff;
    color: #002b5c;
    border-color: #ffffff;
    font-weight: 600;
}

/* Guides Grid */
.guides-grid {
    padding: 4rem 0;
}

/* Pillar Section Labels */
.pillar-section-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pillar-section-label i {
    color: #002b5c;
}

/* Guide Cards */
.guide-card {
    display: block;
    background: #ffffff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-pillar {
    margin-bottom: 1rem;
}

.pillar-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.pillar-badge.implementation {
    background: #e0e7ff;
    color: #4338ca;
}

.pillar-badge.integration {
    background: #ede9fe;
    color: #6d28d9;
}

.pillar-badge.warehouse {
    background: #dcfce7;
    color: #15803d;
}

.pillar-badge.retail {
    background: #fef3c7;
    color: #b45309;
}

.pillar-badge.ai {
    background: #fce7f3;
    color: #be185d;
}

.pillar-badge.automation {
    background: #fee2e2;
    color: #b91c1c;
}

.pillar-badge.reporting {
    background: #cffafe;
    color: #0e7490;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-hook {
    font-size: 0.9375rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #999;
}

.card-meta i {
    font-size: 0.875rem;
}

.card-arrow {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    color: #002b5c;
    font-size: 1rem;
    opacity: 0;
    transform: translateX(-0.5rem);
    transition: all 0.2s ease;
}

.guide-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* CTA Section */
.guide-cta {
    background: linear-gradient(135deg, #002b5c 0%, #001a3d 100%);
    color: #ffffff;
    padding: 4rem 0;
    text-align: center;
}

.guide-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.guide-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.guide-cta .btn-light {
    background: #ffffff;
    color: #002b5c;
    border: none;
}

.guide-cta .btn-light:hover {
    background: #f8f9fa;
}

.guide-cta .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.guide-cta .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .odoo-guides-hero h1 {
        font-size: 1.75rem;
    }

    .odoo-guides-hero .lead {
        font-size: 1rem;
    }

    .guides-filter {
        gap: 0.5rem;
    }

    .guides-filter-btn {
        font-size: 0.8125rem;
        padding: 0.375rem 1rem;
    }

    .pillar-section-label {
        font-size: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-hook {
        font-size: 0.875rem;
    }

    .guide-cta h2 {
        font-size: 1.5rem;
    }

    .guide-cta p {
        font-size: 1rem;
    }

    .guides-grid {
        padding: 3rem 0;
    }

    .odoo-guides-hero {
        padding: 3rem 0;
    }
}

/* ==========================================================================
   Odoo Guide ARTICLE — single guide page (/odoo-guides/{slug})
   ========================================================================== */

/* Article hero — brand blue */
.section.hero--odoo-article {
    background: linear-gradient(135deg, #002b5c 0%, #001a3d 100%) !important;
    color: #ffffff;
    padding: 3rem 0 2.5rem;
    text-align: left;
}

.og-breadcrumb {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}
.og-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}
.og-breadcrumb a:hover { color: #ffffff; border-bottom-color: #ffffff; }
.og-breadcrumb .og-sep { margin: 0 0.5rem; color: rgba(255, 255, 255, 0.5); }
.og-breadcrumb .og-current { color: rgba(255, 255, 255, 0.95); }

.og-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}
.og-pillar-badge,
.og-audience-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.og-audience-badge {
    background: rgba(200, 16, 46, 0.85); /* brand red */
}
.og-time, .og-date {
    color: rgba(255, 255, 255, 0.75);
}

.section.hero--odoo-article .og-title {
    color: #ffffff !important;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
    max-width: 900px;
}
@media (min-width: 768px) {
    .section.hero--odoo-article .og-title { font-size: 2.5rem; }
}
.section.hero--odoo-article .og-subtitle {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 760px;
    margin: 0;
}

/* Article body */
.og-article {
    padding: 3rem 0;
    background: #ffffff;
}
.og-article-wrap {
    max-width: 760px;
    margin: 0 auto;
}
.og-article-body {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #2c3e50;
}
.og-article-body p {
    margin-bottom: 1.25rem;
}
.og-article-body h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #002b5c;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
    scroll-margin-top: 80px;
}
.og-article-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 2rem 0 0.75rem;
}
.og-article-body h4 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1a2a3a;
    margin: 1.5rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.og-article-body ul,
.og-article-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.og-article-body li {
    margin-bottom: 0.4rem;
}
.og-article-body strong { color: #1a2a3a; }
.og-article-body em { color: #4a5568; }
.og-article-body a {
    color: #002b5c;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.og-article-body a:hover { color: #c8102e; }
.og-article-body code {
    background: #f1f4f8;
    color: #002b5c;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-family: 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.9em;
}
.og-article-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.55;
}
.og-article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}
.og-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}
.og-article-body th {
    background: #002b5c;
    color: #ffffff;
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
}
.og-article-body td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e7eef7;
}
.og-article-body tr:nth-child(even) td { background: #f8fafc; }

/* Callout boxes — Odoo-style Tip / Note / Important / See also */
.callout {
    border-left: 4px solid #002b5c;
    background: #f1f5f9;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 6px 6px 0;
    font-size: 0.9375rem;
}
.callout--tip    { border-left-color: #16a34a; background: #f0fdf4; }
.callout--note   { border-left-color: #002b5c; background: #f1f5f9; }
.callout--important,
.callout--warning { border-left-color: #c8102e; background: #fef2f2; }
.callout--seealso { border-left-color: #6b7280; background: #f9fafb; }
.callout strong { display: inline-block; margin-right: 0.25rem; }
.callout p:last-child { margin-bottom: 0; }

/* Inline UI element styling — Odoo "navigate to" pattern */
.ui-path {
    background: #002b5c;
    color: #ffffff;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    font-size: 0.875em;
    white-space: nowrap;
}

/* TL;DR box */
.og-tldr {
    background: linear-gradient(135deg, #f1f5f9 0%, #e7eef7 100%);
    border-left: 4px solid #c8102e;
    padding: 1.25rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 2rem;
}
.og-tldr__title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c8102e !important;
    margin: 0 0 0.5rem !important;
}
.og-tldr__list {
    margin: 0;
    padding-left: 1.25rem;
}
.og-tldr__list li {
    margin-bottom: 0.4rem;
    color: #1a2a3a;
}

/* Intro */
.og-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #334155;
    margin: 0 0 2rem;
}
.og-intro p { margin-bottom: 1rem; }

/* TOC */
.og-toc {
    background: #f8fafc;
    border: 1px solid #e7eef7;
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin: 0 0 2.5rem;
}
.og-toc__title {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b !important;
    margin: 0 0 0.5rem !important;
}
.og-toc ol {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.9375rem;
}
.og-toc a { color: #002b5c; text-decoration: none; }
.og-toc a:hover { text-decoration: underline; }

/* FAQ */
.og-faq { margin: 3rem 0 1.5rem; }
.og-faq h2 {
    font-size: 1.625rem;
    color: #002b5c;
    margin-bottom: 1rem;
}
.og-faq__item {
    border: 1px solid #e7eef7;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
}
.og-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    color: #1a2a3a;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
.og-faq__item summary::-webkit-details-marker { display: none; }
.og-faq__item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #c8102e;
    line-height: 1;
}
.og-faq__item[open] summary::after { content: '−'; }
.og-faq__answer {
    margin-top: 0.75rem;
    color: #475569;
    line-height: 1.65;
}
.og-faq__answer p:last-child { margin-bottom: 0; }

/* Article CTA */
.og-article-cta {
    background: linear-gradient(135deg, #002b5c 0%, #001a3d 100%);
    color: #ffffff;
    padding: 1.75rem 2rem;
    border-radius: 8px;
    margin: 2.5rem 0 1.5rem;
}
.og-article-cta h3 {
    color: #ffffff !important;
    margin: 0 0 0.5rem !important;
    font-size: 1.25rem !important;
}
.og-article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}
.og-article-cta p a { color: #ffffff; text-decoration: underline; }
.og-article-cta__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.og-article-cta .btn-primary {
    background: #ffffff;
    color: #002b5c;
    border: none;
    font-weight: 600;
}
.og-article-cta .btn-primary:hover { background: #f8fafc; color: #002b5c; }
.og-article-cta .btn-outline-primary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.og-article-cta .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* Author */
.og-author {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e7eef7;
    font-size: 0.9375rem;
    color: #64748b;
}
.og-author a { color: #002b5c; }

/* Related */
.og-related {
    background: #f8fafc;
    padding: 3rem 0;
}
.og-related__title {
    font-size: 1.5rem;
    color: #002b5c;
    margin-bottom: 1.5rem;
    text-align: center;
}
.og-related__card {
    display: block;
    background: #ffffff;
    padding: 1.25rem;
    border: 1px solid #e7eef7;
    border-radius: 6px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    height: 100%;
}
.og-related__card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 43, 92, 0.1);
}
.og-related__card .og-pillar-badge {
    background: #e7eef7;
    color: #002b5c !important;
    margin-bottom: 0.5rem;
}
.og-related__card-title {
    color: #1a2a3a !important;
    font-size: 1rem !important;
    margin: 0.5rem 0 !important;
    line-height: 1.35;
}
.og-related__card-hook {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .og-article-body h2 { font-size: 1.375rem; }
    .og-article-body h3 { font-size: 1.125rem; }
    .og-article-cta { padding: 1.25rem 1.5rem; }
}

/* ==========================================================================
   Field notes block — consultant observations
   ========================================================================== */
.og-fieldnotes {
    background: #fff8f5;
    border: 1px solid #fde2d4;
    border-left: 4px solid #c8102e;
    padding: 1.25rem 1.5rem;
    border-radius: 0 6px 6px 0;
    margin: 2.5rem 0 1.5rem;
}
.og-fieldnotes__title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c8102e !important;
    margin: 0 0 0.75rem !important;
}
.og-fieldnotes__list {
    margin: 0;
    padding-left: 1.25rem;
    color: #1a2a3a;
}
.og-fieldnotes__list li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}
.og-fieldnotes__list li:last-child { margin-bottom: 0; }
.og-fieldnotes__list strong { color: #002b5c; }

/* ==========================================================================
   Reference notes block — sources
   ========================================================================== */
.og-references {
    margin: 2.5rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e7eef7;
}
.og-references h2 {
    font-size: 1.25rem !important;
    color: #002b5c;
    margin: 0 0 0.5rem !important;
}
.og-references__intro {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.og-references__list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9375rem;
}
.og-references__list li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    border-bottom: 1px dotted #e7eef7;
    line-height: 1.55;
}
.og-references__list li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0.4rem;
    color: #002b5c;
    font-weight: 700;
}
.og-references__list a {
    color: #002b5c;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.og-references__list a:hover { color: #c8102e; }
.og-references__note {
    color: #64748b;
    font-size: 0.875rem;
}

/* ==========================================================================
   Verified-against badge in author block
   ========================================================================== */
.og-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: #ecfdf5;
    color: #065f46;
    padding: 0.125rem 0.625rem;
    border-radius: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-left: 0.5rem;
    border: 1px solid #a7f3d0;
}
.og-verified i { color: #10b981; font-size: 0.875rem; }
