/* =============================================================
   content_styles.css
   Shared styles for all Zero Point AI article/content pages.
   Import via: <link rel="stylesheet" href="/styles/content_styles.css">
   ============================================================= */

/* ----- Article layout ----- */

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    margin-bottom: 30px;
}

.article-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #f5f5f0;
    margin-bottom: 10px;
}

.article-meta {
    color: #666;
    font-size: 0.9em;
}

.article-content {
    line-height: 1.8;
    color: #333;
}

.article-content h2 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #150438;
}

.article-content p {
    margin-bottom: 20px;
}

/* Images within article body (used on pages that include inline images) */
.article-content img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 30px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 0 0 2px #150438, 0 4px 12px rgba(21, 4, 56, 0.15);
}

/* ----- Suggestions / carousel section ----- */

.suggestions-section {
    margin-top: 60px;
    padding: 4rem 0;
    background: #f5f5f0;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.suggestions-header {
    font-size: 1.8em;
    margin-bottom: 2rem;
    color: #150438;
    text-align: center;
}

/* ----- Content carousel ----- */

.content-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

#content-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 2rem;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 calc((100% - 4rem) / 3);
    width: calc((100% - 4rem) / 3);
    max-width: calc((100% - 4rem) / 3);
    opacity: 1;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(26, 70, 241, 0.2);
}

.carousel-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #150438 0%, #1A46F1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    overflow: hidden;
    position: relative;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-title {
    flex: 1;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #150438;
}

.loading-message {
    color: #666;
    font-style: italic;
    text-align: center;
}

/* ----- Responsive breakpoints ----- */

@media (max-width: 968px) {
    .carousel-item {
        flex: 0 0 calc((100% - 2rem) / 2);
        width: calc((100% - 2rem) / 2);
        max-width: calc((100% - 2rem) / 2);
    }
}

@media (max-width: 640px) {
    .carousel-item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    #content-carousel {
        gap: 1rem;
    }
}
/* =============================================================
   ADDITIONS — appended 2026-09-29 for the 8-article content batch.
   Includes one bug fix (see first block) plus three new reusable
   components: quick-answer callout, article tables, in-article FAQ.
   ============================================================= */

/* ----- Article header: full-width gradient banner -----
   Was a cramped, tight-fitting dark box with white-on-near-white text
   (.article-title was #f5f5f0, identical to body { background: #f5f5f0 } —
   invisible outside whatever inline styling the one screenshot article
   happens to carry). This replaces it with the same full-bleed navy/blue
   gradient banner already used elsewhere on the site (.hero-new,
   .about-section), matching the look of the interactive tool pages.

   The 100vw/50vw trick lets .article-header break out to full viewport
   width even though it sits nested inside .article-container (max-width:
   800px) — so this is a CSS-only change that reskins all 11 existing
   articles retroactively with no edits to their published HTML. */
.article-header {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #150438 0%, #1A46F1 100%);
    padding: 56px 24px 44px;
    text-align: center;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.article-eyebrow {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #7fc4fd;
    font-weight: 700;
    margin-bottom: 14px;
}

.article-title {
    font-family: 'Roboto', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0 auto 14px;
    max-width: 780px;
}

.article-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 14px;
    line-height: 1.5;
}

.article-meta {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .article-header {
        padding: 40px 20px 32px;
    }
    .article-title {
        font-size: 1.6rem;
    }
}

/* ----- Quick-answer callout -----
   For the "written to be lifted verbatim by AI answer engines" box that
   sits directly under the headline. */
.quick-answer {
    background: white;
    border-left: 4px solid #1A46F1;
    border-radius: 6px;
    padding: 20px 24px;
    margin: 0 0 30px;
    box-shadow: 0 3px 10px rgba(21, 4, 56, 0.1);
}

.quick-answer .quick-answer-label {
    display: block;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #1A46F1;
    font-weight: 700;
    margin-bottom: 8px;
}

.quick-answer p {
    margin: 0;
    color: #150438;
    font-weight: 500;
    line-height: 1.7;
}

/* ----- Tables within article body (e.g. comparison tables) ----- */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(21, 4, 56, 0.1);
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e8e8e3;
    font-size: 0.95em;
    vertical-align: top;
}

.article-content th {
    background: #150438;
    color: #f5f5f0;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
}

.article-content tr:last-child td {
    border-bottom: none;
}

/* ----- In-article FAQ block (same visual language as the site FAQ page) ----- */
.article-faq {
    margin-top: 40px;
}

.article-faq details {
    background: white;
    border-radius: 8px;
    border-top: 3px solid #1A46F1;
    box-shadow: 0 3px 10px rgba(21, 4, 56, 0.1);
    padding: 4px 20px;
    margin-bottom: 14px;
}

.article-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #150438;
}

.article-faq summary::-webkit-details-marker {
    display: none;
}

.article-faq summary::after {
    content: '+';
    font-size: 1.3em;
    color: #1A46F1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.article-faq details[open] summary::after {
    transform: rotate(45deg);
}

.article-faq p {
    padding-bottom: 18px;
    margin: 0;
    color: #555;
    line-height: 1.7;
}
