﻿/* Styles rendered on content fragment pages including FAQ, Announcements, Changelog, How-To and Page content types. */

.content-page-header h1 {
    font-weight: 800 !important;
    color: var(--app-primary-dark-color) !important;
}

[theme=dark] .content-page-header h1 {
    color: #fff !important; /* Neon yellow or white? color: var(--app-primary-light-color) !important; */
}

.content-page-header .breadcrumb,
.content-page-footer .breadcrumb {
    padding: 10px;
    padding-left: 15px;
    border-width: 1px !important;
    border-style: dotted !important;
    border-color: var(--bs-gray-400) !important;
    border-radius: 13px;
}

.content-page-header .breadcrumb {
    margin-bottom: 20px;
}

.content-page {
}

    .content-page hr {
    }
/* begin:: Custom Styling for ContentFragmentPartial Heading and Subheading*/
.content-section-heading h1 {
    color: var(--app-primary-dark-color);
    font-size: 2rem;
}

[theme=dark] .content-section-heading h1 {
    color: var(--app-primary-light-color);
    font-size: 2rem;
}

.content-section-heading p {
    color: var(--bs-text-gray-600) !important;
    font-weight: 500 !important;
    font-size: 1.25rem !important;
}

[theme=dark] .content-section-heading p {
    color: var(--bs-text-gray-600) !important;
    font-weight: 500 !important;
    font-size: 1.25rem !important;
}
/* end:: Custom Styling for ContentFragmentPartial Heading and Subheading*/

/* begin:: Custom classes used in the Pricing page (_ContentFaqPartial)*/
.pricing-content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.pricing-heading-section {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-faq-section {
    margin-top: 40px;
}
/* end:: Custom classes used in the Pricing page (_ContentFaqPartial)*/

.content-page h2 {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 2rem !important;
    color: var(--app-primary-color);
}

[theme=dark] .content-page h2 {
    color: var(--app-primary-light-color);
}

.content-page h3 {
    margin-top: 30px;
}

.content-page pre code:not([class*=language-]) {
}

.content-body {
    font-size: 115% !important;
}

.title-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3em;
    max-height: 2.6em;
}

.howto-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4em;
}

.summary-two-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    line-height: 1.4em;
    max-height: 2.8em;
}

/* begin:: Markdown Editor Styles */
/* Image Sizing (Used in Content > Faq.cshtml) */
.ps-10 img, .markdown-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.uppercase {
    text-transform: uppercase !important;
}

.editor-statusbar {
    padding: 8px 10px 0px 8px !important;
}

/* Markdown Dark Mode Styles */
[theme=dark] .editor-toolbar {
    background-color: #1e1f22 !important;
    border-color: #1e1f22 !important;
    opacity: 1.0 !important;
}

    [theme=dark] .editor-toolbar:hover {
        border-color: #1e1f22 !important;
    }

    [theme=dark] .editor-toolbar a {
        color: #dcfd00 !important;
    }

        [theme=dark] .editor-toolbar a:hover {
            background-color: #1e1f22 !important;
            border-color: #dcfd00 !important;
        }

    [theme=dark] .editor-toolbar i.separator {
        background-color: #1e1f22 !important;
        border-bottom: 0px !important;
    }

[theme=dark] .CodeMirror {
    background-color: #1e1f22 !important;
    border-color: #1e1f22 !important;
    color: #fff;
}

[theme=dark] .CodeMirror-cursors .CodeMirror-cursor {
    color: #dcfd00 !important;
    border-left: 1px solid #dcfd00 !important;
}
/* end:: Markdown Editor Styles */

/* begin:: Styles for How-to Guide Details ============================== */

.media-container { /* Styling for cover photo */
    border-radius: var(--bs-card-border-radius) !important;
    overflow: hidden;
    max-width: 100%;
}

#videoContainer { /* The Vidstack player */
    border-radius: var(--bs-card-border-radius);
    overflow: hidden;
}

video-js::part(container) { /* Vidstack container via part selectors */
    border-radius: var(--bs-card-border-radius);
}

.vds-video-player { /* Additional selector for older versions */
    border-radius: var(--bs-card-border-radius) !important;
    overflow: hidden;
}
/* end:: Styles for How-to Guide Details ============================== */
/* Modern Page removes the card view, makes body background transparent. */
.modern-page .card {
    background-color: transparent;
}

.modern-page #videoContainer,
.modern-page .media-container,
.modern-page .card div {
    background-color: transparent;
    padding: 0px !important;
}

.modern-page .card-rounded,
.modern-page .media-container,
.modern-page #videoContainer,
.modern-page video-js::part(container),
.modern-page .vds-video-player {
    border-radius: 3rem !important;
}

.modern-page hr {
    border-color: var(--bs-gray-400) !important;
}

.modern-page-footer .breadcrumb {
    margin-bottom: 30px !important;
    background-color: var(--bs-body-bg) !important;
}

/* Explore App Template CSS*/
.app-template-card-content {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 70px;
}

.app-template-info,
.app-template-remix-buttons {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* or row for buttons if you prefer */
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.app-template-remix-buttons {
    flex-direction: row;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
}

.app-template-info {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.agent-card:hover .app-template-info,
.agent-card:focus-within .app-template-info {
    opacity: 0;
    pointer-events: none;
}

.agent-card:hover .app-template-remix-buttons,
.agent-card:focus-within .app-template-remix-buttons {
    opacity: 1;
    pointer-events: auto;
}
