/* Vinayak Related Post - premium styles */
.vrp-inline-wrapper,
.vrp-below-wrapper {
    margin-top: 32px;
    margin-bottom: 32px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* When inline has a title, show soft card background */
.vrp-inline-wrapper.vrp-inline-has-title {
    padding: 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59,130,246,.06), rgba(236,72,153,.06));
    box-shadow: 0 14px 32px rgba(15,23,42,0.16);
}

/* Base inline wrapper without title: clean, with padding but no bg/border */


.vrp-inline-wrapper {
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid transparent;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(255,255,255,0.75)),
                      linear-gradient(135deg, #3b82f6, #ec4899);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 
                0 0 0 1px rgba(255,255,255,0.4) inset;
    transition: all .25s ease;
}

.vrp-inline-wrapper:hover {
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
    transform: translateY(-3px);
}

/* Inline thumbnail glow */
.vrp-card-inline .vrp-card-thumb img {
    transition: transform .3s ease, filter .3s ease;
}

.vrp-card-inline:hover .vrp-card-thumb img {
    transform: scale(1.07);
    filter: brightness(1.08);
}

/* Inline title accent */
.vrp-inline-title {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.vrp-inline-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #ec4899);
    border-radius: 4px;
}



.vrp-inline-header,
.vrp-below-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vrp-inline-title,
.vrp-below-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.vrp-badge,
.vrp-badge-category {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: 0.85;
    border: 1px solid rgba(0,0,0,.06);
}

.vrp-below-grid {
    display: grid;
    gap: 20px;
}

/* 2 columns desktop, 1 on mobile */
.vrp-below-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .vrp-below-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

.vrp-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: all .2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Inline variant: no outer card feel, relies on wrapper */
.vrp-card-inline {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
}

.vrp-card-thumb-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.vrp-card-thumb {
    position: relative;
    padding-top: 56.25%; /* 16:9 ratio for below */
    overflow: hidden;
}

.vrp-card-inline .vrp-card-thumb {
    padding-top: 100%; /* square thumb for inline */
}

.vrp-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1); /* no default zoom so it stays crisp */
    transition: all .2s ease;
}

.vrp-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,.35), transparent 60%);
    opacity: 0;
    transition: all .2s ease;
}

.vrp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vrp-card-inline .vrp-card-body {
    padding: 0;
}

/* Top meta row, used also for inline so author can sit on right */
.vrp-card-meta-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vrp-card-title {
    font-size: .98rem;
    line-height: 1.4;
    margin: 0;
    max-height: 2.8em;
    overflow: hidden;
}

.vrp-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.vrp-card-title a:hover {
    text-decoration: underline;
}

.vrp-card-meta-bottom {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    color: #64748b;
    gap: 10px;
}

.vrp-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.vrp-meta-author img,
.vrp-meta-author-inline img {
    border-radius: 999px;
}

.vrp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.vrp-card:hover .vrp-card-thumb img {
    transform: scale(1.03);
}

.vrp-card:hover .vrp-thumb-overlay {
    opacity: 1;
}

/* Placeholder thumb */
.vrp-thumb-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #e2e8f0, #cbd5f5);
}

.vrp-below-header {
    align-items: flex-end;
}

.vrp-below-title {
    position: relative;
    padding-bottom: 4px;
}

.vrp-below-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #ec4899);
}
