/*
 * ONECOBULL Markets page styles.
 * Markets-only overrides layered on top of the shared article layout.
 */

body.oc-market-page .oc-market-page-wrap {
    width: min(100% - 48px, 1240px);
    margin-inline: auto;
    box-sizing: border-box;
}

body.oc-market-page .onecobull-article {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.oc-market-page .oc-ad-slot {
    margin: 24px 0;
    padding: 0;
    box-sizing: border-box;
}

body.oc-market-page .oc-ad-label {
    display: block;
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: rgba(148, 163, 184, 0.9);
    text-align: center;
}

body.oc-market-page .oc-ad-placeholder {
    min-height: 90px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

body.oc-market-page .oc-ad-top {
    margin: 24px 0 28px;
}

body.oc-market-page .oc-ad-infeed {
    margin: 24px 0;
}

body.oc-market-page .oc-ad-sidebar {
    margin-top: 24px;
}

body.oc-market-page .onecobull-fixed-page-section--articles {
    background: transparent;
}

body.oc-market-page .onecobull-fixed-page-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

body.oc-market-page .onecobull-fixed-article-card {
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 1px;
    border: 1px solid transparent;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
    --angle: 315deg;
    background:
        linear-gradient(#0b1016, #0b1016) padding-box,
        linear-gradient(
            var(--angle),
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.06) 18%,
            rgba(255, 255, 255, 0.04) 50%,
            rgba(255, 255, 255, 0.08) 85%,
            rgba(255, 255, 255, 0.12) 100%
        ) border-box;
    position: relative;
}

body.oc-market-page .onecobull-fixed-article-card__thumb-link,
body.oc-market-page .onecobull-fixed-article-card__thumb,
body.oc-market-page .onecobull-fixed-article-card__thumb--empty {
    display: none !important;
}

body.oc-market-page .onecobull-fixed-article-card__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 10px;
    padding: 8px 12px;
    line-height: 1.35;
    align-items: start;
}

body.oc-market-page .onecobull-fixed-article-card__title a,
body.oc-market-page .onecobull-fixed-article-card__date,
body.oc-market-page .onecobull-fixed-article-card__body,
body.oc-market-page .onecobull-fixed-article-card {
    color: #e8f0fb;
}

body.oc-market-page .onecobull-fixed-article-card__category.onecobull-category-badge {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

body.oc-market-page .onecobull-fixed-article-card__title {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

body.oc-market-page .onecobull-fixed-article-card__title a {
    font-size: 14px;
    line-height: 1.2;
    color: #f5f8ff;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

body.oc-market-page .onecobull-fixed-article-card__title a:hover {
    color: #38c7ff;
}

body.oc-market-page .onecobull-fixed-article-card__date {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    color: #93a4b8;
    font-size: 11px;
    line-height: 1.2;
}

body.oc-market-page .onecobull-fixed-article-card__meta {
    font-size: 11px;
    line-height: 1.2;
}

body.oc-market-page .onecobull-fixed-article-card__excerpt {
    font-size: 12px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.oc-market-page .onecobull-fixed-article-card__category.onecobull-category-badge.onecobull-cat-economics {
    color: #dcfce7 !important;
    background: rgba(34, 197, 94, 0.18) !important;
    border: 1px solid rgba(34, 197, 94, 0.58) !important;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.18) !important;
}

body.oc-market-page .onecobull-fixed-article-card__category.onecobull-category-badge.onecobull-cat-markets {
    color: #fef3c7 !important;
    background: rgba(245, 158, 11, 0.2) !important;
    border: 1px solid rgba(245, 158, 11, 0.62) !important;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.18) !important;
}

body.oc-market-page .onecobull-fixed-article-card__category.onecobull-category-badge.onecobull-cat-news {
    color: #e5e7eb !important;
    background: rgba(148, 163, 184, 0.18) !important;
    border: 1px solid rgba(148, 163, 184, 0.48) !important;
    box-shadow: none !important;
}

body.oc-market-page .onecobull-fixed-article-card__category.onecobull-category-badge.onecobull-cat-calendar {
    color: #dff7ff !important;
    background: rgba(56, 189, 248, 0.18) !important;
    border: 1px solid rgba(56, 189, 248, 0.58) !important;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.18) !important;
}

body.oc-market-page .onecobull-fixed-article-card__category.onecobull-category-badge.onecobull-cat-index,
body.oc-market-page .onecobull-fixed-article-card__category.onecobull-category-badge.onecobull-cat-indexes,
body.oc-market-page .onecobull-fixed-article-card__category.onecobull-category-badge.onecobull-cat-learn {
    color: #f8fafc !important;
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    body.oc-market-page .oc-market-page-wrap {
        width: min(100% - 24px, 1240px);
    }

    body.oc-market-page .oc-ad-slot {
        margin: 18px 0;
    }

    body.oc-market-page .oc-ad-placeholder {
        min-height: 72px;
    }
}
