/**
 * Articles designed thumbs + card extras — from new/articles-hub.html / article-*.html.
 */

.article-designed-thumb {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(145deg, var(--thumb-from) 0%, var(--thumb-to) 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.article-designed-thumb--compact {
    width: 110px;
    height: 78px;
}

.article-designed-thumb--large {
    width: 100%;
    height: auto;
    min-height: 148px;
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 52px 28px 28px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-designed-thumb__orb {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    pointer-events: none;
}

.article-designed-thumb__orb--1 {
    width: 48px;
    height: 48px;
    top: -14px;
    left: -10px;
    opacity: 0.1;
}

.article-designed-thumb__orb--2 {
    width: 56px;
    height: 56px;
    bottom: -18px;
    right: -8px;
    opacity: 0.08;
}

.article-designed-thumb__icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    opacity: 0.16;
}

.article-designed-thumb__icon svg {
    width: 72%;
    height: 72%;
    max-width: 64px;
    max-height: 64px;
}

.article-designed-thumb--large .article-designed-thumb__icon {
    opacity: 0.16;
}

.article-designed-thumb--large .article-designed-thumb__icon svg {
    width: 100px;
    height: 100px;
    max-width: 40%;
    max-height: 70%;
    color: #fff;
    fill: none;
    stroke: currentColor;
}

.article-designed-thumb__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: 'Tajawal', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
}

.article-designed-thumb__title {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 10px;
    font-family: 'Tajawal', system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-box-pack: center;
    overflow: hidden;
    color: #fff;
}

.article-designed-thumb--compact .article-designed-thumb__title {
    font-size: 9px;
    -webkit-line-clamp: 4;
}

.article-designed-thumb--large .article-designed-thumb__title {
    position: relative;
    z-index: 1;
    inset: auto;
    width: 100%;
    max-width: 920px;
    padding: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.45;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    -webkit-box-pack: unset;
    margin: 0;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.hub-type-title-hero.article-designed-thumb--large .blog-article-title {
    color: #fff;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 800;
    margin: 0;
}

.hub-sidebar-latest-item .article-designed-thumb--compact {
    width: 56px;
    height: 56px;
    border-radius: 10px;
}

.hub-sidebar-latest-item .article-designed-thumb--compact .article-designed-thumb__title {
    font-size: 7px;
    -webkit-line-clamp: 3;
}

@media (max-width: 640px) {
    .article-designed-thumb--compact {
        width: 90px;
        height: 70px;
    }

    .article-designed-thumb--compact .article-designed-thumb__title {
        font-size: 8px;
    }

    .article-designed-thumb--large {
        min-height: 132px;
        padding: 48px 18px 22px;
    }

    .article-designed-thumb--large .article-designed-thumb__title,
    .hub-type-title-hero.article-designed-thumb--large .blog-article-title {
        font-size: 1.05rem;
    }

    .article-designed-thumb--large .article-designed-thumb__icon svg {
        width: 84px;
        height: 84px;
    }
}

/* Real featured image (upload or CDN URL) -------------------------------- */
.article-card-cover {
    width: 110px;
    height: 78px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}

.article-card-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-cover {
    position: relative;
    width: 100%;
    min-height: 180px;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
    background: #0f172a;
}

.article-cover__img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    max-height: 320px;
    object-fit: cover;
}

.article-cover__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-family: 'Tajawal', system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    color: #fff;
}

.article-cover__title {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    margin: 0;
    padding: 48px 24px 22px;
    font-family: 'Tajawal', system-ui, sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 1.55rem);
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
    background: linear-gradient(to top, rgba(15, 23, 42, 0.72), transparent);
}
