/* ========== Big box (shortcode layout) ========== */
.ec-rp-wrapper {
    margin-top: 40px;
    border-radius: 16px;
    overflow: hidden;
    background: #f9fbff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ec-rp-header {
    padding: 14px 24px;
    background: linear-gradient(90deg, #00b4d8, #1976ff);
}

.ec-rp-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.ec-rp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 20px;
}

.ec-rp-item {
    text-decoration: none;
    color: inherit;
}

.ec-rp-item-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 18px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.ec-rp-thumb {
    flex: 0 0 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 12px;
}

.ec-rp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-rp-post-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.ec-rp-item-inner:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.13);
    background: #f5f9ff;
}

/* ========== Inline box inside article (after sections) ========== */
.ec-rp-inline-wrapper {
    margin: 24px 0;
    border-radius: 14px;
    border: 2px dashed #f97373;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: radial-gradient(circle at top left, #fff7f7 0, #fffafa 55%, #ffffff 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ec-rp-inline-header {
    flex: 0 0 auto;
}

.ec-rp-inline-label {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #020617, #111827);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.35);
}

.ec-rp-inline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.ec-rp-inline-thumb {
    width: 96px;
    height: 64px;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
    background: #e5e7eb;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.25);
}

.ec-rp-inline-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.ec-rp-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #4b5563;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
}

.ec-rp-inline-content {
    flex: 1;
}

.ec-rp-inline-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #ea580c;
}

/* Hover states */
.ec-rp-inline-item:hover .ec-rp-inline-text {
    text-decoration: underline;
}

.ec-rp-inline-item:hover .ec-rp-inline-thumb img {
    transform: scale(1.05);
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .ec-rp-wrapper {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
    }

    .ec-rp-item-inner {
        padding: 12px 14px;
    }

    .ec-rp-post-title {
        font-size: 14px;
    }

    .ec-rp-inline-wrapper {
        padding: 9px 10px;
        gap: 10px;
    }

    .ec-rp-inline-thumb {
        width: 90px;
        height: 58px;
    }

    .ec-rp-inline-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .ec-rp-inline-wrapper {
        flex-direction: row;
    }

    .ec-rp-inline-label {
        font-size: 10px;
        padding-inline: 10px;
    }

    .ec-rp-inline-thumb {
        width: 80px;
        height: 52px;
    }

    .ec-rp-inline-text {
        font-size: 12px;
    }
}
