/*==============================================================
# Archive & Grid Download Card (.nc-post-grid .nc-download-card)
==============================================================*/
.nc-download-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.22s ease,
                border-color 0.22s ease;
}

.nc-download-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.10);
}

.nc-download-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/*==============================================================
# Edge-to-Edge Thumbnail Media
==============================================================*/
.nc-download-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
    flex-shrink: 0;
}

.nc-download-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.nc-download-card:hover .nc-download-card__image {
    transform: scale(1.05);
}

.nc-download-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
}

/*==============================================================
# Compact Overlay Badges on Thumbnail
==============================================================*/
.nc-download-card__overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 2;
}

.nc-download-card__overlay .nc-badge {
    min-width: 0 !important;
    height: auto !important;
    padding: 5px 10px !important;
    font-size: 10.5px !important;
    font-weight: 700;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nc-download-card__overlay .nc-badge--platform {
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.nc-download-card__overlay .nc-badge--license {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

/*==============================================================
# Card Body & Technical Meta Pills
==============================================================*/
/*==============================================================
# Card Body & Redesigned Card Title
==============================================================*/
.nc-download-card__body {
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.nc-download-card__title {
    margin: 0 !important;
    min-height: 0 !important;
    font-family: var(--nc-font-family, 'Inter', sans-serif);
    font-size: 1.05rem !important;
    font-weight: 750 !important;
    line-height: 1.38 !important;
    letter-spacing: -0.02em !important;
    color: #0f172a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.18s ease;
}

.nc-download-card:hover .nc-download-card__title {
    color: #2563eb;
}

.nc-download-card:hover .nc-download-card__title {
    color: var(--nc-primary, #2563eb);
}

.nc-download-card__meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
}

.nc-download-card__meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #334155;
    font-family: var(--nc-font-mono, monospace);
    font-size: 11px;
    font-weight: 600;
}

.nc-download-card__meta-pill--version {
    background: #eef2ff;
    color: #4f46e5;
}

.nc-download-card__meta-item {
    font-size: 12px;
    color: #64748b;
}

/*==============================================================
# Card Footer ("Verified Safe" + "Get ->")
==============================================================*/
.nc-download-card__footer {
    margin-top: 0 !important;
    padding: 12px 18px 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.nc-download-card__footer .nc-badge--verified {
    min-width: 0 !important;
    height: auto !important;
    padding: 5px 10px !important;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nc-download-card__footer .nc-verified-svg {
    display: inline-flex;
    width: 13px;
    height: 13px;
}

.nc-download-card__footer .nc-verified-svg svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.5;
}

.nc-download-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--nc-primary, #2563eb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nc-download-card:hover .nc-download-card__button {
    background: #1d4ed8;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.24);
}

