/* ============================================================
   Sample pages (Views/Home/ArticleSample, BrandMonitorSample, LinkRadarSample; partials in Views/Home/Sample):
   a landing's "see a real example". Ajebhom presents the sample beside its facts, the real output sits in an
   iframe in a browser frame, then the closing call, and a slim sticky call while the sample is read.
   Classes start with sm-.
   ============================================================ */

/* ---------- head ---------- */
.sm-hero {
    padding: 44px 0 56px;
}

.sm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: end;
}

.sm-hero-text .ds-h1 {
    margin: 14px 0 12px !important;
}

.sm-hero-text .ds-lead {
    max-width: 62ch;
}

/* the facts of the sample */
.sm-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0 !important;
    padding: 0;
    list-style: none;
}

    .sm-facts li {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        padding: 5px 14px 5px 6px;
        border-radius: var(--ds-r-pill);
        background: var(--ds-surface);
        border: 1px solid var(--ds-line);
        font-size: 13.5px;
        color: var(--ds-text);
    }

html[dir="rtl"] .sm-facts li {
    padding: 5px 6px 5px 14px;
}

    .sm-facts li > i {
        display: inline-grid;
        flex: none;
        place-items: center;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        background: var(--ds-red-soft);
        color: var(--ds-red);
        font-size: 12px;
    }

    .sm-facts li > span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .sm-facts b {
        color: var(--ds-ink);
    }

.sm-gpt { color: var(--ds-gpt) !important; }
.sm-gem { color: var(--ds-gem) !important; }

/* the guide card, Ajebhom peeking over its top edge */
.sm-guide {
    position: relative;
    margin-top: 116px;
    padding: 26px 24px 18px;
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    border-top: 3px solid var(--ds-red);
    box-shadow: var(--ds-shadow-md);
}

.sm-guide-bot {
    --ab-size: 176px;
    --ab-peek: 118px;
    top: -121px;
    inset-inline-end: 22px;
}

.sm-guide-say {
    position: relative;
    margin: 0 0 18px !important;
    padding-inline-end: 132px;
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.8;
    color: var(--ds-ink);
}

.sm-guide-title {
    margin: 0 0 6px !important;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ds-muted);
}

.sm-look {
    margin: 0 !important;
    padding: 0;
    list-style: none;
    counter-reset: sm-look;
}

    .sm-look li {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 9px 0;
        border-bottom: 1px dashed var(--ds-line);
        font-size: 14.5px;
        font-weight: 600;
        color: var(--ds-text);
        counter-increment: sm-look;
    }

        .sm-look li::before {
            content: counter(sm-look);
            display: inline-grid;
            flex: none;
            place-items: center;
            width: 26px;
            height: 26px;
            border-radius: 8px;
            background: var(--ds-tint);
            border: 1px solid var(--ds-tint-line);
            font-family: var(--ds-mono);
            font-size: 12px;
            font-weight: 700;
            color: var(--ds-red);
        }

.sm-guide-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

/* loading → ready */
.sm-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ds-muted);
}

    .sm-status > i {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: var(--ds-warn);
        animation: sm-blink 1.1s ease-in-out infinite;
    }

    .sm-status.is-ready {
        color: var(--ds-ok);
    }

        .sm-status.is-ready > i {
            background: var(--ds-ok-bright);
            animation: none;
            box-shadow: 0 0 0 4px var(--ds-ok-soft);
        }

@keyframes sm-blink {
    50% { opacity: .3; }
}

/* ---------- the sample ---------- */
.sm-sample {
    padding: 0 0 64px;
    scroll-margin-top: 92px;
}

/* wider than the text column: the reports inside are dashboards */
.sm-wide {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--ds-gutter);
}

.sm-browser {
    overflow: hidden;
    border-radius: var(--ds-r-lg);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    box-shadow: var(--ds-shadow-lg);
}

.sm-browser-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 48px;
    padding: 0 16px;
    background: var(--ds-soft);
    border-bottom: 1px solid var(--ds-line);
}

.sm-dots {
    display: inline-flex;
    flex: none;
    gap: 6px;
}

    .sm-dots i {
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: var(--ds-line);
    }

        .sm-dots i:first-child { background: var(--ds-red); opacity: .75; }

.sm-url {
    flex: 1;
    min-width: 0;
    max-width: 520px;
    margin: 0 auto;
    padding: 5px 14px;
    overflow: hidden;
    border-radius: var(--ds-r-pill);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    font-family: var(--ds-mono);
    font-size: 12.5px;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--ds-muted);
}

    .sm-url i {
        margin-inline-end: 4px;
        color: var(--ds-ok);
        font-size: 11px;
    }

.sm-tag {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--ds-r-pill);
    background: var(--ds-ok-soft);
    font-size: 12px;
    font-weight: 700;
    color: var(--ds-ok);
}

    .sm-tag i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--ds-ok-bright);
    }

.sm-frame {
    position: relative;
    min-height: 560px;
}

    .sm-frame iframe {
        display: block;
        width: 100%;
        height: 560px;
        border: 0;
    }

/* the loader covers the frame until it has loaded */
.sm-loading {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 28px;
    background: var(--ds-surface);
    transition: opacity .35s ease;
}

    .sm-loading.is-gone {
        opacity: 0;
        pointer-events: none;
    }

    .sm-loading[hidden] {
        display: none;
    }

.sm-skel {
    display: grid;
    gap: 14px;
}

    .sm-skel i,
    .sm-skel-row i {
        display: block;
        height: 16px;
        border-radius: 8px;
        background: linear-gradient(90deg, var(--ds-line-soft), var(--ds-line), var(--ds-line-soft));
        background-size: 200% 100%;
        animation: sm-shimmer 1.4s linear infinite;
    }

    .sm-skel .w40 { width: 40%; height: 22px; }
    .sm-skel .w70 { width: 70%; }
    .sm-skel .w90 { width: 90%; }
    .sm-skel .w100 { width: 100%; }
    .sm-skel .tall { height: 180px; border-radius: 14px; }

.sm-skel-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 14px;
}

    .sm-skel-row i {
        height: 84px;
        border-radius: 14px;
    }

@keyframes sm-shimmer {
    to { background-position: -200% 0; }
}

.sm-loading-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--ds-muted);
}

.sm-spin {
    width: 18px;
    height: 18px;
    border: 2.5px solid var(--ds-line);
    border-top-color: var(--ds-red);
    border-radius: 50%;
    animation: sm-spin .8s linear infinite;
}

@keyframes sm-spin {
    to { transform: rotate(360deg); }
}

/* ---------- the call ---------- */
.sm-end {
    padding: 70px 0 84px;
}

.sm-cta {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 64px 32px 44px;
    border-radius: var(--ds-r-xl);
    background: linear-gradient(135deg, var(--ds-red), var(--ds-red-dark));
    text-align: center;
    color: #FFF;
}

    .sm-cta .ds-h2 {
        margin: 0 0 10px !important;
        color: #FFF;
    }

        .sm-cta .ds-h2 .colored-text {
            color: #FFF;
            text-decoration: underline;
            text-decoration-thickness: 3px;
            text-underline-offset: 8px;
            text-decoration-color: rgba(255, 255, 255, .45);
        }

    .sm-cta p {
        max-width: 58ch;
        margin: 0 auto 24px !important;
        font-size: 16px;
        line-height: 1.9;
        color: rgba(255, 255, 255, .88);
    }

.sm-cta-bot {
    position: absolute;
    top: -84px;
    left: 50%;
    width: 132px;
    height: 132px;
    transform: translateX(-50%);
    clip-path: inset(0 0 46px 0);
}

.sm-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.sm-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, .6);
    color: #FFF;
}

    .sm-btn-outline:hover {
        background: rgba(255, 255, 255, .12);
        color: #FFF;
    }

/* ---------- the sticky call ---------- */
.sm-sticky {
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0 auto;
    padding: 7px 7px 7px 20px;
    border-radius: var(--ds-r-pill);
    background: var(--ds-surface);
    border: 1px solid var(--ds-line);
    box-shadow: var(--ds-shadow-lg);
    font-size: 14px;
    font-weight: 700;
    color: var(--ds-ink);
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
}

html[dir="rtl"] .sm-sticky {
    padding: 7px 20px 7px 7px;
}

    .sm-sticky.is-on {
        transform: none;
        opacity: 1;
    }

    .sm-sticky .ds-btn {
        flex: none;
    }

/* ---------- smaller screens ---------- */
@media (max-width: 991px) {
    .sm-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .sm-guide {
        max-width: 560px;
    }
}

@media (max-width: 575px) {
    .sm-hero {
        padding: 28px 0 40px;
    }

    .sm-wide {
        padding: 0 12px;
    }

    .sm-guide {
        padding: 22px 18px 16px;
    }

    .sm-guide-bot {
        --ab-size: 124px;
        --ab-peek: 84px;
        top: -87px;
    }

    .sm-guide-say {
        padding-inline-end: 0;
        font-size: 15.5px;
    }

    .sm-browser-bar {
        gap: 10px;
        padding: 0 12px;
    }

    .sm-dots {
        display: none;
    }

    .sm-frame,
    .sm-frame iframe {
        min-height: 420px;
    }

    .sm-skel-row i {
        height: 60px;
    }

    .sm-cta {
        padding: 56px 20px 32px;
    }

    .sm-cta-actions .ds-btn {
        width: 100%;
        justify-content: center;
    }

    .sm-sticky {
        bottom: 10px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sm-skel i,
    .sm-skel-row i,
    .sm-status > i,
    .sm-spin {
        animation: none;
    }

    .sm-loading,
    .sm-sticky {
        transition: none;
    }
}
